palObs

Parameters of selected ground-based observing stations

Description:

Station numbers, identifiers, names and other details are subject to change and should not be hardwired into application programs.

All characters in " c" up to the first space are checked; thus an abbreviated ID will return the parameters for the first station in the list which matches the abbreviation supplied, and no station in the list will ever contain embedded spaces. " c" must not have leading spaces.

IMPORTANT – BEWARE OF THE LONGITUDE SIGN CONVENTION. The longitude returned by palOBS (and SLA_OBS) is west-positive in accordance with astronomical usage. However, this sign convention is left-handed and is the opposite of the one used by geographers; elsewhere in PAL the preferable east-positive convention is used. In particular, note that for use in palAop, palAoppa and palOap the sign of the longitude must be reversed.

Users are urged to inform the author of any improvements they would like to see made. For example:

typographical corrections more accurate parameters better station identifiers or names additional stations

Invocation

int palObs( size_t n, const char c, char ident, size_t identlen, char name, size_t namelen, double w, double p, double h );

Arguments

n = size_t (Given)
Number specifying the observing station. If 0 the identifier in " c" is used to determine the observing station to use.
c = const char (Given)
Identifier specifying the observing station for which the parameters should be returned. Only used if n is 0. Can be NULL for n >0. Case insensitive.
ident = char (Returned)
Identifier of the observing station selected. Will be identical to " c" if n==0. Unchanged if " n" or " c" do not match an observing station. Should be at least 11 characters (including the trailing nul).
identlen = size_t (Given)
Size of the buffer " ident" including trailing nul.
name = char (Returned)
Full name of the specified observing station. Contains " ?" if " n" or " c" did not correspond to a valid station. Should be at least 41 characters (including the trailing nul).
w = double (Returned)
Longitude (radians, West +ve). Unchanged if observing station could not be identified.
p = double (Returned)
Geodetic latitude (radians, North +ve). Unchanged if observing station could not be identified.
h = double (Returned)
Height above sea level (metres). Unchanged if observing station could not be identified.

Returned Value

palObs = int
0 if an observing station was returned. -1 if no match was found.

Notes: