|
Point Data Documentation
|
sh <install path>/pointtools/pointchecker.sh value.csvHere are some examples of different point data readers.
The "standard CSV" format has any number of "#" delimited comment and property lines at the beginning of the file followed by any number of data records. The properties are defined in the header with:
#comment #property name=property value #property name=property value # value1,value2,valueN value1,value2,valueN ...Here is a simple example with just a single column value: The only property that is required is the fields property - a comma separated list of field identifiers with a set of attributes contained within " and "".
fieldname[attr1="value1" attr2="value2" ...]Here is a simple example with 2 columns. The second column has a missing value defined.
#fields=value1 unit",value2 unit" missing="-999.0" -0.93,100.0 -0.23,-999.0 -1.93,-999.0
#fields=value1,value2 #field.value1.unit=some unit #field.value2.unit=some other unit #field.value2.missing=-999.0 -0.93,100.0 -0.23,-999.0 -1.93,-999.0
#fields=date format="yyyy-MM-dd",value 2001-01-01,-0.931363 2001-02-01,-0.930391 2001-03-01,-0.95 2001-04-01,-0.96
# #dateformat=yyyy/MM/dd HH:mm:ss #fields=date isdate="true",time istime="true",value2012/10/12 14:11:17.14 -0.931363 2012/10/12 14:11:17.24 -0.930391
#fields=yyyy[1],month[2],day[3],hour[4],minute[5],second[6],value 2001,01,01,01,00,00,-0.931363 2001,02,01,01,00,00,-0.930391 2001,03,01,01,00,00,-0.95 2001,04,01,01,00,00,-0.96
#fields=latitude[7],longitude[8],value 40,-107,-0.931363 45,-110,-0.930391 40,-107,-0.95 35,-120,-0.96
#fields=latitude[9],longitude[10],date format="yyyy-MM-dd",value 40,-107,2001-01-01,-0.931363 45,-110,2001-02-01,-0.930391 40,-107,2001-03-01,-0.95 35,-120,2001-04-01,-0.96
#crs=utm #utm.zone=58 #utm.north=false #fields=x,y,elevation[11],red,green,blue,intensity 449929.47, 1382815.76, 21.01, 67, 66, 61, 0 449929.45, 1382815.77, 21.00, 67, 66, 61, 0 449929.47, 1382815.77, 21.02, 78, 77, 72, 0 449929.13, 1382815.69, 20.94, 89, 86, 77, 0 449929.16, 1382815.71, 20.94, 90, 90, 82, 0
#crs=wgs84 #fields=x[12],y[13],z[14],r[15],g[16],b[17],intensity[18] -2313174.974,-3717949.974,4622885.034,4,4,4,1166 -2313175.009,-3717949.961,4622885.028,2,2,2,1799 -2313175.001,-3717950.058,4622884.669,2,2,2,1196 -2313175.012,-3717949.889,4622884.824,4,4,4,2659 -2313175.284,-3717950.819,4622883.842,4,4,4,1663 -2313175.097,-3717950.210,4622884.419,6,6,6,2101 -2313175.074,-3717949.930,4622884.744,5,5,4,1598 -2313175.198,-3717950.351,4622884.298,5,5,4,1937 -2313175.079,-3717949.814,4622884.857,3,3,3,1302 -2313175.195,-3717950.237,4622884.345,4,4,4,1425
crs=epsg:<epgs code>
##fields=latitude[1],longitude[2],site[3],date format="yyyy-MM-dd",value
40,-107,site id 1,2001-01-01,-0.931363 45,-110,site id 2,2001-02-01,-0.930391 40,-107,site id 1,2001-03-01,-0.95 35,-120,site id 3,2001-04-01,-0.96
##fields=latitude value="40",longitude value="-107",site value="site id",date format="yyyy-MM-dd",value
2001-01-01,-0.931363 2001-02-01,-0.930391 2001-03-01,-0.95 2001-04-01,-0.96
##fields=latitude value="40",longitude value="-107",site value="site id",date format="yyyy-MM-dd" value="2001-01-01",value
-0.931363 -0.930391 -0.95 -0.96
# #fields=Site_Id pattern="ID:\s(.*)ARGOS:", Latitude[4], Longitude[5], Elevation[6], value1 2 3 4
- Year: 2011 Month: 02 ID: KMS ARGOS: 21364 Name: Kominko-Slade
- Lat: 79.47S Lon: 112.11W Elev: 1801m
latitude, longitude, date, value 40.0,-107,2012/10/12, -0.931363 45.0,-110.0,2012/10/12, -0.930391
delimiter=,
- Define the column delimiter
skiplines=1
- number of lines in header to skip
fields=latitude[7],longitude[8],date format="yyyy/MM/dd",value unit"
- fields definition
skiplines=1
- number of lines in header to skip
fields=latitude,longitude,date,value date.type=date date.format=yyyy/MM/dd
- An alternative method to define the attributes of the fields
- define the field names here
#field.
- define the attributes with
. =... field.latitude.unit=degrees field.longitude.unit=degrees field.date.type=date field.date.format=yyyy/MM/dd field.value.unit=some unit field.value.searchable=true field.value.chartable=true
- One can also set searchable and chartable attributes for ramadda's use
<?xml version="1.0" encoding="ISO-8859-1"?> <types> <type description="Test data" handler="org.ramadda.data.services.PointTypeHandler" name="type_point_test" super="type_point"> <property name="record.file.class" value="org.ramadda.data.point.text.CsvFile"/> <property name="record.properties"> delimiter= position.required=false skiplines=1 dateformat=yyyy/MM/dd HH:mm:ss fields=date isdate="true",time istime="true",value chartable="true" unit="some unit" </property> </type> </types>
Data Model
Developing point data readers for RAMADDA