def test_azimuthal_equidistant_operation__defaults(): aeop = AzumuthalEquidistantConversion() assert aeop.name == "unknown" assert aeop.method_name == "Modified Azimuthal Equidistant" assert _to_dict(aeop) == { "Latitude of natural origin": 0.0, "Longitude of natural origin": 0.0, "False easting": 0.0, "False northing": 0.0, }
def _azimuthal_equidistant(cf_params): """ http://cfconventions.org/cf-conventions/cf-conventions.html#azimuthal-equidistant """ return AzumuthalEquidistantConversion( latitude_natural_origin=cf_params.get("latitude_of_projection_origin", 0.0), longitude_natural_origin=cf_params.get("longitude_of_projection_origin", 0.0), false_easting=cf_params.get("false_easting", 0.0), false_northing=cf_params.get("false_northing", 0.0), )
def test_azimuthal_equidistant_operation(): aeop = AzumuthalEquidistantConversion( latitude_natural_origin=1, longitude_natural_origin=2, false_easting=3, false_northing=4, ) assert aeop.name == "unknown" assert aeop.method_name == "Modified Azimuthal Equidistant" assert _to_dict(aeop) == { "Latitude of natural origin": 1.0, "Longitude of natural origin": 2.0, "False easting": 3.0, "False northing": 4.0, }