Skip to content
/ solarmap Public

Produce a solar raster map for a given time, default current. Output: GeoTIFF

License

Notifications You must be signed in to change notification settings

rjarv/solarmap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Solar Map

Produces a solar raster map for the current time. Rasters are produced at 0.5° resolution. Processing time will vary per machine but a modest processor takes about 6 minutes per raster with --high-accuracy and less than 1 minute without.

alt text

The output raster contains Wattage values and can be used in calculations requiring solar radiation at Earth's surface. See pysolar documentation for more information.

Requires

Python >= 3.5

  • GDAL / pygdal
  • numpy
  • pysolar
  • pytz

Usage

usage: create_solar_raster.py [-h] [-s start time] [-o save location] [--high-accuracy]

Generates a solar radiation raster

optional arguments:
-h, --help show this help message and exit
-s, --start-time Solar radiation model UTC date in YYYYMMDDHHMM format; default: NOW
-o full path to the new output GeoTIFF file
--high-accuracy uses a refined algorithm for solar altitude at the expense of time

Examples

Generate the current solar raster
$ python create_solar_raster.py -o ~/Documents/current.tif

Generate for a given time
$ python create_solar_raster.py -s 201903202258 -o ~/Documents/springequinox.tif

Generate at high accuracy
$ python create_solar_raster.py -s 201906211554 -o ~/Documents/summersolstice.tif --high-accuracy



Sample output (March 4th, 2019 21:38[UTC])

alt text

alt text

About

Produce a solar raster map for a given time, default current. Output: GeoTIFF

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages