satpy.tests.reader_tests.test_li_l2_nc module
Unit tests on the LI L2 reader using the conventional mock constructed context.
- class satpy.tests.reader_tests.test_li_l2_nc.TestLIL2[source]
Bases:
object
Main test class for the LI L2 reader.
- create_fullname_key(desc, var_path, vname, sname='')[source]
Create full name key for sector/non-sector content retrieval.
- generate_coords(filetype_infos, file_type_name, variable_name)[source]
Generate file handler and mimic coordinate generator call.
- get_variable_dataset(dataset_info, dname, handler)[source]
Get the dataset of a given (sector) variable.
- test_coordinates_projection(filetype_infos)[source]
Should automatically generate lat/lon coords from projection data.
- test_coords_generation(filetype_infos)[source]
Compare daskified coords generation results with non-daskified.
- test_dataset_not_in_provided_dataset(filetype_infos)[source]
Test loading of a dataset that is not provided.
- test_generate_coords_inverse_proj(filetype_infos)[source]
Test inverse_projection execution delayed until .values is called on the dataset.
- test_generate_coords_not_called_on_non_accum_dataset(filetype_infos)[source]
Test that the method is not called when getting non-accum dataset.
- test_generate_coords_not_called_on_non_coord_dataset(filetype_infos)[source]
Test that the method is not called when getting non-coord dataset.
- test_generate_coords_on_accumulated_prods(filetype_infos)[source]
Test daskified generation of coords.
- test_generate_coords_on_lon_lat(filetype_infos)[source]
Test getting lon/lat dataset on accumulated product.
- test_get_area_def_acc_products(filetype_infos)[source]
Test retrieval of area def for accumulated products.
- test_get_area_def_non_acc_products(filetype_infos)[source]
Test retrieval of area def for non-accumulated products.
- test_get_first_valid_variable(filetype_infos)[source]
Test get_first_valid_variable from li reader.
- test_get_first_valid_variable_not_found(filetype_infos)[source]
Test get_first_valid_variable from li reader if the variable is not found.
- test_get_on_fci_grid_exc(filetype_infos)[source]
Test the execution of the get_on_fci_grid function for an accumulated gridded variable.
- test_get_on_fci_grid_exc_non_accum(filetype_infos)[source]
Test the non-execution of the get_on_fci_grid function for a non-accumulated variable.
- test_get_on_fci_grid_exc_non_grid(filetype_infos)[source]
Test the non-execution of the get_on_fci_grid function for an accumulated non-gridded variable.
- test_report_datetimes(filetype_infos)[source]
Should report time variables as numpy datetime64 type and time durations as timedelta64.
- test_swath_coordinates(filetype_infos)[source]
Test that swath coordinates are used correctly to assign coordinates to some datasets.
- test_variable_scaling(filetype_infos)[source]
Test automatic rescaling with offset and scale attributes.
- test_with_area_def(filetype_infos)[source]
Test accumulated products data array with area definition.
- test_with_area_def_pixel_placement(filetype_infos)[source]
Test the placements of pixel value with area definition.