PISM, A Parallel Ice Sheet Model  stable v2.1-1-g6902d5502 committed by Ed Bueler on 2023-12-20 08:38:27 -0800

◆ 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().