"This code sequence lists all possible metadata elements in EBAS. Each line contains the tag (the tag used in the Nasa Ames files) and the key (the key used in the io object's metadata).\n",
"This code sequence lists all possible metadata elements in EBAS. Each line contains the Nasa Ames tag (the tag used in the Nasa Ames files), the NetCDF tag (attribute name used in NetCDF files) and the object key (the key used in the io object's metadata).\n",
"We only list metadata which are allowed either as global metadata (main) or as variable metadata (vname)"
The EbasMetadata object defines the syntax of the ebas.io file objects. It is used internally by the io.file objects for creating the output files and parsing input files.
The user migtht, when creating an output file use the object for retrieving information about how to set a specific attribute in the file object in order to create a specifig metadata element in the output file.
Or vice versa, when reading an input file, know which attribute to access when the contents of a specific metadata element in the file is needed.
Please find below some examples how to list this kind of information interactively.
%% Cell type:markdown id: tags:
## General setup: imports and instanciation
%% Cell type:markdown id: tags:
This part is needed for all the examples below.
Be aware to specify the datalevel if you want to see metadata that are only allowed for level 0. This is important if you want to write a script for level 0 data submissions. For some templates (e.g. mmps, nephelometer and filter_absorption_potometer), additional metadata are used which are only valid for data level 0.
This code sequence lists all possible metadata elements in EBAS. Each line contains the tag (the tag used in the Nasa Ames files) and the key (the key used in the io object's metadata).
This code sequence lists all possible metadata elements in EBAS. Each line contains the Nasa Ames tag (the tag used in the Nasa Ames files), the NetCDF tag (attribute name used in NetCDF files) and the object key (the key used in the io object's metadata).
We only list metadata which are allowed either as global metadata (main) or as variable metadata (vname)
- main: specifies the cardinality of the element in the main header (NNCOM lines)
Bitfield:
0 not allowed
1 allowed but not mandatory
2 mandatory on export
4 mandatory on import
8 critical on import (if missing, exit after reading header)
- vname: specifies the cardinality of the element in the vname line.
Bitfield:
0 not allowed
1 allowed but not mandatory
2 mandatory on export (not used)
4 mandatory on import
8 critical on import (if missing, exit after reading header)
%% Cell type:markdown id: tags:
## Finding the key to a tag
%% Cell type:markdown id: tags:
If you see a metadata element in the NASA Ames file and want to access it after reading the file using the ebas.io module, you need to find the element's *key* when knowing the *tag*: