Working Directory
Working Directory#
For this tutorial, we are working on these folder /precipitation-index/exercise/
(applied to Mac/Linux machine) or Z:/precipitation-index/exercise/
(applied to Windows machine) directory. We have some folder inside this directory:
downloads
imerg
imerg_mmhr
imerg_mmmonth
imerg_originalfiles
chirps
netcdf
geotiff
terraclimate
ppt
pet
Place to put downloaded IMERG,CHIRPS and TerraClimate data.
fitting
Place to put fitting parameters output from the calculation.
input_nc
imerg
chirps
terraclimate
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
spi
spei
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.
subset
Place to put shapefile for clipping area of interest.
Feel free to use your own preferences for this setting/folder arrangements.