IO API¶
Input and output from netCDF-SCM’s netCDF format
-
netcdf_scm.io.
get_scmcube_helper
(drs)[source]¶ Get ScmCube helper for a given data reference syntax
- drsstr
Data reference syntax to get the helper cube for
- Returns
Instance of sub-class of
netcdf_scm.iris_cube_wrappers.ScmCube
which matches the input data reference syntax- Return type
- Raises
NotImplementedError –
drs
is equal to"None"
KeyError –
drs
is unrecognised
-
netcdf_scm.io.
load_mag_file
(infile, drs)[source]¶ Load
.MAG
file with automatic infilling of metadata if possible- Parameters
- Returns
pymagicc.io.MAGICCData
with the data and metadata contained in the file.- Return type
pymagicc.io.MAGICCData
- Warns
UserWarning – Some or all of the metadata couldn’t be determined from
infile
with the givendrs
.