when ADF finds multiple TS files, should it choose one or quit with an error? #159
Replies: 2 comments
-
I see that this is being treated differently by different scripts. In create_climo_files.py:process_variable() and averaging_example.py
In amwg_table.py
Note that the former would cause problems in my case: I have timeseries files from the same model case but with different naming conventions due to different versions of the ADF. Note that this could be resolved by overwriting the output directory, but if we have a setting like that we'll have to be careful to not lose existing files! Furthermore, there is an inconsistency in how the two functions search for the file names:
amwg_table.py
Maybe there is a reason they need to be different, and so far I think they both work but could it be time to write a function to do this that every script can call? Given the checks ( |
Beta Was this translation helpful? Give feedback.
-
There are several issues here. First: different methods for retrieving the time series Second: Inconsistent searching methods Third: finding multiple time series files For this kind of anticipated scenario, I think using Fourth: different time series files from the same case in the same directory |
Beta Was this translation helpful? Give feedback.
-
Currently if there are multiple time-series files, the ADF quits (at least in this call).
AdfError: Currently the AMWG table script can only handle one time series file per variable. Multiple files were found for the variable 'Q'
First, I would like it to give a list of the files it found, so I don't have to dig back in my config file to find the path. But more importantly: should it choose the one it thinks is mostly likely to be right, and just generate a warning, or should it fail (current behavior).
Beta Was this translation helpful? Give feedback.
All reactions