Commit f6362188 authored by Guillaume's avatar Guillaume
Browse files

Update .sh

parent f149bc81
......@@ -232,9 +232,6 @@ def main():
# Run processes in a dummy variable
_ = [x for x in processes]
# Write JSON catalog.
make_json(CATALOG_OUTPUT_PROD, args.project, header)
# Concatenate CSV files into one compressed CSV catalog.
print(f'Concatenating CSV catalogs...')
csv_header = ','.join(header) + '\n'
......@@ -249,6 +246,9 @@ def main():
copy(src=f'{CATALOG_OUTPUT_PROD}/{args.project}{CSV_EXTENSION}{COMPRESS_EXTENSION}',
dst=f'{CATALOG_OUTPUT_BACKUP}/{args.project}_{date.today().strftime("%Y%m%d")}{CSV_EXTENSION}{COMPRESS_EXTENSION}')
# Write JSON catalog.
make_json(CATALOG_OUTPUT_PROD, args.project, header)
print(f'{args.project} intake catalogs complete.')
......
......@@ -7,6 +7,8 @@
#PBS -j oe
#PBS -k oe
${HOME}/.conda/envs/python3/bin/python ${HOME}/catalog/esm_cat_generator.py -p CMIP5 -c 16
${HOME}/.conda/envs/python3/bin/python ${HOME}/catalog/esm_cat_generator.py -p CORDEX -c 16
${HOME}/.conda/envs/python3/bin/python ${HOME}/catalog/esm_cat_generator.py -p CMIP6 -c 16
cd ${HOME}/catalog
${HOME}/.conda/envs/python3/bin/python esm_cat_generator.py -p CMIP5 -c 16
${HOME}/.conda/envs/python3/bin/python esm_cat_generator.py -p CORDEX -c 16
${HOME}/.conda/envs/python3/bin/python esm_cat_generator.py -p CMIP6 -c 16
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment