NASA Logo
Ocean Color Science Software

ocssw V2022
sunangs.c File Reference
#include "libnav.h"
#include "nav.h"
#include "sun2000.h"
Include dependency graph for sunangs.c:

Go to the source code of this file.

Functions

void sunangs_ (int *iyr, int *iday, float *gmt, float *xlon, float *ylat, float *sunz, float *suna)
 

Function Documentation

◆ sunangs_()

void sunangs_ ( int *  iyr,
int *  iday,
float *  gmt,
float *  xlon,
float *  ylat,
float *  sunz,
float *  suna 
)

$brief c Given year, day of year, time in hours (GMT) and latitude and c longitude, returns an accurate solar zenith and azimuth angle. c Based on IAU 1976 Earth ellipsoid. Method for computing solar c vector and local vertical from Patt and Gregg, 1993, Int. J. c Remote Sensing.c c Subroutines required: sun2000 c gha2000 c jd c

Parameters
year
day
gmt
lon
lat
sunz
suna

Definition at line 25 of file sunangs.c.