Loading [MathJax]/extensions/tex2jax.js
PISM, A Parallel Ice Sheet Model 2.2.2-d6b3a29ca committed by Constantine Khrulev on 2025-03-28
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages

◆ epsg_to_cf()

VariableMetadata pism::epsg_to_cf ( units::System::Ptr  system,
const std::string &  proj_string 
)

Return CF-Convention "mapping" variable corresponding to an EPSG code specified in a PROJ string.

Convert a proj string with an EPSG code to a set of CF attributes.

Fails if proj_string does not contain an EPSG code.

Definition at line 90 of file projection.cc.

References pism::RuntimeError::formatted(), parse_epsg(), and PISM_ERROR_LOCATION.

Referenced by check_consistency_epsg(), and pism::MappingInfo::FromFile().