Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

How to import data from an OPeNDAP server

Data can be imported into Delft-FEWS directly from an OPeNDAP server. This can be done using the Import Module. The following import types currently support import using OPeNDAP:

import type

usage

NETCDF-CF_GRID

Use this for importing grid time series that are stored in NetCDF format

NETCDF-CF_TIMESERIES

Use this for importing scalar time series that are stored in NetCDF format

NETCDF-CF_PROFILE

Use this for importing profile time series that are stored in NetCDF format

To instruct the import to use OPeNDAP instead of importing local files, specify a server URL instead of an import folder. See the following configuration example.

Code Block
xml
xml

<?xml version="1.0" encoding="UTF-8"?>
<timeSeriesImportRun xmlns="http://www.wldelft.nl/fews" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.wldelft.nl/fews http://fews.wldelft.nl/schemas/version1.0/timeSeriesImportRun.xsd">
	<import>
		<general>
			<importType>NETCDF-CF_GRID</importType>
			<serverUrl>http://test.opendap.org/opendap/hyrax/data/nc/sst.mnmean.nc.gz</serverUrl>
			<startDateTime date="2007-07-01" time="00:00:00"/>
			<endDateTime date="2008-01-01" time="00:00:00"/>
			<idMapId>OpendapImportIdMap</idMapId>
			<missingValue>32767</missingValue>
		</general>
		<timeSeriesSet>
			<moduleInstanceId>OpendapImport</moduleInstanceId>
			<valueType>grid</valueType>
			<parameterId>T.obs</parameterId>
			<locationId>gridLocation1</locationId>
			<timeSeriesType>external historical</timeSeriesType>
			<timeStep unit="nonequidistant"/>
			<readWriteMode>add originals</readWriteMode>
		</timeSeriesSet>
	</import>
</timeSeriesImportRun>

Import data from a single file

...

To import only data for a given period of time, specify either a relative period or an absolute period in the import configuration file. See relativeViewPeriod, startDateTime and endDateTime for more information. The import will first search the metadata of each file that needs to be imported from the OPeNDAP server. Then for each file that contains data within the specified period, only the data within the specified period will be imported. The start and end of the period are both inclusive.

...

Related modules and documentation

03 Import Module, Import Module configuration options, NETCDF-CF_GRID, NETCDF-CF_TIMESERIES, NETCDF-CF_PROFILE.