Skip to content

Commit

Permalink
Split iris.fileformats.netcdf into separate load+save submodules.
Browse files Browse the repository at this point in the history
  • Loading branch information
pp-mo committed Jun 17, 2022
1 parent 2e71135 commit ac6d1bf
Show file tree
Hide file tree
Showing 3 changed files with 645 additions and 570 deletions.
41 changes: 41 additions & 0 deletions lib/iris/fileformats/netcdf/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
#
# This file is part of Iris and is released under the LGPL license.
# See COPYING and COPYING.LESSER in the root of the repository for full
# licensing details.
"""
Module to support the loading of a NetCDF file into an Iris cube.
See also: `netCDF4 python <https://github.com/Unidata/netcdf4-python>`_
Also refer to document 'NetCDF Climate and Forecast (CF) Metadata Conventions'.
"""
from .loader import DEBUG, NetCDFDataProxy, load_cubes, logger
from .saver import (
CF_CONVENTIONS_VERSION,
MESH_ELEMENTS,
SPATIO_TEMPORAL_AXES,
CFNameCoordMap,
Saver,
UnknownCellMethodWarning,
parse_cell_methods,
save,
)

# Export all public elements from the loader and saver submodules.
# NOTE: the separation is purely for neatness and developer convenience; from
# the user point of view, it is still all one module.
__all__ = (
CF_CONVENTIONS_VERSION,
CFNameCoordMap,
DEBUG,
MESH_ELEMENTS,
Saver,
SPATIO_TEMPORAL_AXES,
NetCDFDataProxy,
UnknownCellMethodWarning,
load_cubes,
logger,
parse_cell_methods,
save,
)
Loading

0 comments on commit ac6d1bf

Please sign in to comment.