7.5.1.0 | Locations XML |
7.5.1.1 | CSV Format |
7.5.1.2 | GeoRSS Format |
The lat and lon attributes can be of the form:<?xml version="1.0" encoding="ISO-8859-1"?> <stationtable name="Example"> <station name="station 1" lat="65:02:06" lon="-147:30:06" elev="790"/> <station name="station 2" lat="40.3" lon="-107.5" elev="10"/> ... </stationtable>
+/- ddd:mm, ddd:mm:, ddd:mm:ss, ddd::ss, ddd.fffff ===> [+/-] ddd.fffff +/- ddd, ddd:, ddd:: ===> [+/-] ddd +/- :mm, :mm:, :mm:ss, ::ss, .fffff ===> [+/-] .fffff +/- :, :: ===> 0.0 Any of the above with N,S,E,W appendedThe elev attribute is optional. By default it is in meters. You can override this default with an elevunit in the stationtable tag. e.g.:
The station tags can have an id attribute as well:<?xml version="1.0" encoding="ISO-8859-1"?> <stationtable name="Example" elevunit="feet"> <station name="station 1" lat="65:02:06" lon="-147:30:06" elev="5340"/> ...
The station tags can also have any other attributes:<station id="APD" name="Fairbanks/Pedro Dome" lat="65:02:06" lon="-147:30:06" elev="790"/>
These can be displayed by the station model used in the Location Display Control.<station id="APD" name="Fairbanks/Pedro Dome" st="AK" co="US" lat="65:02:06" lon="-147:30:06" elev="790"/> <station id="FTG" name="Denver/Boulder" st="CO" co="US" lat="39:47:12" lon="-104:32:45" elev="1675"/>
If you want to create a permenant list of stations that shows up the the
Display→Locations
menu, you can create a file called
userstations.xml in the .unidata/idv/DefaultIdv
directory
under your user's home directory. The format would look like:
This will show up in the<?xml version="1.0" encoding="ISO-8859-1"?> <stationtables> <stationtable name="SubsetA" category="My Custom Stations"> (list of stations for subset A) </stationable> <stationtable name="SubsetB" category="My Custom Stations"> (list of stations for subset B) </stationtable> </stationtables>
Display→Locations
menu as a top menu called
My Custom Stations
and sub menus SubsetA
and SubsetB
.
latitude lat longitude lon longAltitude is given by the column names:
alt altitudeThe altitude value, if defined, is by default in meters. You can optionally specify a unit with the suffix: "[unit name]" (see example).
The first column that is found that is not one of the location columns is taken to be the name of the location.
Example:
Name,Latitude,Longitude,Altitude,State Boulder,40,-107,5430[feet],CO Miami,30,-95,0[feet],FL ...