def test_sr_command_l8(lsat_id): product = 'sr_refl' cmd = 'surface_reflectance.py --xml {}.xml --write-sr False'.format( lsat_id) assert providers.sequence(product, product_id=lsat_id) == cmd
def test_reproject_command(modis_id): product = 'gtif' cmd = 'convert_espa_to_gtif --xml {0}.xml --gtif {0}.tif'.format(modis_id) assert providers.sequence(product, product_id=modis_id) == cmd
def test_lpgs_to_espa(lsat_id, provider_path): product = 'espa_landsat' cmd = 'convert_lpgs_to_espa --mtl {}.MTL'.format(lsat_id) assert providers.sequence(product, product_id=lsat_id) == cmd
def test_modis_command(modis_id): product = 'espa_modis' cmd = 'convert_modis_to_espa --hdf {}.hdf'.format(modis_id) assert providers.sequence(product, product_id=modis_id) == cmd