Contains the class to handle LFI format.
Bases: epygram.resources.FileResource.FileResource
Class implementing all specificities for LFI resource format.
Footprint:
dict(
attr = dict(
compressed = dict(
access = 'rwx',
alias = set([]),
default = False,
info = 'Compression flag.',
optional = True,
outcast = set([]),
remap = dict(),
type = bool,
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 = 'LFI',
info = 'Format of the resource.',
optional = True,
outcast = set([]),
remap = dict(),
values = set(['LFI']),
),
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']),
),
true3d = dict(
access = 'rxx',
alias = set([]),
default = False,
info = '',
optional = True,
outcast = set([]),
remap = dict(),
type = bool,
values = set([]),
),
),
bind = [],
info = 'Not documented',
only = dict(),
priority = dict(
level = footprints.priorities.PriorityLevel::DEFAULT,
),
)
Deletes a field from file “in place”.
Extracts a subdomain from the LFI resource, given its fid and the geometry to use.
Args:
Extracts a vertical profile from the LFI resource, given its fid and the geographic location (lon/lat) of the profile.
Args:
Extracts a vertical section from the LFI resource, given its fid and the geographic (lon/lat) coordinates of its ends. The section is returned as a V2DField.
Args:
Returns a list of the fields from resource whose identifier match the given seed.
Args:
Returns a list containing the LFI identifiers of all the fields of the resource.
Reads one field, given its identifier (tuple (LFI name, level)), and returns a Field instance. Interface to Fortran routines from ‘ifsaux’.
Args:
fieldidentifier: “LFI fieldname” if true3d, else (LFI fieldname, level).
Default is True.
Returns a epygram.base.FieldSet containing requested fields read in the resource.
Args:
requestedfields: might be
Default is True.
Renames a field “in place”.
Returns a sorted list of fields with regards to their name and nature, as a dict of lists.
Writes in file a summary of the contents of the LFI.
Args:
Write a field in the resource.
Args:
Write the fields of the fieldset in the resource.
Args: