Jim Vickroy wrote: > Hello all, > > Could someone offer suggestions for (preferably) python code to compute: > > * day/night terminator position > * solar zenith angle > > > I'm developing a basemap application that is required to hide contour > data in the night regions of the earth. > > The projections will be Mercator and polar stereographic; presumably, > it will suffice to have Mercator-based terminator map only. > > Thanks for any suggestions. > > -- jv
Jim: I was googling around and found this python code: https://garage.maemo.org/plugins/scmsvn/viewcvs.php/trunk/mclock-src/usr/lib/mClock/sun.py?root=mclock&rev=2&view=markup and this IDL code (which should be straightforward to convert to python): http://www.dfanning.com/programs/terminator_map.pro HTH, -Jeff P.S: I'd love to see what you come up with, so drop by sometime (it seems we're in the same building!) > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > ------------------------------------------------------------------------ > > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > -- Jeffrey S. Whitaker Phone : (303)497-6313 Meteorologist FAX : (303)497-6449 NOAA/OAR/PSD R/PSD1 Email : [EMAIL PROTECTED] 325 Broadway Office : Skaggs Research Cntr 1D-124 Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users