Page tree
Skip to end of metadata
Go to start of metadata


Data is imported from   https://alerta.ina.gob.ar/pub/mapa. Example query:

https://alerta.ina.gob.ar/pub/datos/datos&timeStart=2019-06-27&timeEnd=2019-07-03&siteCode=156&varId=2&format=json

Time start and time end are from the period defined in the configuration file. SiteCode is the (external) location id, varId is the  (external) parameter id.

Example data set:

{
  "requestHeader": {
    "request": "datos",
    "timeStart": "2019-08-06",
    "timeEnd": "2019-08-12",
    "siteCode": "156",
    "varId": "2",
    "format": "json"
  },
  "responseHeader": {
    "creationTime": "2019-08-12T10:09:10-03:00",
    "queryUrl": "request=datos&timeStart=2019-08-06&timeEnd=2019-08-12&siteCode=156&varId=2&format=json",
    "sitecode": 156,
    "timeStart": "20190806T000000",
    "seriesId": "156\n",
    "seriesmetadata": {
      "unitId": 11,
      "seriesId": 156,
      "var_abrev": "altura",
      "unit_abrev": "m",
      "proc_abrev": "medicion",
      "varId": 2,
      "procId": 1
    },
    "request": "datos",
    "seriesid": 156,
    "responseTimestamp": "2019-08-12T10:09:10",
    "sitemetadata": {
      "estacion_abrev": "MERCEDES",
      "red_name": "red hidrológica DINAC - Paraguay",
      "redId": 12,
      "siteCode": 156,
      "geom": {
        "coordinates": [
          -57.15143,
          -24.44787
        ],
        "type": "Point"
      }
    },
    "timeEnd": "20190812T000000"
  },
  "data": [
    {
      "obs_id": 8921960617,
      "timestart": "2019-08-06T09:00:00",
      "timeend": "2019-08-06T09:00:00",
      "valor": 3.61,
      "timeupdate": "2019-08-06T09:02:09.721747"
    },
    {
      "obs_id": 8980721243,
      "timestart": "2019-08-07T09:00:00",
      "timeend": "2019-08-07T09:00:00",
      "valor": 3.57,
      "timeupdate": "2019-08-08T09:32:07.817792"
    },
    {
      "obs_id": 8980721242,
      "timestart": "2019-08-08T09:00:00",
      "timeend": "2019-08-08T09:00:00",
      "valor": 3.53,
      "timeupdate": "2019-08-08T09:32:07.817792"
    },
    {
      "obs_id": 9011345409,
      "timestart": "2019-08-09T09:00:00",
      "timeend": "2019-08-09T09:00:00",
      "valor": 3.5,
      "timeupdate": "2019-08-09T09:02:14.962322"
    },
    {
      "obs_id": 9041386586,
      "timestart": "2019-08-10T09:00:00",
      "timeend": "2019-08-10T09:00:00",
      "valor": 3.47,
      "timeupdate": "2019-08-10T09:02:10.2195"
    },
    {
      "obs_id": 9074668857,
      "timestart": "2019-08-11T09:00:00",
      "timeend": "2019-08-11T09:00:00",
      "valor": 3.44,
      "timeupdate": "2019-08-11T09:02:09.357981"
    }
  ]
}

From the data set "time start is used as the timestep, valor is the imported value. 


Example config:

<?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>YacyretaImport</importType>
			<serverUrl>https://alerta.ina.gob.ar/pub/datos/datos</serverUrl>
			<user>user</user>
			<password>password</password>
			<relativeViewPeriod unit="day" start="-5" end="0" startOverrulable="true" endOverrulable="true"/>
			<idMapId>YacyretaImportdMapper</idMapId>
		</general>		
		<timeSeriesSet>
			<moduleInstanceId>YacyretaImport</moduleInstanceId>
			<valueType>scalar</valueType>
			<parameterId>parameterId</parameterId>
			<locationId>locationId</locationId>
			<timeSeriesType>external historical</timeSeriesType>
			<timeStep unit="nonequidistant"/>
			<readWriteMode>add originals</readWriteMode>
		</timeSeriesSet>
	</import>
</timeSeriesImportRun> 


  • No labels