You can skip reading any column by putting an "x" in the column label line for that column position. If you have an ASCII file with data you do NOT want in the
NetCDF file, label the column with x.
See this sample GIAP file with xed-out data columns.
Data values
The data values in each line are separated by spaces, for example
for lat lon depth time stationID var1 var2 var3:
-105.45 39.8823 33.0 85     wd2 45.552 66.67001 0.098
-104.98 40.22 33.01 85 akk20 45.77 65.89 0.087e-02
Columns need not be aligned; this format does not count characters.
Longitudes and latitudes are in geographic degrees. Use longitude positive east from 0,
latitude positive north from 0 degrees.
Negative values, such as -105.342 for longitude 105.342 West, are fine.
Numerical values can be integer(123), decimal (123.45678), scientific notation (1.2345e+02)
or mixed formats.
The file must end on the last data line. Do not have any extra lines or empty lines.
The IDV needs parameter data values for every position. If your file only
has latitude, longitude, and depth values, the converter from a GIAP file to netCDF
automatically adds a parameter "Altitude" with the same values as the depth.
This then is a topography data file.
There is no limit to how many point data values you can store in a GIAP file or enter in
the IDV.
As a practical matter the IDV treats each point data value as a separate item in the
display which can be computationally intensive.
Some point data symbols are very easy and you can plot more than 10,000 of them;
others are complex graphical objects and plotting more than a few hundred
of them will noticibly slow down performance.
Examples of GIAP files converted to NetCDF
GPS Motion Vectors and Error ellipses -- GPS Vel 1.0
Here (http://geon.unavco.org/unavco/GIAP/gpsvel_1.0_itrf2000.giap)
is a sample GIAP file of GPS vectors and error ellipses which has
been tested with the GIAG to NetCDF converter and the GEON IDV.
Here are the equivalent
CDL file and the
NetCDF binary file.
Note that ve, vn, a, b, and corr are recognized as a group of special point data parameter names
for GPS vector data and their error ellipses by the GEON IDV.
If you use any other parameter names for such data you can still get the
GEON IDV to display it as GPS vectors and ellipses by editing the user alias table to
point your parameter names to these parameter names, however it is easier to use
the GEON IDV rcognized vocabulary in the data files.
Earthquake locations and magnitudes --
The Centennial Catalogs of Earthquakes for 1900-1999
Engdahl and VillaseƱo
have compiled a catalog of earthquake locations and magnitudes for the world from 1900 through
1999. (see Global Seismicity: 1900-1999, in W.H.K. Lee, H. Kanamori, P.C. Jennings, and C. Kisslinger, editors, International Handbook of Earthquake and Engineering Seismology,
Part A, Chapter 41, pp. 665-690, Academic Press, 2002.
UNAVCO has taken the online Centennial catalog, made a GIAP file from it, and converted it
to NetCDF for GEON IDV use.
Here
is the top of the GIAP file, showing the header lines.
Here
is the
NetCDF binary file
of the Centennial Catalog with preferred corrected magnitudes, made with the GIAP converter.
Earthquake Focal Mechanisms
To make a GIAP file for focal mechanisms, use a format like that shown
below.
Strike, dip and rake are controlled by the set
parameter names "strike" "dip" and "rake" (no upper case)
recognized by the GEON IDV to make focal mechanism symbols. Unit names are not used (they are degrees).
# source global earthquakes > mag 6 1980-1999
# depth kilometer down
# time "seconds since 1970-01-01 00 UTC"
# missing_value -9999.
# var1 mag "magnitude" none
# var2 strike "strike" none
# var3 dip "dip" none
# var4 rake "rake" none
## lon lat depth time var1 var2 var3 var4
-110.9355 44.577 15.6 473385600 6.6 185 70 -90
-111.122 44.74 7.63 473385600 6.2 180 55 -70
... one line for each focal mechanism
Note that mag, strike, dip, and rake are recognized as special point data parameter names
for earthquakes by the GEON IDV (but not by the Unidata IDV):
"strike" is degrees CW from North,
"dip" is slant of nodal plane in degrees downwards from horizon
level, and "rake" is angle of motion on nodal plane in degrees.
Units and unit names
The UNAVCO web page NetCDF Data Format
has a list of "Variable names for the GEON IDV" that the
GEON IDV recognizes for special plots, such as focal mechanisms.
These variable names, such as ve and eps2, must be used in the ASCII files as the "short name"
where appropriate, for the data to create the special geophysical plot symbols in GEON IDV displays.
For accepted variable units and names, use the UD Units conventions.
UD Units is a very complete software implementation for recognizing SI and
related units. The IDV uses UD Units. See the list of recognized unit names in
http://my.unidata.ucar.edu/content/software/udunits/udunits.txt .
The UD Units home page is
http://my.unidata.ucar.edu/content/software/udunits; see also
http://my.unidata.ucar.edu/content/software/netcdf/docs/netcdf.html#Units.
For SI units, see also
http://physics.nist.gov/cuu/Units/index.html, and
http://physics.nist.gov/cuu/Units/units.html.
When the IDV is used to make computations involving two or more data sets which
have different units, the unit conversions are automatically done for you, if
all the data has units with a recognized name.
Examples of unit names recognized by UD Units:
1300 meter or 1300 m
250 kilometer or 250 km
12 sec, 12 s
-165 Ma, -165 Myr, -165 Myear
Celsius [not C which means Coulomb]; kelvin
gram [not g which is accel of gravity], kilogram, kg does mean kilogram
degF
17.7 meter second-1, 17 m/s; 17 m s-1
17.7 km/s, 17.7 km s-1
9.80665 meter2 second-2
10 kilogram.meters/seconds2
10 kg-m/sec2
10 kg m/s2
(PI radian)2
100 rpm
geopotential meters
24598 seconds since 1992-12-31 12:34:0.1 -7:00
For pure numbers or unitless data omit the unit name or enter "none."
For percentages you may omit the unit name, or enter "none,"
or use unit name "percent" and in that case use data value 1.0 for 1 %, and
calculations using the values in IDV will multiply your percent values by 0.01
where appropriate.