Closed cecilehannay closed 1 year ago
This bug must have something to do with the way the file names are parsed in adf_info.py
.
Here's the relevant code:
#Check if history file path exists:
if baseline_hist_locs:
starting_location = Path(baseline_hist_locs)
files_list = sorted(starting_location.glob('*'+hist_str+'.*.nc'))
base_climo_yrs = sorted(np.unique([i.stem[-7:-3] for i in files_list]))
#Check if start or end year is missing. If so then just assume it is the
#start or end of the entire available model data.
if syear_baseline is None:
print(f"No given start year for {data_name}, using first found year...")
syear_baseline = int(base_climo_yrs[0])
elif str(syear_baseline) not in base_climo_yrs:
print(f"Given start year '{syear_baseline}' is not in current dataset {data_name}, using first found year:",base_climo_yrs[0],"\n")
syear_baseline = int(base_climo_yrs[0])
#End if
if eyear_baseline is None:
print(f"No given end year for {data_name}, using last found year...")
eyear_baseline = int(base_climo_yrs[-1])
elif str(eyear_baseline) not in base_climo_yrs:
print(f"Given end year '{eyear_baseline}' is not in current dataset {data_name}, using last found year:",base_climo_yrs[-1],"\n")
eyear_baseline = int(base_climo_yrs[-1])
#End if
I wonder if something is wrong with base_climo_yrs
?
Thanks, Brian.
One more thing that is misleading is that the website says the climos are computed with the years 10-25
although the names of the directory seems to imply it is computed over other set of years (years 1-34
and 1-26
)
b.e23_alpha16b.BLT1850.ne30_t232.034_1_34_vs_b.e23_alpha16b.BLT1850.ne30_t232.033_1_26/
Bugfix in: https://github.com/NCAR/ADF/pull/254
ADF run type
Model vs. Model
What happened?
I am running the latest version of the ADF on a B1850 run. I am trying to select a particular set of years but I am not sure it is working correctly as I get a warning message when starting the ADF.
For instance, I am trying to select the years 10-25 that is common to all my runs:
But I am getting a warming saying those years don't exist:
According to the message, the ADF is not using:
but instead, it seems to be using for the first run:
and for the second run:
I tried to set:
to see if it was helping but it doesn't
ADF Hash you are using
3e2ade6
What machine were you running the ADF on?
CISL machine
What python environment were you using?
NPL (CISL machines only)
Extra info
No response