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:
#fields=value[unit="some unit"] -0.931363 -0.930391
fieldname[attr1="value1" attr2="value2" ...]Here is a simple example with 2 columns. The second column has a missing value defined.
#fields=value1[unit="some unit"],value2[unit="some 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[type="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[type="string" isdate="true"],time[type="string" istime="true"],value # 2012/10/12 14:11:17.14 -0.931363 2012/10/12 14:11:17.24 -0.930391
#fields=yyyy[type="string"],month[type="string"],day[type="string"],hour[type="string"],minute[type="string"],second[type="string"],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[unit="degrees"],longitude[unit="degrees"],value 40,-107,-0.931363 45,-110,-0.930391 40,-107,-0.95 35,-120,-0.96
#fields=latitude[unit="degrees"],longitude[unit="degrees"],date[type="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[unit=m],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[precision=2],y[precision=3],z[precision=4],r[type=integer],g[type=integer],b[type=integer],intensity[type=integer] -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[unit="degrees"],longitude[unit="degrees"],site[type="string"],date[type="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[unit="degrees" value="40"],longitude[unit="degrees" value="-107"],site[type="string" value="site id"],date[type="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[unit="degrees" value="40"],longitude[unit="degrees" value="-107"],site[type="string" value="site id"],date[type="date" format="yyyy-MM-dd" value="2001-01-01"],value # -0.931363 -0.930391 -0.95 -0.96
# #fields=Site_Id[ type="string" pattern="ID:\s(.*)ARGOS:" ], Latitude[ pattern="Lat:\s(.*)Lon:" ], Longitude[ pattern="Lon:\s(.*)Elev:" ], Elevation[pattern="Elev:(.*)" ], value # # #Year: 2011 Month: 02 ID: KMS ARGOS: 21364 Name: Kominko-Slade #Lat: 79.47S Lon: 112.11W Elev: 1801m # 1 2 3 4
latitude, longitude, date, value 40.0,-107,2012/10/12, -0.931363 45.0,-110.0,2012/10/12, -0.930391
#Define the column delimiter delimiter=, #number of lines in header to skip skiplines=1 #fields definition fields=latitude[unit="degrees"],longitude[unit="degrees"],date[type="date" format="yyyy/MM/dd"],value[unit="some unit"]
#number of lines in header to skip skiplines=1 #An alternative method to define the attributes of the fields #define the field names here fields=latitude,longitude,date,value date.type=date date.format=yyyy/MM/dd #define the attributes with #field.. =... field.latitude.unit=degrees field.longitude.unit=degrees field.date.type=date field.date.format=yyyy/MM/dd field.value.unit=some unit #One can also set searchable and chartable attributes for ramadda's use field.value.searchable=true field.value.chartable=true
<?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[type="string" isdate="true"],time[type="string" istime="true"],value[searchable="true" chartable="true" unit="some unit"] </property> </type> </types>