Original question

Hi,

I can not change the Time Zone of GFS Forecast Data, when I configure it on import module, I got an error when I run the module on FEWS. which is :  Import.Warn: import from https://nomads.ncep.noaa.gov:9090/dods/gfs_0p25/gfs20200306/gfs_0p25_04z failed : Problems while openingNetCdf file after 1 tries from url: https://nomads.ncep.noaa.gov:9090/dods/gfs_0p25/gfs20200306/gfs_0p25_04z. Message was: OPeNDAP Server Error= Error {
    code = 0;
    message = "/gfs_0p25/gfs20200306/gfs_0p25_04z is not an available dataset";
};


I wonder if there is any way to configure Time Zone of the GFS Data or update the time of the series such as from "00:00, 03:00..." to  "01:00, 04:00" (its 3 hourly data) before uploading it to FEWS Data Viewer.

I need to solve this in order to combine the GFS forecast data with another timeseries which has gmt+10 Time Zone.

Solution


All data in Delft-FEWS is stored in GMT, so the matching is done automatically by Delft-FEWS.

You should make sure that at the import, you tell Delft-FEWS in which time zone the imported data. For example

<?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>[server_url]</serverUrl>
            <idMapId>IdImport</idMapId>
            <unitConversionsId>ImportUnitConversions</unitConversionsId>
            <missingValue>9.999E20 </missingValue>
            <importTimeZone>
                <timeZoneName>GMT+10</timeZoneName>
            </importTimeZone>
            <dataFeedId>[datafeedid]</dataFeedId>
            <expiryTime unit="day" divider="1"/>
        </general>

You can then change how the data is viewed in the GUI via the Explorer.xml.

	<dateTime>
		<timeZoneName>GMT+10:00</timeZoneName>
		<dateTimeFormat>dd-MM-yyyy HH:mm:ss</dateTimeFormat>
		<cardinalTimeStep unit="minute" multiplier="10"/>
		<adjustSystemTimeAutomatically>false</adjustSystemTimeAutomatically>
	</dateTime>


You can also run an external model using a different timezone by specifying a timezone in the general adapter.

<?xml version="1.0" encoding="UTF-8"?>
<generalAdapterRun 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/generalAdapterRun.xsd">
	<general>
		<description>Delft3D-FLOW forecast run </description>
		<rootDir>%REGION_HOME%/Modules/Delft3D/forecast/FLOW</rootDir>
		<workDir>%ROOT_DIR%/workDir</workDir>
		<exportDir>%ROOT_DIR%/input</exportDir>
		<exportDataSetDir>%ROOT_DIR%</exportDataSetDir>
		<exportIdMap>IdExportDelft3DFLOW</exportIdMap>
		<importDir>%ROOT_DIR%/output</importDir>
		<importIdMap>IdImportDelft3DFLOW</importIdMap>
		<dumpFileDir>$GA_DUMPFILEDIR$</dumpFileDir>
		<dumpDir>%ROOT_DIR%/diagnostics/</dumpDir>
		<diagnosticFile>%ROOT_DIR%/diagnostics/diagnostics.xml</diagnosticFile>
		<missVal>NaN</missVal>
		<timeZone>
			<timeZoneName>GMT+10</timeZoneName>
		</timeZone>
	</general>




  • No labels