From 540cd38c0e2938a2b2c62e0aa8d21f6a6242c5a5 Mon Sep 17 00:00:00 2001 From: aradhakrishnanGFDL Date: Fri, 25 Oct 2024 10:42:07 -0400 Subject: [PATCH] table_id fx --- catalogbuilder/intakebuilder/getinfo.py | 2 +- catalogbuilder/intakebuilder/gfdlcrawler.py | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/catalogbuilder/intakebuilder/getinfo.py b/catalogbuilder/intakebuilder/getinfo.py index c81f10d..7bed7de 100644 --- a/catalogbuilder/intakebuilder/getinfo.py +++ b/catalogbuilder/intakebuilder/getinfo.py @@ -114,7 +114,7 @@ def getInfoFromGFDLFilename(filename,dictInfo,logger,configyaml): output_file_template = ['realm'] if "variable_id" in dictInfo.keys(): dictInfo["variable_id"] = "fixed" if "frequency" in dictInfo.keys(): dictInfo["frequency"] = "fx" - if "table_id" in dictInfo.keys(): dictInfo["table_id"] = "fixed" + if "table_id" in dictInfo.keys(): dictInfo["table_id"] = "fx" ## nlen = len(output_file_template) for i in range(nlen-1,-1,-1): #nlen = 3 diff --git a/catalogbuilder/intakebuilder/gfdlcrawler.py b/catalogbuilder/intakebuilder/gfdlcrawler.py index 919ae5a..6cacdab 100644 --- a/catalogbuilder/intakebuilder/gfdlcrawler.py +++ b/catalogbuilder/intakebuilder/gfdlcrawler.py @@ -82,8 +82,6 @@ def crawlLocal(projectdir, dictFilter,dictFilterIgnore,logger,configyaml,slow): if ((len(filename.split('.'))-1) != len(set_ftemplate)): logger.debug("Skipping "+filename) continue - else: - print("tmp debugging static", filename) logger.debug(dirpath+"/"+filename) dictInfo = {} dictInfo = getinfo.getProject(projectdir, dictInfo) @@ -94,14 +92,12 @@ def crawlLocal(projectdir, dictFilter,dictFilterIgnore,logger,configyaml,slow): dictInfo = getinfo.getInfoFromFilename(filename,dictInfo, logger) else: dictInfo = getinfo.getInfoFromGFDLFilename(filename,dictInfo, logger,configyaml) - print("1. ", dictInfo) if "variable_id" in dictInfo.keys(): if dictInfo["variable_id"] is not None: variable_id = dictInfo["variable_id"] else: variable_id = "" dictInfo = getinfo.getInfoFromGFDLDRS(dirpath, projectdir, dictInfo,configyaml,variable_id) - print("2.", dictInfo) list_bad_modellabel = ["","piControl","land-hist","piClim-SO2","abrupt-4xCO2","hist-piAer","hist-piNTCF","piClim-ghg","piClim-OC","hist-GHG","piClim-BC","1pctCO2"] list_bad_chunklabel = ['DO_NOT_USE'] if "source_id" in dictInfo: