Skip to content
This repository has been archived by the owner on Apr 12, 2023. It is now read-only.

Rosetta Template Attributes

Sean Arms edited this page Jul 25, 2018 · 10 revisions

Information contained in the Rosetta template.

Rosetta Template

Attribute Data type Notes
cfType String
platform String
community String
headerLineNumbers List<Integer> The line numbers, not the actual header lines.
delimiter String Only permitting one delimiter String at this time.
format String custom, geoCSV, eTuff, eolSC, etc.
variable information List<VariableInfo> See VariableInfo object information below.
globalMetadata* List<Attribute> The following data item will be contained in an Attribute object:

  • name: value, type (where type = String, int, float, etc.)
templateVersion String
creationDate String
serverId String name, URL, and IP? (maybe define a name in `application.properties`?)
rosettaVersion String

* Global metadata from given metadata profile (currently CF and NCEI by default)

VariableInfo Object Information

The VariableInfo class contains variable-specific information. Proposed instance variables for this class:

public class VariableInfo {

    private int columnId;
    private String name;
    private List<Attribute> rosettaControlMetadata;
    private List<Attribute> variableMetadata;

   ...
}
Attribute Data type Notes
columnId int The id of the column in the CSV file.
name String The assigned name of the metadata.
rosettaControlMetadata List<Attribute> The following data items will be contained in Attribute objects:
  • type: String (int, float, String)

  • coordinateVariable: boolean

  • coordinateVariableType: String (lat, lon, depth, height, time (full, rel, dateOnly, timeOnly)

variableMetadata* List<Attribute> The following data item will be contained in an Attribute object:
  • name: value, type (where type = String, int, float, etc.)

* Variable metadata: base set + extra from given metadata profile (currently CF and NCEI by default)