basin-extractor issueshttps://git.ufz.de/schaefed/basin-extractor/-/issues2021-10-13T12:14:30+02:00https://git.ufz.de/schaefed/basin-extractor/-/issues/6Solving UFZ dependency2021-10-13T12:14:30+02:00Sebastian MüllerSolving UFZ dependencyDependency from `ufz` lib needs to be resolved.Dependency from `ufz` lib needs to be resolved.https://git.ufz.de/schaefed/basin-extractor/-/issues/5Running "python extract.py -n 0" runs all gauges in the input file2020-11-02T10:33:29+01:00sluedtkeRunning "python extract.py -n 0" runs all gauges in the input fileI 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/slue...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?https://git.ufz.de/schaefed/basin-extractor/-/issues/4UnicodeDecodeError: 'ascii' codec2019-12-18T15:12:52+01:00Oldrich RakovecUnicodeDecodeError: 'ascii' codecFor basin extractor execution,
possible error might occur (just experienced on EVE) while yml file is being read, when it comes to L44,
where ^2 is defined as upper case.
Possible solution is to remove this upper case ^2 from the co...For basin extractor execution,
possible error might occur (just experienced on EVE) while yml file is being read, when it comes to L44,
where ^2 is defined as upper case.
Possible solution is to remove this upper case ^2 from the comment line,
which solve this issue.
Oldahttps://git.ufz.de/schaefed/basin-extractor/-/issues/2Computing basin area for the latlon requires attention2019-03-15T13:13:04+01:00Oldrich RakovecComputing basin area for the latlon requires attentionHi David, just figured out a possible issue regarding the basin area calculation for latlon version... please check (not urgent)
For coordinates in latlon, the grid-cell area decreases with increasing latitude-y (from equator to poles)....Hi David, just figured out a possible issue regarding the basin area calculation for latlon version... please check (not urgent)
For coordinates in latlon, the grid-cell area decreases with increasing latitude-y (from equator to poles). After consultation with @rkumar, the area should be:
` AREA = Ncells_from_FACC * (L0resolution_x * scaling factor) * (**cos(LAT_in_degrees)** * L0resolution_y * scaling factor)`
Possible quick solution for a user is to provide drainage area divided by cos(LAT_in_degrees) in the yml file directly.
If you have a better solution, which you would like to implement, please let me know.
Thanks!
Note that for the coordinates in meters, all is fine, scaling factor is 0.001