SZAMap
Syntax | ||
float *SZAMap(int yr,int mo,int dy,int hr,int mt,int sc, int wdt,int hgt,int mode, int (*trf)(int ssze,void *src,int dsze, void *dst,void *data), void *data); | ||
Header | ||
imagery/szamap.h | ||
Library | ||
szamap | ||
Description | ||
The The date and time at which to calculate the terminator is given by the arguments yr, mo, dy, hr, mt, and sc. The width and height of the grid are given by the arguments wdt and hgt. The argument mode indicates whether geographic or geomagnetic coordinates are use. A value of zero will produce a polygon in geographic coordinates and a a value of (1) will produce one in geomagnetic coordinates. The argument trnf is a pointer to a function of the form:
This function performs the transformation of the map projection. The size in bytes of the input coordinate is given be the argument ssze. The coordinate data is pointed to by the argument src. The first two elements stored in the coordinate data block are assumed to be single precision floating point numbers of type float that represent the actual latitude and longitude of the point to transform. The size in bytes of the output coordinate is given be the argument dsze. The coordinate data is pointed to by the argument dst. The first two elements stored in the coordinate data block are assumed to be single precision floating point numbers of type float that represent the cartesian coordinate that results from the transformation. The range of the cartesian coordinates should be zero to (1). The transformation should read the coordinate from src, transform it and write the value to dst. The data argument of the The function should return a zero if the transformation was successfully applied or (-1) if an error occurred. The | ||
Returns | ||
Returns a pointer to a two-dimensional array containing the solar zenith angles. On error a NULL pointer is returned. | ||
Errors | ||
On error a NULL pointer is returned. | ||
Example | ||
|