PISM, A Parallel Ice Sheet Model  stable v2.1.1 committed by Constantine Khrulev on 2024-12-04 13:36:58 -0900

◆ check_consistency_epsg()

void pism::check_consistency_epsg ( const MappingInfo info)

Check consistency of the "mapping" variable with the EPSG code in the proj string.

If the consistency check fails, throws RuntimeError explaining the failure. Fails if info.proj does not use an EPSG code.

Definition at line 136 of file projection.cc.

References pism::VariableMetadata::all_doubles(), pism::VariableMetadata::all_strings(), epsg_to_cf(), pism::RuntimeError::formatted(), pism::VariableMetadata::get_number(), pism::VariableMetadata::has_attribute(), pism::VariableMetadata::has_attributes(), pism::MappingInfo::mapping, PISM_ERROR_LOCATION, pism::MappingInfo::proj, and pism::VariableMetadata::unit_system().

Referenced by get_projection_info().