Versions Compared

Key

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

...

An example of the NETCDF-CF_TIMESERIES export will be given here.

In FEWS, it is possible to couple time series with pre-configured properties. From 2021.02 the properties can be exported to the NETCDF file as NETCDF attributes. See a config example bellow. Using the example, the name of the NETCDF attribute will be systemid, the value will be the value of timeSeriesProperty with the name rivieren2, that belongs to the exported time series.


Since 2021.02 it is also possible to import NETCDF attributes into FEWS and save them as timeSeriesProperty. You can see a config example for that here: NETCDF-CF_GRID

Code Block
borderStylesolid
titleExportNetcdf_Timeseries 1.00 default.xml
<?xml version="1.0" encoding="UTF-8"?>
<timeSeriesExportRun 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/timeSeriesExportRun.xsd">
	<export>
		<general>
			<exportType>NETCDF-CF_TIMESERIES</exportType>
			<folder>%REGION_HOME%/Export/netcdf/0D</folder>
			<exportFileName>
				<name>.nc</name>
				<prefix>
					<timeZeroFormattingString>yyyyMMddHHmm</timeZeroFormattingString>
				</prefix>
			</exportFileName>
			<idMapId>IdExportNetCDF</idMapId>
			<exportMissingValueString>-999</exportMissingValueString>
			<exportTimeZone>
				<timeZoneName>GMT</timeZoneName>
			</exportTimeZone>
		</general>
		<properties>
			<string key="timeseriesproperty:rivieren1" value='netcdfattribute:discharge_forcing_id'/>
			<string key="timeseriesproperty:rivieren2" value='netcdfattribute:systemid '/>
		</properties>
		<timeSeriesSet>
			<moduleInstanceId>ExportNetcdf_Timeseries</moduleInstanceId>
			<valueType>scalar</valueType>
			<parameterId>Q.udm</parameterId>
			<locationSetId>DMFlowPoints</locationSetId>
			<timeSeriesType>simulated historical</timeSeriesType>
			<timeStep unit="nonequidistant"/>
			<relativeViewPeriod unit="day" start="-365" end="365"/>
			<readWriteMode>add originals</readWriteMode>
		</timeSeriesSet>
	</export>
</timeSeriesExportRun>

...