public final class cwangles
extends java.lang.Object
The angles tool computes earth location and solar angles for an earth data file.
cwangles - computes earth location and solar angles.
cwangles [OPTIONS] input
-f, --float
-d, --double
-h, --help
-l, --location
-s, --scale=FACTOR/OFFSET
-u, --units=TYPE
-v, --verbose
-z, --sunzenith
--version
The angles tool computes earth location and solar angles for an earth data file. Angles may be computed as scaled integer or floating point values, and in radians, degrees, or cosine. The earth location values computed refer to the center of each pixel.
integer = value/factor + offsetThe default factor is 0.01 and offset is 0. This option is ignored if --float or --double is used.
0 on success, > 0 on failure. Possible causes of errors:
The following shows the computation of latitude and longitude data for a CoastWatch HDF product file:
phollema$ cwangles --float --location 2002_361_1049_n16_ax.hdf cwangles: Reading input 2002_361_1049_n16_ax.hdf cwangles: Creating latitude variable cwangles: Creating longitude variable cwangles: Calculating angles cwangles: Computing row 0 cwangles: Computing row 100 cwangles: Computing row 200 cwangles: Computing row 300 cwangles: Computing row 400 cwangles: Computing row 500 cwangles: Computing row 600 cwangles: Computing row 700 cwangles: Computing row 800 cwangles: Computing row 900 cwangles: Computing row 1000
Another example below shows the computation of solar zenith angle, stored as the cosine and scaled to integer data by 0.0001:
phollema$ cwangles -v --sunzenith --units cos --scale 0.0001/0 test_angles.hdf cwangles: Reading input test_angles.hdf cwangles: Creating sun_zenith variable cwangles: Calculating angles cwangles: Computing row 0 cwangles: Computing row 100 cwangles: Computing row 200 cwangles: Computing row 300 cwangles: Computing row 400 cwangles: Computing row 500 cwangles: Computing row 600 cwangles: Computing row 700 cwangles: Computing row 800 cwangles: Computing row 900 cwangles: Computing row 1000 cwangles: Computing row 1100 cwangles: Computing row 1200
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] argv)
Performs the main function.
|