Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Christoph Heim
dyamond_mistral
Commits
c3dc0486
Commit
c3dc0486
authored
May 15, 2020
by
Christoph Heim
Browse files
Had to get something from MPAS
parent
a471b0ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
05_mpas.py
View file @
c3dc0486
...
...
@@ -17,7 +17,7 @@ from datetime import datetime, timedelta
from
multiprocessing
import
Pool
from
pathlib
import
Path
from
cdo
import
Cdo
from
package.utilities
import
Timer
,
write_grid_file
#, cdo_mergetime
from
package.utilities
import
Timer
,
write_grid_
des_
file
#, cdo_mergetime
from
namelist
import
domain
,
padding
from
functions
import
paste_dir_names
###############################################################################
...
...
@@ -142,7 +142,7 @@ if __name__ == '__main__':
'2D'
:[
'TQV'
],
'3D'
:[
'U'
,
'P'
,
'V'
],
'3D'
:[
'
T
'
],
'3D'
:[
'
W
'
],
#'3D':['U'],
#'3D':['V'],
#'3D':['U', 'V'],
...
...
@@ -165,8 +165,8 @@ if __name__ == '__main__':
var_names
=
var_namess
[
run_var_type
]
#ress = [7.5, 3.75]
#
ress = [7.5]
ress
=
[
3.75
]
ress
=
[
7.5
]
#
ress = [3.75]
i_bash_output
=
1
...
...
@@ -177,8 +177,8 @@ if __name__ == '__main__':
######################
## done U, V, P
first_date
=
datetime
(
2016
,
9
,
4
)
last_date
=
datetime
(
2016
,
9
,
5
)
first_date
=
datetime
(
2016
,
8
,
1
)
last_date
=
datetime
(
2016
,
8
,
9
)
## done U, V, P
#first_date = datetime(2016,8,11)
...
...
@@ -287,7 +287,7 @@ if __name__ == '__main__':
# target grid on which to interpolate the model output
target_grid
=
os
.
path
.
join
(
'grids'
,
'latlon_{}km_dom_{}'
.
format
(
res
,
domain
[
'code'
]))
write_grid_file
(
box
,
target_grid
,
res
)
write_grid_
des_
file
(
box
,
target_grid
,
res
)
# find times and files that should be extracted
# and prepare arguments for function
...
...
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