alan-turing-institute / clim-recal

Open repository of methods for recalibrating & bias correcting UKCP18 climate projections data
https://alan-turing-institute.github.io/clim-recal/
MIT License
10 stars 1 forks source link

Crop output directory is hard coded #171

Open andrewphilipsmith opened 1 month ago

andrewphilipsmith commented 1 month ago

How to reproduce:

clim-recal \
    --hads-input-path /datadrive/hads_data \
    --cpm-input-path /datadrive/cpm_data \
    --output-path /datadrive/output \
    --execute"

Expected behaviour

The cropped data should be output to a location within /datadrive/output

Actual behaviour

The pipeline errors with the following error:

FileNotFoundError: [Errno 2] No such file or directory: '/mnt/vmfileshare/ClimateData/CPM-365/andys-two-gdal-step-approach/resample'

(See /datadrive/clim-recal-results/group_run_2024-09-19-17-44/logs/log_1980.txt for a full example)

Temporary workaround

There is a temporary workaround in this commit https://github.com/alan-turing-institute/clim-recal/pull/170/commits/16da6d35f0e631d4fc7a1adf166de5bdee86d3f1 However, this merely changes the value of the hardcoded path, rather than the fact that it is hardcoded