CNES / swot-hydrology-toolbox

GNU Lesser General Public License v3.0
54 stars 20 forks source link

Some questions about River processing steps in processing #16

Open SingyuTang opened 11 months ago

SingyuTang commented 11 months ago
  1. Can you please tell me what causes the following error when I execute the command python $SWOT_HYDROLOGY_TOOLBOX/scripts/l2pixc_to_rivertile.py under the folder test/patagonia o utput/simu output/river rdf/parameter_river.rdf command with the following error what causes this?My previous steps are working correctly.
2023-12-12 23:18:02,382 - root - INFO - ***** Dealing with PixC annotation file output/simu/pixc_annotation_001_063_079L.rdf *****

Cycle number = 001
Pass number = 063
Tile ref = 079L
Start date = 20220403T052044
Stop date = 20220403T052049

2023-12-12 23:18:02,383 - root - INFO - == Run RiverObs ==
2023-12-12 23:18:02,384 - swot_pixc2rivertile - INFO - 1 - [RiverObs] Init class for running RiverObs on a SWOT L2 PixelCloud data product
2023-12-12 23:18:02,384 - swot_pixc2rivertile - INFO - > Estimate.L2PixcToRiverTile(/home/manasakura/coding/swot_hydrology_toolbox/test/patagonia/output/simu/SWOT_L2_HR_PIXC_001_063_079L_20220403T052044_20220403T052049_Dx0000_01.nc, /home/manasakura/coding/swot_hydrology_toolbox/test/patagonia/output/river/pixcvec/SWOT_L2_HR_PIXCVecRiver_001_063_079L_20220403T052044_20220403T052049_Dx0000_01.nc)
2023-12-12 23:18:02,408 - swot_pixc2rivertile - INFO - - end -
2023-12-12 23:18:02,408 - swot_pixc2rivertile - INFO - 2 - [RiverObs] Copies config object into self's storage from main
2023-12-12 23:18:02,408 - swot_pixc2rivertile - INFO - > Estimate.L2PixcToRiverTile.load_config(config)
2023-12-12 23:18:02,408 - SWOTRiver.Estimate - INFO - load_config
2023-12-12 23:18:02,408 - swot_pixc2rivertile - INFO - - end -
2023-12-12 23:18:02,408 - swot_pixc2rivertile - INFO - 3 - Run RiverObs
2023-12-12 23:18:02,408 - swot_pixc2rivertile - INFO - 3.1 - [RiverObs] Estimate.L2PixcToRiverTile.validate_inputs()
2023-12-12 23:18:02,408 - SWOTRiver.Estimate - INFO - validate_inputs
2023-12-12 23:18:02,427 - swot_pixc2rivertile - INFO - 3.1 - [RiverObs] Estimate.L2PixcToRiverTile.do_river_processing()
2023-12-12 23:18:02,427 - SWOTRiver.Estimate - INFO - do_river_processing
2023-12-12 23:18:02,427 - SWOTRiver.Estimate - INFO - enforce_config
Traceback (most recent call last):
  File "/home/manasakura/coding/swot_hydrology_toolbox/scripts/l2pixc_to_rivertile.py", line 301, in <module>
    main()
  File "/home/manasakura/coding/swot_hydrology_toolbox/scripts/l2pixc_to_rivertile.py", line 281, in main
    run_river_tile((args, pixc_ann_file))
  File "/home/manasakura/coding/swot_hydrology_toolbox/scripts/l2pixc_to_rivertile.py", line 153, in run_river_tile
    log_level="info", gdem_file=None)
  File "/home/manasakura/coding/swot_hydrology_toolbox/scripts/l2pixc_to_rivertile.py", line 89, in l2pixc_to_rivertile
    l2pixc_to_rivertile.do_river_processing()
  File "/home/manasakura/coding/RiverObs/src/SWOTRiver/Estimate.py", line 199, in do_river_processing
    self.enforce_config()
  File "/home/manasakura/coding/RiverObs/src/SWOTRiver/Estimate.py", line 177, in enforce_config
    if self.config['outlier_method'] is None:
KeyError: 'outlier_method'
  1. I am running python $SWOT_HYDROLOGY_TOOLBOX/scripts/l2pixc_to_rivertile.py output/simu output/river rdf/parameter_ in 'test' folder. river.rdf --nogdem when I found that the nogdem' parameter is not defined in thel2pixc_to_rivertile.py` function, but it is written in its 'readme.md' file, how to solve this?