Running "python extract.py -n 0" runs all gauges in the input file
I was expecting that this runs only the first gauge Ignoring the warnings, my example case looks like that, where I have three gauges listed in the input file.
python extract.py -n 0
/panfs/panfs100.gfz-hpcc.cluster/home4/hydro/sluedtke/gfz/rfm/hydromod/src/python_ufz/ufz/__init__.py:640: RuntimeWarning: Module writenetcdf not loaded
warnings.warn("Module writenetcdf not loaded", RuntimeWarning)
extract.py:25: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
out = yaml.load(f)
processing gauge: 503050
/panfs/panfs100.gfz-hpcc.cluster/home4/hydro/sluedtke/gfz/rfm/hydromod/src/basin_extractor/lib/netcdf.py:110: UserWarning: WARNING: missing_value not used since it
cannot be safely cast to variable data type
newvar[:] = var[slices]
processing gauge: 26900400
processing gauge: 550940
In contrast, running it with "-n 1" works as expected.
python extract.py -n 1
/panfs/panfs100.gfz-hpcc.cluster/home4/hydro/sluedtke/gfz/rfm/hydromod/src/python_ufz/ufz/__init__.py:640: RuntimeWarning: Module writenetcdf not loaded
warnings.warn("Module writenetcdf not loaded", RuntimeWarning)
extract.py:25: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
out = yaml.load(f)
processing gauge: 26900400
/panfs/panfs100.gfz-hpcc.cluster/home4/hydro/sluedtke/gfz/rfm/hydromod/src/basin_extractor/lib/netcdf.py:110: UserWarning: WARNING: missing_value not used since it
cannot be safely cast to variable data type
newvar[:] = var[slices]
Do I miss something here?