Version 0.4 Changes
Support for new observed Properties and instructions for adding your own.
Support for many more observed properties
This version has added support for many more observed properties. All the previous versions had support for only sea_water_salinity and sea_water_temperature.I have added a new file cf_lookup.pl which is required by the oostethys_sos script and should be installed in the same directory as the script.
To make use of this version two files must be edited:
1) sos_config.xml - You must duplicate the <ObservationList><Observation> section for an existing observed Property for each additional observedProperty on that platform. You must change the <observedProperty> element to reflect the local name of your observed property. Note: if locally you refer to sea_water_temperature as seatemperature, seatemperature is the value you should use. You should also update the <z> element to reflect the depth at which the property is measured.
2) cf_lookup.pl - There is a much expanded lookup table at the very top of the script called @cf_lookup. This file must be edited to reflect the names you use for your observedProperties / data types.
The table is an array of hashes, each hash with the following structure:
{
local_name => 'AIR_TEMPERATURE',
cf_name => 'air_temperature',
catalog_name => 'AirTemperature',
label => 'Air Temperature',
short_name => 'airTemperature',
definition => 'http://marinemetadata.org/cf#air_temperature',
units => 'C',
uom => 'urn:mm.def:units#celsius',
},
The default local_names are the values used by GoMOOS. If you use different local names you must change the local_name in the table and it MUST match the observedProperty elements used in your sos_config.xml file.
In addition if you are serving your observations utilizing different units you should edit the units and uom values.
As an example: If your local name for air temperature is AirTemperature and your observations are measured in Kelvins the entry would look like:
{
local_name => 'AirTemperature',
cf_name => 'air_temperature',
catalog_name => 'AirTemperature',
label => 'Air Temperature',
short_name => 'airTemperature',
definition => 'http://marinemetadata.org/cf#air_temperature',
units => 'K',
uom => 'urn:mm.def:units#kelvin',
},
Important note: The cf_name must match the part of the definition after the # symbol.
There are additional comments in the cf_lookup.pl to assist in editing it.