Closed FlyingWithJerome closed 7 years ago
@czender The new algorithm from slr_cld.c is better. The graph generated by the Python code is shown below:
The graph above is combined by 10800 discrete points with dt=5s from 5am to 19pm, which are the sunrise and sunset time in Maricopa Area on 06/01.
Comparing to the result from NOAA_Solar_Zenith Angle_Calculator here, noon time is relatively accurate, but the morning time is not that accurate.
Now the hyperspectral output will have a variable "solar_zenith_angle" with dimension "time" showing as below (by ncks)
Since these functions were translated from MATLAB, the result is still not flawless (partially because Python is not an ideal language for calculation, although it has a lot of math libraries).
Here is the result from Python Solar Zenith Angle calculator @ 2016/06/01 in Maricopa field
The angles in the morning are obviously incorrect. The result from Matlab at the same time in Maricopa field (I think this one is correct)
P.S. Please only look at the last commit; rest of the commits are hanging around because another pull request is still waiting to be merged. This PR is in a new branch called "solar_zenith_angle"