Solar Radiation Model is a python script that estimates the solar radiation at the soil level.
If you want to use this library on any GNU/Linux or OSX system you just need to execute:
$ pip install solar_radiation_model
If you want to improve this library, you should download the github repository and execute:
$ make deploy
On Ubuntu Desktop there are some other libraries not installed by default (zlibc curl libssl0.9.8 libbz2-dev libxslt*-dev libxml*-dev) which may need to be installed to use these library. Use the next command to automate the installation of the additional C libraries:
$ make ubuntu deploy
or:
$ make osx deploy
To test all the project you should use the command:
$ make test
If you want to help us or report an issue join to us through the GitHub issue tracker.
To use the library, create a JobDescription instance using a config dictionary:
from models import JobDescription
config = {
'algorithm': 'heliosat',
'static_file': 'static.nc',
'data': 'data/goes13.2015.*.nc',
'tile_cut': {
'xc': [10, 15],
'yc': [20, 45]},
'hard': 'gpu',
}
job = JobDescription(**config)
elapsed_time, output = job.run()
print output.time, output.cloudindex, output.globalradiation
This software is developed by GERSolar. You can contact us to gersolar.dev@gmail.com.