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

◆ 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 47 of file projection.cc.

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

Referenced by check_consistency_epsg(), and get_projection_info().