Repository that contains processing code used to generate the CAMELS-spat (Catchment Attributes and MEteorology for Large-Sample studies - SPATially distributed) data set.
This repository contains the following sub-folders:
- 0_config - contains a configuration file with all high-level decisions. Prevents needing to hard-code paths in the remainder of the code and this in turns leads to more efficient reproducibility.
- 1_Python_setup - contains: compiled
fiona
andgdal
libraries for Windows 64-bit, Python package requirements and code to configure a Python virtual environment. - 2_reference_shapefiles - contains code to obtain and process reference shapefiles for the CAMELS-spat basins, obtained from the CAMELS-US data set and Water Survey of Canada data sets.
- 3_merit_hydro - contains code to obtain MERIT Hydro flow accumulation and flow direction grids, and MERIT Hydro-derived shapefiles.
- 4_data_structure_prep - contains code to generate a meta data file and prepare the necessary folder structures (makes folders and copies reference shapes if available).
- 5_basin_delineation - contains code to subset downloaded MERIT Hydro-derived shapefiles to the basins of interest, and ensure that the shapefile extent aligns with the USGS and RHBN gauge locations.
To reproduce the data processing steps, execute scripts in order, starting at folder 1_Python_setup
, before moving on to main folder 2_
, main folder 3_
, etc. Folder names starting 0_
do not contain anything that needs to be executed manually.
Further instructions and descriptions are found in the Readme's contain in sub-folders.