0. Working Directory
For this tutorial, I am working on these folder /Users/bennyistanto/Temp/xxx/SPI/Java
(applied to Mac/Linux machine) or Z:/Temp/xxx/SPI/Java
(applied to Windows machine) directory. I have some folder inside this directory:
-
Downloads
-
IMERG
IMERG_mmhr
IMERG_mmmonth
IMERG_originalfiles
-
CHIRPS
netCDF
GeoTIFF
Place to put downloaded IMERG or CHIRPS data
-
-
Fitting
Place to put fitting parameters output from the calculation
-
Input_nc
Place to put netCDF data that will use as an input
-
Input_TIF
Place to put GeoTIFF file that will use to convert to single netCDF with time dimension enabled
-
Output_nc
Output folder for SPI calculation
-
Output_TEMP
Temporary for nc files from CDO arrange dimension process
-
Output_TIF
Final output of SPI, generate by CDO and GDAL
-
Script
Python script location to convert bunch of GeoTIFF file to single netCDF
-
Subset
Place to put shapefile for clipping area of interest
Feel free to use your own preferences for this setting/folder arrangements.
Notes:
xxx
= IMERG
or CHIRPS
(depend on the data used in tutorial)