satpy.tests.reader_tests.test_netcdf_utils module
Module for testing the satpy.readers.netcdf_utils module.
- class satpy.tests.reader_tests.test_netcdf_utils.FakeNetCDF4FileHandler(filename, filename_info, filetype_info, auto_maskandscale=False, xarray_kwargs=None, cache_var_size=0, cache_handle=False, extra_file_content=None)[source]
Bases:
NetCDF4FileHandler
Swap-in NetCDF4 File Handler for reader tests to use.
Get fake file content from ‘get_test_content’.
- class satpy.tests.reader_tests.test_netcdf_utils.TestNetCDF4FileHandler(methodName='runTest')[source]
Bases:
TestCase
Test NetCDF4 File Handler Utility class.
Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
- _classSetupFailed = False
- _class_cleanups = []
- class satpy.tests.reader_tests.test_netcdf_utils.TestNetCDF4FsspecFileHandler[source]
Bases:
object
Test the remote reading class.
- satpy.tests.reader_tests.test_netcdf_utils.test_get_data_as_xarray_h5netcdf(tmp_path)[source]
Test getting xr.DataArray from h5netcdf variable.
- satpy.tests.reader_tests.test_netcdf_utils.test_get_data_as_xarray_netcdf4(tmp_path)[source]
Test getting xr.DataArray from netcdf4 variable.