test_rinex_obs module

Tests for the Rinex .o file parser.

test_rinex_obs.fixture_mixed_exp_values()[source]

List of indices and values for comparison in mixed case.

Returns:

mixed_exp_values – List of time instance, row names, gnss_sv_id, signal_type, and expected values for mixed case.

Return type:

list

test_rinex_obs.fixture_rinex_mixed_values(root_path)[source]

Location of Rinex 3 .o file with mixed single and double columns.

Double columns occur when multiple bands are received for the same SV. In this file, there are instances of both, multiple bands and single bands being received for different SVs.

Parameters:

root_path (string) – Folder location containing all Rinex 3 .o files for unit tests.

Returns:

rinex_mixed – Instance of RinexObs class with mixed values.

Return type:

gnss_lib_py.parsers.rinex_obs.RinexObs

test_rinex_obs.fixture_rinex_single_values(root_path)[source]

Location of Rinex 3 .o file with measurements on only one band.

Double columns occur when multiple bands are received for the same SV. In this file, there are instances of only single bands being received by all SVs.

Parameters:

root_path (string) – Folder location containing all Rinex 3 .o files for unit tests.

Returns:

rinex_single – Instance of RinexObs class with single values.

Return type:

gnss_lib_py.parsers.rinex_obs.RinexObs

test_rinex_obs.fixture_sats_per_time_mixed()[source]

List containing number of measurements present at each time step.

Returns:

sats_per_time_mixed – List of number of satellites that are present at each time step.

Return type:

list

test_rinex_obs.fixture_sats_per_time_single()[source]

List containing number of measurements present at each time step.

Returns:

sats_per_time_single – List of number of satellites that are present at each time step.

Return type:

list

test_rinex_obs.fixture_single_compare()[source]

List of indices and values for comparison in single case.

Returns:

single_exp_values – List of time instance, row names, gnss_sv_id and expected values for single case.

Return type:

list

test_rinex_obs.test_rinex_obs_3_complete_load(rinex_navdata, time_steps, sats_per_time)[source]

Test that all measurements that contain information are loaded.

Parameters:
  • rinex_navdata (str) – Instance of RinexObs class with data loaded from appropriate file.

  • time_steps (int) – Total times that have measurements in the observation file.

  • sats_per_time (list) – List of number of satellites that are present at each time step.

test_rinex_obs.test_rinex_obs_3_fails(rinex_mixed_values)[source]

Test for cases when no measurements should exist in RinexObs.

The cases where no measurements should be loaded are: 1) when the SV hasn’t been received, and 2) when the SV has been received but a measurement is unavailable.

Parameters:

rinex_mixed_values (gnss_lib_py.parsers.rinex_obs.RinexObs) – Instance of RinexObs class with data loaded from file with measurements received in both, single and double bands.

test_rinex_obs.test_rinex_obs_3_load_mixed(rinex_mixed_values, mixed_exp_values)[source]

Test that loading works for cases with double and mixed columns.

Parameters:
  • rinex_mixed_values (gnss_lib_py.parsers.rinex_obs.RinexObs) – Instance of RinexObs class with data loaded from appropriate file.

  • mixed_exp_values (list) – List of indices and values to compare against.

test_rinex_obs.test_rinex_obs_3_load_single(rinex_single_values, single_exp_values)[source]

Test that loading works for the single case of Rinex 3 .o files.

Parameters:
  • rinex_single_values (gnss_lib_py.parsers.rinex_obs.RinexObs) – Instance of RinexObs class with data loaded from appropriate file.

  • single_exp_values (list) – List of lists containing time instance, gnss_sv_id, and expected value for different Rinex use cases.

test_rinex_obs.test_z_tracking(root_path)[source]

Test z-tracking support.

Parameters:

root_path (string) – Folder location containing all Rinex 3 .o files for unit tests.