>  Docs Center  >  Libraries  >  JHU/APL/S1R  >  WORLD_SUNZD






      Compute Sun zenith distance for an array of world points.


Calling Sequence

      zd = world_sunzd(time, res)


      time = time string (null string = current time). in
        May also give time in Julian Seconds.
      res = resolution in degrees for both lat and long. in

Keyword Parameters


        ZONE=hrs Hours ahead of GMT (def=0). Ex: zone=-4 for EDT.
        SUNLON=sunlng Returned subsolar longitude.
        SUNLAT=sunlat Returned subsolar latitude.
        /BYTE Output zd in a byte array, else float.


      zd = Returned zenith distance array in degrees. out
        zd covers longitudes -180 to (+180-res) and
                  latitudes -90 to (+90-res).

Common Blocks


      Notes: To display result, do device,decomp=0 (if 24-bit),
        Use sun_colors to load sun color table, then display
        zd (tv, not tvscl). Can remap using map_image.

Modification History

      R. Sterner, 1999 Oct 14
      R. Sterner, 2010 May 04 --- Converted arrays from () to [].
      R. Sterner, 2012 Nov 20 --- Added /BYTE.
      R. Sterner, 2012 Nov 20 --- ZONE was defaulting to local, now 0.
  Copyright (C) 1999, Johns Hopkins University/Applied Physics Laboratory
  This software may be used, copied, or redistributed as long as it is not
  sold and this copyright notice is reproduced on each copy made. This
  routine is provided as is without any express or implied warranties
  whatsoever. Other limitations apply as described in the file disclaimer.txt.

© 2019 Harris Geospatial Solutions, Inc. |  Legal
My Account    |    Store    |    Contact Us