Currently the BARRA_DIR or ERA_DIR paths are hardcoded (and set from the ROSE_DATA environment variable).
It would be better for this path to be declared as a command line argument to the hres_eccb.py/hres_ic.py scripts (for example using the --source or --source_dir option.
This would:
- Make the scripts portable. If I have some valid data (same structure) locally, the scripts can still be used by setting the source path via the
--source option. Currently the scripts can only be used on Gadi.
- Give more freedom in case the paths to the source files want/need to be changed. We would only need to change the suite (change the
--source path) and not the python scripts.
Currently the
BARRA_DIRorERA_DIRpaths are hardcoded (and set from theROSE_DATAenvironment variable).It would be better for this path to be declared as a command line argument to the
hres_eccb.py/hres_ic.pyscripts (for example using the--sourceor--source_diroption.This would:
--sourceoption. Currently the scripts can only be used on Gadi.--sourcepath) and not the python scripts.