Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
sec23
korte
pymagglobal
Commits
84364631
Commit
84364631
authored
May 14, 2021
by
Maximilian Schanner
Browse files
Pass type to field.
parent
eb1936ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
pymagglobal/_commands.py
View file @
84364631
...
...
@@ -390,10 +390,7 @@ def maps(args):
# BUGFIX: white edges in cartopy
z_at
[
1
]
-=
180
# use the core function to get the field
field
=
core
.
field
(
z_at
,
args
.
model
)
# convert the field if necessary
if
args
.
type
==
'dif'
:
field
=
np
.
array
(
utils
.
nez2dif
(
*
field
))
field
=
core
.
field
(
z_at
,
args
.
model
,
field_type
=
args
.
type
)
# output formats for dif and nez components
fmts
=
{
'dif'
:
(
'%.1f'
,
'%.1f'
,
'%2.6f'
,
'%2.6f'
,
'%1.7e'
),
'nez'
:
(
'%.1f'
,
'%.1f'
,
'%1.7e'
,
'%1.7e'
,
'%1.7e'
)}
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment