ClimateGlobalChange/tempestextremes

Error when executing StichNodes_test.sh

Closed this issue · 2 comments

hi!

My "DetectNodes_test.job" file looks like this:

image

When I executed DetectNodes_test.job, the candidates were successfully selected and stored at "/home/climate_finance/TC_algorithms/study/papier_trackers/trackers/OWZ/bdd/ERA5/NETCDF/GLOBAL_025/4xdaily/AN_PL/2020/nodes" under the name of "202008.txt".

But I got the error when I tried to execute StitchNodes_test.sh.

StitchNodes_test.sh looks like this:

#!/bin/bash

yr=2020

ls /home/climate_finance/TC_algorithms/study/papier_trackers/trackers/OWZ/bdd/ERA5/NETCDF/GLOBAL_025/4xdaily/AN_PL/${yr}/nodes/*.txt > /home/climate_finance/TC_algorithms/study/papier_track
ers/trackers/OWZ/bdd/ERA5/NETCDF/GLOBAL_025/4xdaily/AN_PL/${yr}/tmp/nodeslist.txt

file_name=/home/climate_finance/TC_algotithms/study/OWZ_file/fOWZ_${yr}.csv

StitchNodes \
        --in_list /home/climate_finance/TC_algorithms/study/papier_trackers/trackers/OWZ/bdd/ERA5/NETCDF/GLOBAL_025/4xdaily/AN_PL/${yr}/tmp/nodeslist.txt \
        --out $file_name \
        --in_fmt "lon,lat,owz850,owz500" \
        --range 5.0 \
        --mintime "48h" \
        --maxgap "24h" \
        --threshold "owz850,>=,0.00006,9;owz500,>=,0.00005,9" \
        --out_file_format "csv"

Here is the error:

Arguments:
  --in <string> [""]
  --in_list <string> ["/home/climate_finance/TC_algorithms/study/papier_trackers/trackers/OWZ/bdd/ERA5/NETCDF/GLOBAL_025/4xdaily/AN_PL/2020/tmp/nodeslist.txt"]
  --in_connect <string> [""]
  --out <string> ["/home/climate_finance/TC_algotithms/study/OWZ_file/fOWZ_2020.csv"]
  --in_fmt <string> ["lon,lat,owz850,owz500"]
  --range <double> [5.000000] (degrees)
  --mintime <string> ["48h"]
  --time_begin <string> [""]
  --time_end <string> [""]
  --min_endpoint_dist <double> [0.000000] (degrees)
  --min_path_dist <double> [0.000000] (degrees)
  --maxgap <string> ["24h"]
  --threshold <string> ["owz850,>=,0.00006,9;owz500,>=,0.00005,9"] [col,op,value,count;...]
  --caltype <string> ["standard"] (none|standard|noleap|360_day)
  --allow_repeated_times <bool> [false]
  --out_file_format <string> ["csv"] (gfdl|csv|csvnohead)
------------------------------------------------------------
Parsing thresholds
..owz850 greater than or equal to 0.000060 at least 9 time(s)
..owz500 greater than or equal to 0.000050 at least 9 time(s)
..Done
Loading candidate data
..Discrete times: 124 (2020-08-01 00:00:00 to 2020-08-31 18:00:00)
..Done
Creating KD trees at each time level.. Done
Populating set of path segments.. Done
Constructing paths
..Paths rejected (mintime): 1186
..Paths rejected (minendpointdist): 0
..Paths rejected (minpathdist): 0
..Paths rejected (threshold): 189
..Total paths found: 264
..Done
Writing results
..EXCEPTION (/home/conda/feedstock_root/build_artifacts/tempest-extremes_1643338652905/work/src/base/NodeFileUtilities.cpp, Line 575) Error opening file "/home/climate_finance/TC_algotithms/study/OWZ_file/fOWZ_2020.csv" for writing

how can I solve this?

oh, i found that there was a typo when writing the path....sorry...
it works fine now!!