Contains classes for netCDF4 resource.
Bases: epygram.resources.FileResource.FileResource
Class implementing all specificities for netCDF (4) resource format.
Footprint:
dict(
attr = dict(
behaviour = dict(
access = 'rxx',
alias = set([]),
default = dict(
H2D_dimensions_names = ('X', 'Y'),
flatten_non_rectangular_grids = True,
transpose_data_ordering = False,
variable_name_for_latitudes = 'lats',
variable_name_for_longitudes = 'lons',
variable_name_for_validity = 'time',
),
info = 'Describes how fields are defined in resource.',
optional = True,
outcast = set([]),
remap = dict(),
type = footprints.stdtypes.FPDict,
values = set([]),
),
filename = dict(
access = 'rxx',
alias = set([]),
default = None,
info = 'File name (absolute or relative) of the resource.',
optional = False,
outcast = set([]),
remap = dict(),
values = set([]),
),
fmtdelayedopen = dict(
access = 'rxx',
alias = set([]),
default = False,
info = 'Opening of the resource delayed (not at time of construction).',
optional = True,
outcast = set([]),
remap = dict(),
type = bool,
values = set([]),
),
format = dict(
access = 'rxx',
alias = set([]),
default = 'netCDF',
info = 'Format of the resource.',
optional = True,
outcast = set([]),
remap = dict(),
values = set(['netCDF']),
),
openmode = dict(
access = 'rxx',
alias = set([]),
default = None,
info = 'Opening mode.',
optional = False,
outcast = set([]),
remap = dict(
append = 'a',
read = 'r',
write = 'w',
),
values = set(['a', 'write', 'r', 'w', 'read', 'append']),
),
),
bind = [],
info = 'Not documented',
only = dict(),
priority = dict(
level = footprints.priorities.PriorityLevel::DEFAULT,
),
)
Set-up the given arguments in self.behaviour, for the purpose of building fields from netCDF.
Returns a list of the fields from resource whose name match the given seed.
Args:
Opens a netCDF and initializes some attributes.
Reads one field, given its netCDF name, and returns a Field instance.
Args:
Writes in file a summary of the contents of the GRIB.
Write a field in resource. Args: