Skip to content

Commit

Permalink
cesm catalog generated with exception to tweaking realm and freq
Browse files Browse the repository at this point in the history
  • Loading branch information
aradhakrishnanGFDL committed Nov 20, 2024
1 parent 2ed9e4d commit cac7330
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion catalogbuilder/intakebuilder/getinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,9 @@ def getInfoFromVarAtts(fname,variable_id,dictInfo,att="standard_name",filexra=No
:return: dictInfo with all variable atts
'''
#try:

filexr,filexra = return_xr(fname)
#print("Variable atts from file:",filexr[variable_id])
#print("look up Variable atts from file:",filexr[variable_id])
if (dictInfo[att] == "na"):
try:
cfname = filexr[variable_id].attrs["standard_name"]
Expand Down
2 changes: 1 addition & 1 deletion catalogbuilder/intakebuilder/gfdlcrawler.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def crawlLocal(projectdir, dictFilter,dictFilterIgnore,logger,configyaml,slow):
if qualities in unique_datasets.keys():
standard_name=unique_datasets[qualities]
dictInfo["standard_name"]=standard_name

print("test..",qualities,standard_name)
else:
logger.info("Retrieving standard_name from "+ (str)(filename))
getinfo.getInfoFromVarAtts(dictInfo["path"],dictInfo["variable_id"],dictInfo)
Expand Down

0 comments on commit cac7330

Please sign in to comment.