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
582953cd
Commit
582953cd
authored
3 years ago
by
Bing Gong
Browse files
Options
Downloads
Patches
Plain Diff
add data_extraction template
parent
b00247f3
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#92858
failed
3 years ago
Stage: build
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
video_prediction_tools/other_scripts/data_extraction_era5_template.sh
+28
-0
28 additions, 0 deletions
...tion_tools/other_scripts/data_extraction_era5_template.sh
with
28 additions
and
0 deletions
video_prediction_tools/other_scripts/data_extraction_era5_template.sh
0 → 100644
+
28
−
0
View file @
582953cd
#!/bin/bash -x
#User's input : your virtual enviornment name
VIRT_ENV_NAME
=
venv_test
echo
"Activating virtual environment..."
source
../virtual_envs/
${
VIRT_ENV_NAME
}
/bin/activate
# Declare path-variables (dest_dir will be set and configured automatically via generate_runscript.py)
source_dir
=
/my/path/to/era5
destination_dir
=
/my/path/to/extracted/data
varmap_file
=
/my/path/to/varmapping/file
years
=(
"2007"
)
#The number of nodes should be equal to the number of 1 preprcessed folder plus 1
n_nodes
=
3
# Run data extraction
for
year
in
"
${
years
[@]
}
"
;
do
echo
"Perform ERA5-data extraction for year
${
year
}
"
python ../main_scripts/main_data_extraction.py
--source_dir
${
source_dir
}
--target_dir
${
destination_dir
}
\
--year
${
year
}
--varslist_path
${
varmap_file
}
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