You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

API import to import meteo/hydro data from https://hydrology.gov.np/gss/api/socket/nve_snow/response, Nepal.


The response gives station data from all (only 8) stations, for the last 3 days. It is not possible to filter on stations and/or dates. For now the solution would therefore be: download all data, and select the data from the response that needs to be imported (based on given station, variable dates/times) .  The API key is for testing and should be configured in the FEWS xml configuration.


<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2006 rel. 3 sp1 (http://www.altova.com) by Computer Services (WL | Delft Hydraulics) -->
<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>DHM</importType>
          <serverUrl>https://hydrology.gov.np/gss/api/socket/nve_snow/response</serverUrl>
          <user>user</user>
          <password>api-key</password>
          <relativeViewPeriod unit="day" start="-5" end="0" startOverrulable="true" endOverrulable="true"/>
          <idMapId>DHMIdMap</idMapId>
       </general>    
       <timeSeriesSet>
          <moduleInstanceId>DHM</moduleInstanceId>
          <valueType>scalar</valueType>
          <parameterId>parameter</parameterId>
          <locationId>LocA</locationId>
          <timeSeriesType>external historical</timeSeriesType>
          <timeStep unit="nonequidistant"/>
          <readWriteMode>add originals</readWriteMode>
       </timeSeriesSet>      
       </timeSeriesSet>
    </import>



  • No labels