
Hi GEONETCasters,
Please download at this link, the latest GEONETCast-Americas Python Scripting Pack (to generate GeoTIFF’s). We’ll constantly update them and make them available (GitHub page will be available in the future). Note: This is a work in progress, and all scripts could present errors.
Want to voluntary help in the development of GNC-A Python scripts? Just send an e-mail to [email protected]
In the latest GNC-A Product List you may see which products have an available script. They have a “Python Script Available” tag near the sample image, as in the example below:

The current scripts are:
- gnc_scheduler.py (a python cron utility, you may also use cron or the windows task scheduler)
- gnc_monitor.py (you may select the GNC-A products you want to process and the desired region for each product)
- process_g16.py (works for all G16 CMI Bands and most baseline products)
- remap_g16.py (G16 remap utility)
- process_g17.py (works for all G17 CMI Bands)
- remap_g17.py (G17 remap utility)
- process_glm.py (GLM 5 min density files)
- process_adpf.py (G16 Aerosol Detection products)
- process_dmw.py (G16 Derived Motion Winds Products)
- process_dsif.py (G16 Derived Stability Indices Products)
- process_rad.py (G16 Radiation Products)
- process_vaaf.py (G16 Volcanic Ash Products)
- process_day_cloud_conv_rgb_g16.py (G16 Day Cloud Convection RGB)
- process_day_cloud_conv_rgb_g17.py (G17 Day Cloud Convection RGB)
- process_swd_g16.py (G16 Split Window Difference)
- process_swd_g17.py (G17 Split Window Difference)
- process_nfd_g16.py (G16 Night Fog Difference)
- process_nfd_g17.py (G17 Night Fog Difference)
- process_jpss_bands.py (VIIRS Day Night Band and I5 Band)
- process_gcom.py (GCOM-W1 AMSR2 Products)
- process_mirs_img.py (MIRS Products)
- process_btpw.py (Blended Total Precipitable Water Products)
- process_msg.py (METEOSAT HRIT)
- process_mpef.py (METEOSAT Products)
- process_ice.py (Several Ice Related Products)
- process_toast.py (Ozone Analysis Product)
- process_sst_metop.py (METOP 0.05° SST Product
In order to use the Python code examples:
1: Download and install Miniconda: https://conda.io/miniconda.html
After installing, check if there are updates with the following command:
conda update -n base conda
2: Create a conda environment, and install the required libraries (only one command):
conda create -c conda-forge -n geonetcast python=3.6 basemap basemap-data-hires conda gdal glymur matplotlib netcdf4 Pillow pyhdf pyorbital pyproj pyresample satpy
3: Check if the environment was created:
conda info --envs
4: In the gnc_scheduler.py script, please specify the environment location and the GEONETCast-Americas ingestion directory:
Linux example:
python_env = ‘//root//miniconda3//envs//geonetcast//bin//’
gnc_dir = ‘//dados//fazzt//’
Windows example:
python_env = ‘C://Users//dsouza//miniconda3//envs//geonetcast//’
gnc_dir = ‘C://GEONETCast//’
5: Activate the processing:
python gnc_scheduler.py
Note: Alternatively, you may call the gnc_monitor.py script using cron
You will see the regional GeoTIFF’s being created on the directory you put the scripts.
6: Erase the generated data periodically using cron or task scheduler:
For Linux:
#!/bin/csh -x
echo "*******Start*********"
echo `date`
find /data/fazzt/ -type f -mtime +0 -exec rm -f {} \;
find /data/scripts/ -type f -name '*.tif' -mtime +0 -exec rm -f {} \;
find /var/tmp/fazzt/kdt -mtime +0 -exec rm -f {} \;
echo `date`
echo "*********End*********"
For Windows:
forfiles /p "D:\GEONETCast-Americas" /s /m *.xml /d -1 /c "cmd /c del @PATH"
forfiles /p "D:\FazztTemp" /s /m *.xml /d -1 /c "cmd /c del @PATH"
forfiles /p "D:\Scripts" /s /m *.tif /d -1 /c "cmd /c del @PATH"
Stay tuned for news!