Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
IPSL
E
ESPRI
ESPRI-Mod
catalog
Commits
f6362188
Commit
f6362188
authored
Feb 07, 2022
by
Guillaume
Browse files
Update .sh
parent
f149bc81
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
esm_cat_generator.py
esm_cat_generator.py
+3
-3
esm_cat_generator.sh
esm_cat_generator.sh
+5
-3
No files found.
esm_cat_generator.py
View file @
f6362188
...
...
@@ -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.'
)
...
...
esm_cat_generator.sh
View file @
f6362188
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment