def ntg_cmyk(test_image_cmyk_antarctic): """Create NinJoTagGenerator instance with CMYK image.""" from satpy.writers.ninjogeotiff import NinJoTagGenerator return NinJoTagGenerator(test_image_cmyk_antarctic, 0, "tvp.tif", ChannelID=123042, DataType="PPRN", PhysicUnit="N/A", PhysicValue="N/A", SatelliteNameID=6500014)
def ntg_latlon(test_image_latlon): """Create NinJoTagGenerator with latlon-area image.""" from satpy.writers.ninjogeotiff import NinJoTagGenerator return NinJoTagGenerator(test_image_latlon, 0, "latlon.tif", ChannelID=123456, DataType="GORN", PhysicUnit="%", PhysicValue="Reflectance", SatelliteNameID=654321)
def ntg_weird(test_image_weird): """Create NinJoTagGenerator instance with weird image.""" from satpy.writers.ninjogeotiff import NinJoTagGenerator return NinJoTagGenerator(test_image_weird, 12, "tempeh.tif", ChannelID=800012, DataType="PPRN", PhysicUnit="N/A", PhysicValue="N/A", SatelliteNameID=6500014)
def ntg_rgba(test_image_rgba_merc): """Create NinJoTagGenerator instance with RGBA image.""" from satpy.writers.ninjogeotiff import NinJoTagGenerator return NinJoTagGenerator(test_image_rgba_merc, 12, "soy.tif", ChannelID=800042, DataType="GORN", PhysicUnit="N/A", PhysicValue="N/A", SatelliteNameID=6500014)
def ntg_northpole(test_image_northpole): """Create NinJoTagGenerator with north pole image.""" from satpy.writers.ninjogeotiff import NinJoTagGenerator return NinJoTagGenerator(test_image_northpole, 255, "lentils.tif", ChannelID=900012, DataType="P**N", PhysicUnit="Temperature", PhysicValue="K", SatelliteNameID=7500014)
def ntg2(test_image_large_asia_RGB): """Create instance of NinJoTagGenerator class.""" from satpy.writers.ninjogeotiff import NinJoTagGenerator return NinJoTagGenerator(test_image_large_asia_RGB, 0, "seitan.tif", ChannelID=1000015, DataType="GORN", PhysicUnit="N/A", PhysicValue="N/A", SatelliteNameID=6400014)
def test_str_ids(test_image_small_arctic_P): """Test that channel and satellit IDs can be str.""" from satpy.writers.ninjogeotiff import NinJoTagGenerator NinJoTagGenerator(test_image_small_arctic_P, 42, "quorn.tif", ChannelID="la manche", DataType="GPRN", PhysicUnit="N/A", PhysicValue="N/A", SatelliteNameID="trollsat")
def ntg_no_fill_value(test_image_small_mid_atlantic_L): """Create instance of NinJoTagGenerator class.""" from satpy.writers.ninjogeotiff import NinJoTagGenerator return NinJoTagGenerator(test_image_small_mid_atlantic_L, None, "bulgur.tif", ChannelID=900015, DataType="GORN", PhysicUnit="C", PhysicValue="Temperature", SatelliteNameID=6400014, DataSource="dowsing rod")
def ntg3(test_image_small_arctic_P): """Create instance of NinJoTagGenerator class.""" from satpy.writers.ninjogeotiff import NinJoTagGenerator return NinJoTagGenerator(test_image_small_arctic_P, 255, "spelt.tif", ChannelID=800012, DataType="PPRN", PhysicUnit="N/A", PhysicValue="N/A", SatelliteNameID=6500014, OverFlightTime=42)
def test_create_unknown_tags(test_image_small_arctic_P): """Test that unknown tags raise ValueError.""" from satpy.writers.ninjogeotiff import NinJoTagGenerator with pytest.raises(ValueError): NinJoTagGenerator(test_image_small_arctic_P, 42, "quorn.tif", ChannelID=800012, DataType="GPRN", PhysicUnit="N/A", PhysicValue="N/A", SatelliteNameID=6500014, Locatie="Hozomeen")