goescalibration
A python library that allow to automate the calibration of the GOES Images.
Requirements
If you want to use this library on any GNU/Linux or OSX system you just need to execute:
$ pip install goescalibration
If you want to improve this library, you should download the github repository and execute:
$ make virtualenv 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 virtualenv deploy
Testing
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.
Example
There are 3 methods to obtain the calibration parameters:
- calibration
- calibration_to
- calibrate
The calibration method accepts 2 parameters the satellite and a datetime object:
from goescalibration import instrument
from datetime import datetime
params = instrument.calibration('goes13', datetime(2014, 11, 10))
Next, the calibration_to method needs a standard NOAA CLASS netcdf filename to parse:
from goescalibration import instrument
from datetime import datetime
params = instrument.calibration_to('data/goes13.2014.124.123422.BAND_01.nc')
Last, the calibrate method needs a standard NOAA CLASS netcdf filename to save the variables:
from goescalibration import instrument
from datetime import datetime
from netcdf import netcdf as nc
instrument.calibrate('data/goes13.2014.124.123422.BAND_01.nc')
with nc.loader('data/goes13.2014.124.123422.BAND_01.nc') as root:
print nc.getvar(root, 'postlaunch')[:]
About
This software is developed by GERSolar. You can contact us to gersolar.dev@gmail.com.