...
Code Block |
---|
<?xml version="1.0" encoding="UTF-8"?> <archiveAttributes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.wldelft.nl/fews/PI" xsi:schemaLocation="http://www.wldelft.nl/fews/PI http://fews.wldelft.nl/schemas/version1.0/pi-schemas/pi_archive_attributes.xsd"> <attribute> <key>storageId<<name>storageId</key> <value>storageA</value> </attribute> </archiveAttributes> |
GET archive/netcdfstorageforecasts (since 2020.02)
Returns a list of forecasts from the external netcdf storage from the archive.
...
- startTime (dateTime: yyyy-MM-ddTHH:mm:ssZ): Start time of the archive search period
- attribute(key)=value (string): on ore more attributes that have to match the archive attribute. Attributes are passed by passing the key as an argument to the attribute() paramteter and the value as parameter value. See the example where only forecasts will be returned were the long_name is equal to parameterA
- endTime (dateTime: yyyy-MM-ddTHH:mm:ssZ): End time of the archive search period
- requestedAttributerequestedAttributes(string): The attributes of the forecast which should be included in the response. Repeat the parameter to specify multiple attributes.
- forecastCount (integer): The maximum number of forecasts to be returned from archive. If you only want to download the most recent forecast in the requested period then use forecastCount=1
...
Code Block | ||
---|---|---|
| ||
http://localhost:8080/FewsWebServices/rest/fewspiservice/v1/archive/netcdfstorageforecasts?attribute(long_name)=parameterA&requestedAttributerequestedAttributes=long_name&startTime=2019-01-01T00:00:00Z&endTime=2020-01-01T00:00:00Z&documentFormat=PI_JSON |
...
Code Block |
---|
{ "externalNetCDFStorageForecasts" : [ { "forecastTime" : "2019-09-27T12:00:00+0000", "forecastAvailableTime" : "2020-06-23T13:45:53+0000", "attributes" : [ { "keyname" : "long_name", "valuename" : "sep" }, { "keyname" : "source", "value" : "Export NETCDF-CF_GRID_MATROOS from Delft-FEWS" }, { "keyname" : "source", "value" : "RWsOS-Noordzee" } ] }, { "forecastTime" : "2019-09-27T06:00:00+0000", "forecastAvailableTime" : "2020-06-23T13:45:53+0000", "attributes" : [ { "keyname" : "long_name", "value" : "sep" }, { "keyname" : "source", "value" : "Export NETCDF-CF_GRID_MATROOS from Delft-FEWS" }, { "keyname" : "source", "value" : "RWsOS-Noordzee" } ] } ] } |
...