ACCESS-NRI / access-esm1.5-configs

Standard ACCESS-ESM1.5 configurations released and supported by ACCESS-NRI
Creative Commons Attribution 4.0 International
0 stars 1 forks source link

Historical replace_landsurface.py python interpreter #57

Open jo-basevi opened 3 weeks ago

jo-basevi commented 3 weeks ago

The replace_landsurface.py scripts currently uses a python interpreter in hh5 https://github.com/ACCESS-NRI/access-esm1.5-configs/blob/def5a8a19787cbd5bed9802b3aa8d33f30013551/scripts/update_landuse.py#L1

If changed to #!/usr/bin/env python3, it currently runs into errors when run as a user-script on payu as it defaults to /bin/python3 - https://github.com/payu-org/payu/issues/490

A temporary workaround until the above in fixed in payu, could be to use payu/1.1.4's python interpreter which has access to mule and xarray, so it'll be #!/g/data/vk83/apps/payu/1.1.4/bin/python3

jo-basevi commented 2 weeks ago

Another workaround is to use the existing environment variable $PAYU_PATH which is the directory that contains the payu install. So call $PAYU_PATH/python3 scripts/update_landuse.py in scripts/update_landuse_driver.sh