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.ScmCubewhich matches the input data reference syntax- Return type
- Raises
NotImplementedError –
drsis equal to"None"KeyError –
drsis unrecognised
-
netcdf_scm.io.load_mag_file(infile, drs)[source]¶ Load
.MAGfile with automatic infilling of metadata if possible- Parameters
- Returns
pymagicc.io.MAGICCDatawith 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
infilewith the givendrs.