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
a7b6caa8
Commit
a7b6caa8
authored
Jan 24, 2022
by
TROUSSELLIER Laurent
Browse files
mainchange : 1 catalog1 worker
parent
ca4ddf4a
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
14 additions
and
10 deletions
+14
-10
bdd/CMIP6/PMIP/NCAR/CESM2/lig127k/r1i1p1f1/Amon/co2/gn/latest/co2_Amon_CESM2_lig127k_r1i1p1f1_gn_010101-015012.nc
...atest/co2_Amon_CESM2_lig127k_r1i1p1f1_gn_010101-015012.nc
+0
-0
bdd/CMIP6/PMIP/NCAR/CESM2/lig127k/salut.nc
bdd/CMIP6/PMIP/NCAR/CESM2/lig127k/salut.nc
+0
-0
constants.py
constants.py
+6
-4
esm_cat_generator.py
esm_cat_generator.py
+2
-1
qsub/JobCMIP6Cat
qsub/JobCMIP6Cat
+1
-1
qsub/std_error.out
qsub/std_error.out
+5
-4
No files found.
bdd/CMIP6/PMIP/NCAR/CESM2/lig127k/r1i1p1f1/Amon/co2/gn/latest/co2_Amon_CESM2_lig127k_r1i1p1f1_gn_010101-015012.nc
deleted
100644 → 0
View file @
ca4ddf4a
bdd/CMIP6/PMIP/NCAR/CESM2/lig127k/salut.nc
deleted
100644 → 0
View file @
ca4ddf4a
constants.py
View file @
a7b6caa8
...
...
@@ -6,11 +6,13 @@
"""
IPSL_DATA_ROOT
=
'/bdd'
INPUT_SOURCES
=
{
'CMIP6'
:
[
'/bdd/CMIP6/C4MIP/MOHC/.paths.txt'
,
# CMIP6 replicas (IDRIS)
'/bdd/CMIP6/C4MIP/IPSL/.paths.txt'
# CMIP6 IPSL datasets (TGCC)
IPSL_DATA_ROOT
=
'/bdd/'
INPUT_SOURCES
=
{
'CMIP6'
:
[
'/home/ltroussellier/dev_catalog/test3_gui/catalog/InputFakeFile/'
# CMIP6 replicas (IDRIS)
]}
# INPUT_SOURCES = {'CMIP6': ['/bdd/CMIP6/C4MIP/MOHC/.paths.txt', # CMIP6 replicas (IDRIS)
# '/bdd/CMIP6/C4MIP/IPSL/.paths.txt' # CMIP6 IPSL datasets (TGCC)
# ]}
# INPUT_SOURCES = {'CMIP6': ['/Users/glipsl/Desktop/.paths.txt'],
# 'CMIP5': ['/bdd/CMIP5/output/MOHC/.paths.txt', # CMIP5 replicas (IDRIS)
# '/bdd/CMIP5/output/IPSL/.paths.txt' # CMIP5 IPSL datasets (TGCC)
...
...
esm_cat_generator.py
View file @
a7b6caa8
...
...
@@ -131,13 +131,14 @@ class Runner(object):
#print(source)
# Get total entires in a fast way for beautiful progress bar.
total
=
int
(
subprocess
.
check_output
([
"wc"
,
"-l"
,
source
]).
split
()[
0
])
chunksize
=
int
(
total
/
10
)
#total = 5000000
#print("total à traiter", total)
# Instantiate pool of processes.
if
self
.
pool
:
#print("TRUE")
# Instantiate pool iterator with progress bar.
processes
=
tqdm
(
self
.
pool
.
imap
(
Process
(
ctx
),
self
.
get_entries
(
source
)),
desc
=
'Catalog generation'
,
processes
=
tqdm
(
self
.
pool
.
imap
(
Process
(
ctx
),
self
.
get_entries
(
source
)
,
chunksize
=
chunksize
),
desc
=
'Catalog generation'
,
total
=
total
)
# Sequential processing use basic map function.
...
...
qsub/JobCMIP6Cat
View file @
a7b6caa8
...
...
@@ -18,5 +18,5 @@ echo $PWD
# Example for a Python job :
export
PATH
=
/opt/epd_py25-4.3.0/bin:
$PATH
python esm_cat_generator.py
-p
CMIP6
-o
OutputCatalog/
-t
2
-d
experiment_id
python esm_cat_generator.py
-p
CMIP6
-o
OutputCatalog/
-t
4
-d
experiment_id
qsub/std_error.out
View file @
a7b6caa8
/var/spool/torque/mom_priv/jobs/25273.SC: line 16: cd: dev/test3_gui/: No such file or directory
Running Host: ciclad20.private.ipsl.fr
/var/spool/torque/mom_priv/jobs/26118.SC: line 16: cd: dev/test3_gui/: No such file or directory
/home/ltroussellier
python: can't open file 'esm_cat_generator.py': [Errno 2] No such file or directory
Epilogue Args:
Job ID: 2
5273
Job ID: 2
6118
User ID: ltroussellier
Group ID: lsce
Job Name: Fabrication
Session ID:
236
3
Session ID:
3730
3
Resource List: mem=1gb,neednodes=1:ppn=4,nodes=1:ppn=4,vmem=4gb,walltime=00:30:00
Resources Used: cput=00:00:00,mem=0kb,vmem=0kb,walltime=00:00:01
Queue Name: short
Running Host: ciclad2
5
.private.ipsl.fr
Running Host: ciclad2
0
.private.ipsl.fr
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