angles [ parameter=value ... ] [ inputfile ... ]
Parameters are latitude, longitude, sat_zenith, sun_zenith, scatter_phase, sun_reflection, rel_azimuth, time, julian_day, land_mask, store_cosines, real_output, poly_size.
angles computes per-pixel latitude, longitude, and five satellite and solar viewing angles: satellite zenith, solar zenith, scattering phase, solar reflection angle, and relative azimuth. Optionally, angles can compute GMT time, julian day, or land mask flag.
satellite normal | solar satellite | sun sun | reflection \ | / \ | / \ | / \ | / \ | / \ | / \ | / \ | / \ | / \ | / \ 1 | 2 / \ 3 | 4 / \ | / \ | / \ | / \ | / __________\ /___________ __________\ /___________ ------------------------ ------------------------
One or more TeraScan datasets are allowed for input. There are no output TeraScan datasets. This function appends the results to the end of the input datasets.
Angles can be output in degrees or as cosines. In both cases, angles are stored as either scaled short (16-bit) integers or unscaled (32-bit) reals. For output in degrees, the scale factor is .01. For output as cosines, the scale factor is .0001.
time is always output using the same datatype as angles, either scaled short integers or reals. The scale factor for short integer output is .1 seconds. The scale factor for real output is 1.. The scale offset for both cases is defined by the start_time attribute.
julian_day is always output using the same datatype as angles, either scale short integers or reals. The scale factor for short integer output is .02 days. The scale factor for real output is 1.. The scale offset for both cases is 0..
land_mask is always output as byte data.
arccos (U dot T)
Valid responses are yes and no. The default is yes.
arccos (U dot S)
Valid responses are yes and no. The default is yes.
arccos (S dot T)
Valid responses are yes and no. The default is yes.
Enter yes to compute the solar reflection angle. If T is a unit vector pointing from a pixel to the satellite, and R is a unit vector pointing from the pixel in the direction of solar reflection, then the solar reflection angle is defined as:
arccos (R dot T)
Valid responses are yes and no. The default is yes.
Compute the satellite viewing angles for the TeraScan dataset named big.
[1] % angles input file(s) : char(75) ? big sat_zenith : char( 3) ? [yes] sun_zenith : char( 3) ? [yes] scatter_phase : char( 3) ? [yes] sun_reflection : char( 3) ? [yes] rel_azimuth : char( 3) ? [yes] store_cosines : char( 3) ? [yes] real_output : char( 3) ? [yes] no poly_size : real ? [100] [2] % contents big printout : char( 3) ? [no] Dimension Size Coord Scale Offset line 1199 y 1 0 sample 1410 x 1 0 Attribute Type Units Value history byte 1 2 3 4 5 projection long std_projection sensor_scan et_affine double 1 0 0 1 -67 -367 satellite byte noaa-9 sensor long std_sensor avhrr pass_date long std_date 88/09/13 start_time double std_time 21:18:22.6 time_adjust double std_time 00:00:00 attitude double degrees 0 0 0 sensor_tilt double degrees 0 scan_samples long 2048 scan_rates double 6 40000 37.6991 sensorient double degrees 0 45 0 55.3 -55.3 orb_elem_date long std_date 88/09/13 orb_elements double 0.476962 0.828252 4e-05 0.001585 0.0363905 0.669068 0.275306 history byte Variable Type Units hrpt_header short avhrr_ch1 short raw_counts avhrr_ch2 short raw_counts avhrr_ch3 short raw_counts avhrr_ch4 short raw_counts avhrr_ch5 short raw_counts Variable Dimension Size hrpt_header line 611 hrpt_header dim_2 103 avhrr_ch1 line 611 avhrr_ch1 sample 637 avhrr_ch2 line 611 avhrr_ch2 sample 637 avhrr_ch3 line 611 avhrr_ch3 sample 637 avhrr_ch4 line 611 avhrr_ch4 sample 637 avhrr_ch5 line 611 avhrr_ch5 sample 637
orbdata, sensorfile
The scale factor of .1 seconds for short integer time output was chosen so that the effective data range was +/- 50 minutes from the scale offset. This accomodates half orbit datasets from polar orbiting satellites.
The scale factor of .02 days for short integer julian_day output corresponds roughtly to steps of one-half hour. This rather coarse step size was chosen to accomodate wrapping around to zero at year's end.