Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
AMBS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
esde
machine-learning
AMBS
Commits
78f496bc
Commit
78f496bc
authored
4 years ago
by
Michael Langguth
Browse files
Options
Downloads
Patches
Plain Diff
Some adaptions to DataPreprocess_template.sh.
parent
8d98b63b
No related branches found
No related tags found
No related merge requests found
Pipeline
#45221
failed
4 years ago
Stage: build
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
video_prediction_savp/HPC_scripts/DataPreprocess_template.sh
+15
-16
15 additions, 16 deletions
video_prediction_savp/HPC_scripts/DataPreprocess_template.sh
with
15 additions
and
16 deletions
video_prediction_savp/HPC_scripts/DataPreprocess_template.sh
+
15
−
16
View file @
78f496bc
...
...
@@ -12,6 +12,10 @@
#SBATCH --mail-type=ALL
#SBATCH --mail-user=b.gong@fz-juelich.de
######### Template identifier (don't remove) #########
echo
"Do not run the template scripts"
exit
99
######### Template identifier (don't remove) #########
# Name of virtual environment
VIRT_ENV_NAME
=
"virt_env_hdfml"
...
...
@@ -29,34 +33,29 @@ fi
# Loading mouldes
source
../env_setup/modules_preprocess.sh
source_dir
=
${
SAVE_DIR
}
/extractedData
destination_dir
=
${
SAVE_DIR
}
/preprocessedData/era5-Y2015to2017M01to12
script_dir
=
`
pwd
`
declare
-a
years
=(
"2222"
"2010_1"
"2012"
"2013_complete"
"2015"
"2016"
"2017"
"2019"
)
# select years for dataset
declare
-a
years
=(
"2015"
"2016"
"2017"
)
max_year
=
`
echo
"
${
years
[*]
}
"
|
sort
-nr
|
head
-n1
`
min_year
=
`
echo
"
${
years
[*]
}
"
|
sort
-nr
|
tail
-n1
`
# set some paths
# note, that destination_dir is used during runtime to set a proper experiment directory
exp_id
=
xxx
source_dir
=
${
SAVE_DIR
}
/extractedData
destination_dir
=
${
SAVE_DIR
}
/preprocessedData/era5-Y
${
min_year
}
to
${
max_year
}
M01to12
script_dir
=
`
pwd
`
# e
c
ecute Python-scripts
# e
x
ecute Python-scripts
for
year
in
"
${
years
[@]
}
"
;
do
echo
"Year
$year
"
echo
"source_dir
${
source_dir
}
/
${
year
}
"
srun python ../../workflow_parallel_frame_prediction/DataPreprocess/mpi_stager_v2_process_netCDF.py
\
--source_dir
${
source_dir
}
-scr_dir
${
script_dir
}
\
--source_dir
${
source_dir
}
-scr_dir
${
script_dir
}
--exp_id
${
exp_id
}
\
--destination_dir
${
destination_dir
}
--years
${
year
}
--vars
T2 MSL gph500
--lat_s
74
--lat_e
202
--lon_s
550
--lon_e
710
done
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment