Coordinate Variable Metadata - Unidata/rosetta GitHub Wiki
In the wizard step for variable metadata selection, we ask the user:
"What type of coordinate variable?"
These options are currently controlled in src/main/webapp/frontEndResources/js/SlickGrid/custom/variableSpecification.js
We need to make a few adjustments, as outlined below.
Coordinate Variable Types
value | description |
---|---|
timeOnly |
Time only (hour, minute, second, and/or millisecond) |
dateOnly |
Date only (year, month, and/or day) |
fullDateTime |
Full date and time string |
relativeTime |
Relative time (e.g. hours since 1970-01-01) |
latitude |
Latitude |
longitude |
Longitude |
vertical |
Vertical coordinate (e.g. height, depth, pressure) |
Notes:
-
relativeTime
,latitude
,longitude
, andvertical
used to be calledreltime
,lat
,lon
, andalt
, respectively. -
If
vertical
, user must specify the direction of positive (i.e., the direction in which the coordinate values are increasing). The name of this attribute is called "positive", and will have a value of "up" or "down". The prompt could look something like:Which direction do the values increase? [Up, Down] (html select)
metadataTypeStructure
(from the MPS xml files) mapping:
This is how the value of the html selector (answer to "What type of coordinate variable?") relates to the metadataTypeStructure
value found in the MPS xml files:
html selector value | metadataTypeStructure |
---|---|
timeOnly |
time |
dateOnly |
time |
fullDateTime |
time |
relativeTime |
time |
latitude |
lat |
longitude |
lat |
vertical |
depth |