Overview
Excerpt | ||
---|---|---|
| ||
Imports time series data (grids) ArcInfoAscii files. |
Note |
---|
This import is available in DELFT-FEWS versions after 28-1-2007 |
Imports time series data (grids) ArcInfoAscii files. The time and parameter information are encoded in the filename. Example:
Rain_20071010231500.asc (parameterId_YYYYMMDDHHMMSS.extension) |
---|
parameterId = Rain |
year = 2007 |
month = 10 |
day = 10 |
hours = 23 |
min = 15 |
sec = 00 |
This import always uses the locationid ARC_INFO_LOC as the external location. The import can read from a zip stream. As such, you can multiple grids within a single .zip file. Useful for large amounts of grids or very large grids.
...
The reader is named ArcInfoAsciiGrid which should be configured in the general section of the import: <importType>ArcInfoAsciiGrid</importType>.
Example:
No Formatcode |
---|
<?xml version="1.0" encoding="UTF-8"?> <!--Sample XML file generated by XMLSPY v2004 rel. 3 U (http://www.xmlspy.com)--> <timeSeriesImportRun xmlns="http://www.wldelft.nl/fews" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.wldelft.nl/fews httpfewshttp://fews.wldelft.nl/schemas/version1.0/timeSeriesImportRun.xsd"> <import> <general> <importType>ArcInfoAsciiGrid</importType> <folder>Import</folder> <idMapId>IdImportSidbAsc</idMapId> <geoDatum>Ordnance Survey Great Britain 1936</geoDatum> </general> <timeSeriesSet> <moduleInstanceId>ImportSidbAsc</moduleInstanceId> <valueType>grid</valueType> <parameterId>P.radar.actual</parameterId> <locationId>ARC<locationId>My_INFO_LOC<Location</locationId> <timeSeriesType>external historical</timeSeriesType> <timeStep unit="minute" multiplier="15"/> <readWriteMode>add originals</readWriteMode> </timeSeriesSet> </import> </timeSeriesImportRun> |
...
The IdMapping file should always refer to the external location ARC_INFO_LOC.
Example:
No Formatcode |
---|
<?xml version="1.0" encoding="UTF-8"?> <idMap version="1.1" 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/idMap.xsd"> <parameter external="CEHRain" internal="P.radar.actual"/> <location external="ARC_INFO_LOC" internal="My_Location"/> </idMap> |
The file format
Introduction
ARC ASCIIGRID refers to a specifc interchange format developed for ARC/INFO rasters in ASCII format. The format consists of a header that specifies the geographic domain and resolution, followed by the actual grid cell values. Usually the file extension is .asc.
No Format |
---|
ncols 157
nrows 171
xllcorner -156.08749650000
yllcorner 18.870890200000
cellsize 0.00833300
0 0 1 1 1 2 3 3 5 6 8 9 12 14 18 21 25 30 35 41 47 53
59 66 73 79 86 92 97 102 106 109 112 113 113 113 111 109 106
103 98 94 89 83 78 72 67 61 56 51 46 41 37 32 29 25 22 19
etc...
|
...
nodata_value refers to the value that represents missing data and xxxxx is the numerical value. The default is -9999.
Filename pattern
At the moment the filenamepattern is fixed. A very useful tool for easily renaming filenames is Batch Rename Command