These last few months, I have tried a lot of difference formulation to calculate Standardized Precipitation Index (SPI) based on rainfall data in netCDF format, check below files as a background:
- SPI using IMERG netCDF (notebook)
- SPI using CHIRPS netCDF (how-to guideline)
The reason why I use rainfall in netCDF format in above files because the software to calculate SPI: climate-indices python package will only accept single netCDF as input, and the SPI script will read the netCDF input file based on time dimension.
Converting raster files into netCDF is easy using GDAL or other GIS software, but to make the time dimension enabled n