c_ls2ll - Calculate the latitude, longitude, and view angles of a point given the line and sample in the image

SYNTAX

FUNCTION c_ls2ll (line, sample, elev, model, lat, lng, view_angles)

    float *line;
    float *sample;
    double *elev;
    struct MODEL *model;
    double *lat;
    double *lng;
    double view_angles[];

PARAMETERS

line (float *, input)

The line number within the scene.

sample (float *, input)

The sample number within the scene.

elev (double *, input)

The elevation of the specified point.

model (struct MODEL *, input)

Structure containing the model and orbital information.

lat (double *, output)

The calculated latitude of the point defined by line and sample.

lng (double *, output)

The calculated longitude of the point defined by line and sample.

view_angles (double[], input / output)

The satellite zenith angle is returned in view_angles[0]. The solar zenith angle is returned in view_angles[1]. The relative azimuth angle is returned in view_angles[2]. View angles will not be calculated if the input value of view_angles is NULL. All view angles are returned in radians.

DESCRIPTION

Calculate the latitude, longitude, and view angles for the specified line and sample point. These values are calculated by calling c_forward(). Since c_forward() expects North-up coordinates, the line/sample coordinates are flipped prior to calling c_forward() if the pass is ascending and in satellite view.

RETURN VALUE

c_ls2ll() has no return value.