Introduction
Export a geometry with data for a selected timestep from a scalar timeseries to ESRI Shapefile
The format and content of this export is equivalent to exporting a polygon frame from the spatial display window using the debug menu (F12)
The ID of this serializer is 'scalar2shp'.
Example module configuration
<?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://chps1/schemas/timeSeriesExportRun.xsd"> <export> <general> <exportType>scalar2shp</exportType> <folder>$EXPORT_FOLDER$/shape</folder> <exportFileName> <name>catchment_Export</name> <suffix> <currentTimeFormattingString>yyyyMMddHHmmss</currentTimeFormattingString> </suffix> </exportFileName> <geoDatum>WGS 1984</geoDatum> </general> <timeSeriesSet> <moduleInstanceSetId>TEST_Forecast</moduleInstanceSetId> <valueType>scalar</valueType> <parameterId>rain</parameterId> <locationSetId>Catchments</locationSetId> <timeSeriesType>simulated forecasting</timeSeriesType> <timeStep unit="hour" multiplier="6"/> <relativeViewPeriod unit="hour" start="-240" end="240"/> <readWriteMode>add originals</readWriteMode> <ensembleId>RENS</ensembleId> <ensembleMemberIndex>0</ensembleMemberIndex> </timeSeriesSet> </export> </timeSeriesExportRun>
Notes:
1) The 'scalar2shp' serializer can only output one time step so for a scalar timeseries the relativeViewperiod needs to be set to select a range of which only the first timestep will be used.
2) A prefix or suffix can be added to the filename using a time formatting string as in the given example using either the <currentTimeFormattingString> or <timeZeroFormattingString>.
3) The exportMissingValue can be used to replace the given missing values by NaN (Not A Number) values to indicate that there is no valid data, ArcGIS will display such records as '0' instead of -999 in this example.