parser=argparse.ArgumentParser(description="Script which create an esm catalog (json+csv) from netcdf files in sub-directories from the 'root' dir and put the catalog into 'out_cat' directory using vocabulary as validator from 'project' CV and DRS")
parser.add_argument("project",help="could be CMIP6, CMIP5 , CORDEX",type=str)
parser.add_argument("rootDirCat",help="root path to catalog directory",type=str)
parser.add_argument("gran",help="granularite where to start scan AND also path of output catalog",type=str)
args=parser.parse_args()
methode=AtefIdea()
globaldrs
drs=DRS(args.project)
nbInPool=4
pool=Pool(nbInPool)
pathDesFichiers="/bdd/CMIP6/C4MIP/MOHC/.paths.txt"#<= ici les mega fichiers seront dans modf => 1 pour le TGCC ,1 pour l'IDRISS après avoir fait tourner le "super find bash" IDRIS
parser=argparse.ArgumentParser(description="Script which create an esm catalog (json+csv) from netcdf files in sub-directories from the 'root' dir and put the catalog into 'out_cat' directory using vocabulary as validator from 'project' CV and DRS")
parser.add_argument("project",help="could be CMIP6, CMIP5 , CORDEX",type=str)
parser.add_argument("root",help="root path to scan in order to get an esm cat",type=str)
parser.add_argument("rootDirCat",help="root path to catalog directory",type=str)
parser.add_argument("gran",help="granularite where to start scan AND also path of output catalog",type=str)
## Quelle est la DRS que l'on va utiliser pour creer les catalogue => ça depend du project
...
...
@@ -343,39 +426,56 @@ def main():
#pathDesFichiers = "FakeDir/CMIP6_paths.csv" #<= ici les mega fichiers seront dans modf => 1 pour le TGCC ,1 pour l'IDRISS après avoir fait tourner le "super find bash"
pathDesFichiers="bdd/CMIP6/C4MIP/MOHC/.paths.txt"#<= ici les mega fichiers seront dans modf => 1 pour le TGCC ,1 pour l'IDRISS après avoir fait tourner le "super find bash"
pathDesFichiers="/bdd/CMIP6/C4MIP/MOHC/.paths.txt"#<= ici les mega fichiers seront dans modf => 1 pour le TGCC ,1 pour l'IDRISS après avoir fait tourner le "super find bash" IDRIS
#pathDesFichiers = "/bdd/CMIP6/C4MIP/IPSL/.paths.txt" #<= ici les mega fichiers seront dans modf => 1 pour le TGCC ,1 pour l'IDRISS après avoir fait tourner le "super find bash" TGCC