Commit 84364631 authored by Maximilian Schanner's avatar Maximilian Schanner
Browse files

Pass type to field.

parent eb1936ae
......@@ -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')}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment