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:
downloadsimergimerg_mmhrimerg_mmmonthimerg_originalfiles
chirpsnetcdfgeotiff
terraclimatepptpet
Place to put downloaded IMERG,CHIRPS and TerraClimate data.
fittingPlace to put fitting parameters output from the calculation.
input_ncimergchirpsterraclimate
Place to put netCDF data that will use as an input.
input_tifPlace to put GeoTIFF file that will use to convert to single netCDF with time dimension enabled.
output_ncspispei
Output folder for SPI calculation.
output_tempTemporary for nc files from CDO arrange dimension process.
output_tifFinal output of SPI, generate by CDO and GDAL.
subsetPlace to put shapefile for clipping area of interest.
Feel free to use your own preferences for this setting/folder arrangements.