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

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