def afgl_1986_test_absorption_data_sets(): """ Fixture to return paths to test absorption data sets for 'afgl_1986'. """ return { "CH4": path_resolver.resolve( "tests/spectra/absorption/CH4-spectra-4000_11502.nc"), "CO2": path_resolver.resolve( "tests/spectra/absorption/CO2-spectra-4000_14076.nc"), "CO": path_resolver.resolve( "tests/spectra/absorption/CO-spectra-4000_14478.nc"), "H2O": path_resolver.resolve( "tests/spectra/absorption/H2O-spectra-4000_25711.nc"), "N2O": path_resolver.resolve( "tests/spectra/absorption/N2O-spectra-4000_10364.nc"), "O2": path_resolver.resolve( "tests/spectra/absorption/O2-spectra-4000_17273.nc"), "O3": path_resolver.resolve( "tests/spectra/absorption/O3-spectra-4000_6997.nc"), }
def test_particle_layer_construct_attrs(): """Assigns parameters to expected values.""" bottom = ureg.Quantity(1.2, "km") top = ureg.Quantity(1.8, "km") tau_550 = ureg.Quantity(0.3, "dimensionless") layer = ParticleLayer( bottom=bottom, top=top, distribution=UniformParticleDistribution(), tau_550=tau_550, n_layers=9, dataset="tests/radprops/rtmom_aeronet_desert.nc", ) assert layer.bottom == bottom assert layer.top == top assert isinstance(layer.distribution, UniformParticleDistribution) assert layer.tau_550 == tau_550 assert layer.n_layers == 9 assert layer.dataset == path_resolver.resolve( "tests/radprops/rtmom_aeronet_desert.nc" )
def path_to_ussa76_approx_data(): return path_resolver.resolve( "tests/spectra/absorption/us76_u86_4-spectra-4000_25711.nc")
def test_dataset(): """Test dataset path fixture.""" return path_resolver.resolve("tests/radprops/rtmom_aeronet_desert.nc")
def us76_approx_test_absorption_data_set(): """ Fixture to return the path to a test absorption data set for 'us76_approx'. """ return path_resolver.resolve( "tests/spectra/absorption/us76_u86_4-spectra-4000_25711.nc")
def ussa76_approx_test_absorption_data_set(): return path_resolver.resolve( "tests/spectra/absorption/us76_u86_4-spectra-4000_25711.nc")
def dataset(): result = xr.open_dataset( path_resolver.resolve( "tests/radprops/rtmom_aeronet_desert.nc")).load() result.close() return result