Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
inventory
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
21
Issues
21
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Packages
Packages
Container Registry
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
data
tools
inventory
Commits
f64c40b4
Commit
f64c40b4
authored
Dec 06, 2017
by
Willi Rath
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up nc and grb dirs before converting
parent
19aff14f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
convert_to_netcdf.sh
ERAIN_SFC12_MM/util/convert_to_netcdf.sh
+1
-1
No files found.
ERAIN_SFC12_MM/util/convert_to_netcdf.sh
View file @
f64c40b4
...
...
@@ -5,12 +5,12 @@ function convert_grb_to_netcdf {
nc_file
=
"
$(
echo
${
grb_file
}
| rev |
cut
-d
.
-f2-
| rev
)
"
.nc
tmp_nc_file
=
${
nc_file
}
_tmp
cdo
-r
-t
ecmwf
-f
nc
-copy
${
grb_file
}
${
tmp_nc_file
}
rm
-f
${
nc_file
}
nccopy
-7
-d1
-s
${
tmp_nc_file
}
${
nc_file
}
rm
-f
${
tmp_nc_file
}
}
export
-f
convert_grb_to_netcdf
rm
-f
data/grb/
*
data/nc/
*
find data
-iname
\*
.grb
-print0
|
\
xargs
-0
-n1
-P4
-I
{}
bash
-c
"convert_grb_to_netcdf {}"
...
...
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