|
JavaServerInstructions
Instructions for installing the JAVA server
IntroductionThis document presents guidelines for setting up an OOSTethys JAVA server. The Server will create an Open Geospatial Consortium (OGC) Sensor Observation Service (SOS) that can run as a web application in a Java web server, such as Tomcat and Jetty. Installing war file (5 min)
Editing the configuration file (10 min)The OOSTethys configuration file describes the details of a data (or service or stream) source, necessary to publish an SOS service, based on OOSTethys conventions. Oostethys has components. A component is a systems, which could represent an observing system, platform or sensor. A system has metadata ( systemName, identifier, etc..), and could have other components or an output. For example an observing system could have more than one platform. but will have no output. A sensor could have output but no components. The output has a sourceConfiguration, which details the properties to parser the sources and publish an SOS service. The following source is available: OOSTethys - JAVA - NetCDF This configuration file describe the details of a NetCDF file, necessary to publish an SOS service, based on OOSTethys conventions. The code bellow is an example of the oostethys-netcdf configuration. <output>
<sourceConfiguration>
<oostethys-netcdf>
<fileURL>myNetCDFURL.nc</fileURL>
<variables>
<variable shortName="esecs" dimension="time" uri="http://mmisw.org/ont/cf/parameter/iso_19118_time"/>
<variable shortName="Longitude" dimension="longitude" uri="urn:ogc:phenomenon:longitude:wgs84"/>
<variable shortName="Latitude" dimension="latitude" uri="urn:ogc:phenomenon:latitude:wgs84"/>
<variable shortName="NominalDepth" dimension="depth" uri="http://mmisw.org/ont/cf/parameter/depth"/>
<variable shortName="Temperature" dimension="no" uri="http://mmisw.org/ont/cf/parameter/sea_water_temperature"/>
<variable shortName="Conductivity" dimension="no" uri="http://mmisw.org/ont/cf/parameter/conductivity"/>
<variable shortName="Pressure" dimension="no" uri="http://mmisw.org/ont/cf/parameter/pressure"/>
<variable shortName="Salinity" dimension="no" uri="http://mmisw.org/ont/cf/parameter/sea_water_salinity"/>
</variables>
</oostethys-netcdf>
</sourceConfiguration>
</output>
It also allows a simple OPeNDAP url with ranges, where you can specify the minimum and maximum ranges for each variable. For example: http://xxxx-nc.dods?time[0:3],depth[0:3],latitude[0:1],longitude[0:1],echo_intensity_beam1[0:8514][0:59][0:0][0:0] A more concrete example: http://www.smast.umassd.edu:8080/thredds/dodsC/FVCOM/NECOFS/Forecasts/NECOFS_FVCOM_OCEAN_MASSBAY_FORECAST.nc.dods?lon[28482],lat[28482],time[1:72],zeta[1:72][28482]
...
float Salinity(esecs=8265, NominalDepth=1, Latitude=1, Longitude=1);
:long_name = "Salinity";
:units = "";
:standard_name = "sea_water_salinity";
:missing_value = -99999.0f; // float
:_FillValue = -99999.0f; // float
... float NominalDepth(NominalDepth=1);
:long_name = "Depth";
:units = "m";
:standard_name = "depth";
:_CoordinateAxisType = "Height";
...
Checking the ServerIn the welcome page you should see a check link. If you follow it, you will be provided with errors or a success confirmation message. Examples are shown bellow.
|