Skip to content

Commit

Permalink
Update amwg_table.py
Browse files Browse the repository at this point in the history
  • Loading branch information
justin-richling committed Nov 19, 2024
1 parent 5cf8a79 commit 0b99f54
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions scripts/analysis/amwg_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,6 @@ def amwg_table(adf):
# VARIABLE-NAME, RUN VALUE, OBS VALUE, RUN-OBS, RMSE
#----------------------

#Notify user that script has started:
print("\n Calculating AMWG variable table...")


#Extract needed quantities from ADF object:
#-----------------------------------------
var_list = adf.diag_var_list
Expand Down Expand Up @@ -167,6 +163,9 @@ def amwg_table(adf):
#Write to debug log if enabled:
adf.debug_log(f"DEBUG: location of files is {str(input_location)}")

#Notify user that script has started:
print(f"\n Calculating AMWG variable table for '{case_name}'...")

#Create output file name:
output_csv_file = output_location / f"amwg_table_{case_name}.csv"

Expand Down Expand Up @@ -216,7 +215,7 @@ def amwg_table(adf):

#Check if variable has a vertical coordinate:
if 'lev' in data.coords or 'ilev' in data.coords:
print(f"\t Variable '{var}' has a vertical dimension, "+\
print(f"\t ** Variable '{var}' has a vertical dimension, "+\
"which is currently not supported for the AMWG Table. Skipping...")
#Skip this variable and move to the next variable in var_list:
continue
Expand Down

0 comments on commit 0b99f54

Please sign in to comment.