rjarv / solarmap

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:The Unlicense


Languages

Language:Python 100.0%