Contains the class for FA format.
Plus a function to guess a field type given its name.
Returns the info contained in the FA _field_dict for the requested field.
Return a generic fid from fieldname (via Field Dict).
Bases: epygram.resources.FileResource.FileResource
Class implementing all specificities for FA resource format.
Footprint:
dict(
attr = dict(
cdiden = dict(
access = 'rwx',
alias = set([]),
default = 'unknown',
info = 'With openmode == 'w', identifies the FA by a keyword, usually the model abbreviation.',
optional = True,
outcast = set([]),
remap = dict(),
values = set([]),
),
default_compression = dict(
access = 'rxx',
alias = set([]),
default = None,
info = 'Default compression for writing fields 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 = 'FA',
info = 'Format of the resource.',
optional = True,
outcast = set([]),
remap = dict(),
values = set(['FA']),
),
headername = dict(
access = 'rxx',
alias = set([]),
default = None,
info = 'With openmode == 'w', name of an existing header, for the new FA to use its geometry.',
optional = True,
outcast = set([]),
remap = dict(),
values = set([]),
),
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']),
),
processtype = dict(
access = 'rwx',
alias = set([]),
default = 'analysis',
info = 'With openmode == 'w', identifies the processus that produced the resource.',
optional = True,
outcast = set([]),
remap = dict(),
values = set([]),
),
validity = dict(
access = 'rwx',
alias = set([]),
default = None,
info = 'With openmode == 'w', describes the temporal validity of the resource.',
optional = True,
outcast = set([]),
remap = dict(),
type = epygram.base.FieldValidityList,
values = set([]),
),
),
bind = [],
info = 'Not documented',
only = dict(),
priority = dict(
level = footprints.priorities.PriorityLevel::DEFAULT,
),
)
Extracts a subdomain from the FA resource, given its fid and the geometry to use.
Args:
Extracts a vertical profile from the FA resource, given its pseudoname and the geographic location (lon/lat) of the profile.
Args:
Extracts a vertical section from the FA resource, given its pseudoname and the geographic (lon/lat) coordinates of its ends. The section is returned as a V2DField.
Args:
Returns a dict containing info about how the field is encoded: spectral? and compression. Interface to ifsaux’ FANION.
Returns a list of the fields from resource whose name match the given seed.
Args:
Returns a list containing the FA identifiers of all the fields of the resource.
Opens a FA with ifsaux’ FAITOU, and initializes some attributes.
Actually, as FAITOU needs an existing header with ‘w’ openmode, opening file in ‘w’ openmode will require else an existing header to which the resource is linked, or to create a header from a geometry via _create_header_from_geometry() function. This explains the eventual need for geometry/spectral_geometry/validity in open() method. If neither headername nor geometry are available, resource is not opened: the open() will be called again at first writing of a field in resource.
Args:
Reads one field, given its FA name, and returns a Field instance. Interface to Fortran routines from ‘ifsaux’.
Args:
Returns a epygram.base.FieldSet containing requested fields read in the resource.
Args:
Returns a sorted list of fields with regards to their name and nature, as a dict of lists.
Return two lists of fids corresponding respectively to U and V components of wind, given a fieldseed.
Writes in file a summary of the contents of the FA.
Args:
out: the output open file-like object (duck-typing: out.write() only is needed).
‘compression’ if information about fields compression is requested.
sortfields: True if the fields have to be sorted by type.
*fastlist
Write a field in the resource.
Args:
Write the fields of the fieldset in the resource.
Args: