Versions Compared

Key

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

...

Tidal wave data on the north sea which has been analyzed to determine wave heights and assign standardized wave numbers can be stored in a specific NetCDF format where the upper and lower water levels are referenced by wave numbers replacing time as dimension and time stamps per wave number and location are stored separately.   

The NETCDF-TIDAL_TIMESERIES option exports such Exports data to NetCDF files which comply to the CF 1.4 standard.

...

An example of the NETCDF-TIDAL_TIMESERIES export is given here.

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-CFTIDAL_TIMESERIES</exportType>
			<folder>%REGION_HOME%/Export/netcdf/0D<<folder>$EXPORT_FOLDER_EXTERNAL_STORAGE$/noordzee/simulations/scalar/$MODEL$_$WINDFORCING$/forecast/</folder>
			<exportFileName>
				<name>_$MODEL$_$WINDFORCING$_tidenumber.nc</name>
				<prefix>
					<timeZeroFormattingString>yyyyMMddHHmm<<timeZeroFormattingString>yyyyMMdd_HHmm</timeZeroFormattingString>
				</prefix>
			</exportFileName>
			<idMapId>IdExportNetCDF<<idMapId>IdExport_FEWS_Archive_HATYAN</idMapId>
			<exportMissingValueString>-999</exportMissingValueString>
			<exportTimeZone>
				<timeZoneName>GMT</timeZoneName>
			</exportTimeZone>
			<geoDatum>Rijks Driehoekstelsel</geoDatum>
		</general>
		<properties>
			<string key="netCDFWriteFormat" value="netcdf4"/>
			<int key="timeseriesproperty:rivieren1" value='netcdfattribute:discharge_forcing_id'"netCDF4DeflateLevel" value="6"/>
			<string key="variables" value="waterlevel_LW,waterlevel_HW,surge_LW,surge_HW"/>
			<string key="waterlevel_LW" value="time_LW,LWno"/>
			<string key="waterlevel_HW" value="time_HW,HWno"/>
			<string key="timeseriesproperty:rivieren2surge_LW" value='netcdfattribute:systemid '="time_LW,LWno"/>
			<string key="surge_HW" value="time_HW,HWno"/>
		</properties>
		<metadata>
			<source>$MODEL$_$WINDFORCING$</source>
			<customAttributes>
				<string key="system" value="nz"/>
			</customAttributes>
		</metadata>
		<timeSeriesSet>
			<moduleInstanceId>ExportNetcdf<moduleInstanceId>$MODULEINSTANCEID_Timeseries<HWLW$</moduleInstanceId>
			<valueType>scalar</valueType>
			<parameterId>Q.udm</parameterId><parameterId>$MODEL_PARAM_WL$</parameterId>
			<qualifierId>extreme_Low</qualifierId>
			<qualifierId>$MODEL_QUALIFIER$</qualifierId>
			<locationSetId>DMFlowPoints<<locationSetId>REP_HATYAN_$MODEL_QUALIFIER$</locationSetId>
			<timeSeriesType>simulated historical<forecasting</timeSeriesType>
			<timeStep unit="nonequidistant"/>
			<relativeViewPeriod unit="day" start="-365" end="365<readWriteMode>read complete forecast</readWriteMode>
		</timeSeriesSet>
		<timeSeriesSet>
			<moduleInstanceId>$MODULEINSTANCEID_HWLW$</moduleInstanceId>
			<valueType>scalar</valueType>
			<parameterId>$MODEL_PARAM_SURGE$</parameterId>
			<qualifierId>extreme_Low</qualifierId>
			<qualifierId>$MODEL_QUALIFIER$</qualifierId>
			<locationSetId>REP_HATYAN_$MODEL_QUALIFIER$</locationSetId>
			<timeSeriesType>simulated forecasting</timeSeriesType>
			<timeStep unit="nonequidistant"/>
			<readWriteMode>add<readWriteMode>read complete originals<forecast</readWriteMode>
		</timeSeriesSet>
	</export>
</timeSeriesExportRun>

...

Code Block
borderStylesolid
titleIdExportNetCDF 1.00 default.xml
<?xml version="1.0" encoding="UTF-8"?>
<idMap version="1.1" 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/idMap.xsd">
	<parameter internal="Q.udm" external="discharge" externalQualifier1="discharge (not standardname, just for test)"/>

	<location internal="DMTak_1001" external="1001"/>
	<location internal="DMTak_1002" external="1002"/>
	<location internal="DMTak_1003" external="1003"/>
	<location internal="DMTak_1004" external="1004"/>
	...
	<location internal="DMTak_6115" external="6115"/>
</idMap>

NetCDF standard names

If the parameter has an entry in the standard name CF table, you can enter this standard name to the parameters.xml file. The value of this standardName element will be added as the standard_name attribute for this variable in the exported netcdf file.

Code Block
borderStylesolid
titleIdExportNetCDF 1.00 default.xml
<parameter id="P.obs" name="Observed Rainfall">
        <shortName>P.obs</shortName>
        <standardName>precipitation_amount</standardName>
</parameter>

          

...

	<timeSeriesSet>
			<moduleInstanceId>$MODULEINSTANCEID_HWLW$</moduleInstanceId>
			<valueType>scalar</valueType>
			<parameterId>HWLW_nr</parameterId>
			<qualifierId>extreme_Low</qualifierId>
			<qualifierId>$MODEL_QUALIFIER$</qualifierId>
			<locationSetId>REP_HATYAN_$MODEL_QUALIFIER$</locationSetId>
			<timeSeriesType>simulated forecasting</timeSeriesType>
			<timeStep unit="nonequidistant"/>
			<readWriteMode>read complete forecast</readWriteMode>
		</timeSeriesSet>
		<timeSeriesSet>
			<moduleInstanceId>$MODULEINSTANCEID_HWLW$</moduleInstanceId>
			<valueType>scalar</valueType>
			<parameterId>$MODEL_PARAM_WL$</parameterId>
			<qualifierId>extreme_Peak</qualifierId>
			<qualifierId>$MODEL_QUALIFIER$</qualifierId>
			<locationSetId>REP_HATYAN_$MODEL_QUALIFIER$</locationSetId>
			<timeSeriesType>simulated forecasting</timeSeriesType>
			<timeStep unit="nonequidistant"/>
			<readWriteMode>read complete forecast</readWriteMode>
		</timeSeriesSet>
		<timeSeriesSet>
			<moduleInstanceId>$MODULEINSTANCEID_HWLW$</moduleInstanceId>
			<valueType>scalar</valueType>
			<parameterId>$MODEL_PARAM_SURGE$</parameterId>
			<qualifierId>extreme_Peak</qualifierId>
			<qualifierId>$MODEL_QUALIFIER$</qualifierId>
			<locationSetId>REP_HATYAN_$MODEL_QUALIFIER$</locationSetId>
			<timeSeriesType>simulated forecasting</timeSeriesType>
			<timeStep unit="nonequidistant"/>
			<readWriteMode>read complete forecast</readWriteMode>
		</timeSeriesSet>
		<timeSeriesSet>
			<moduleInstanceId>$MODULEINSTANCEID_HWLW$</moduleInstanceId>
			<valueType>scalar</valueType>
			<parameterId>HWLW_nr</parameterId>
			<qualifierId>extreme_Peak</qualifierId>
			<qualifierId>$MODEL_QUALIFIER$</qualifierId>
			<locationSetId>REP_HATYAN_$MODEL_QUALIFIER$</locationSetId>
			<timeSeriesType>simulated forecasting</timeSeriesType>
			<timeStep unit="nonequidistant"/>
			<readWriteMode>read complete forecast</readWriteMode>
		</timeSeriesSet>
	</export>
</timeSeriesExportRun>