Skip to content

Commit 52ef046

Browse files
authored
Merge pull request #1743 from knutfrode/dev
[run-ex] reader.plot() and readerinfo now takes lscale as input argum…
2 parents 4cfbbbf + 2ba83c1 commit 52ef046

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

opendrift/scripts/readerinfo.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ def main():
4545
parser.add_argument('-vmin', dest='vmin',
4646
default=None, nargs='?',
4747
help='Minimum value for colorbar')
48+
parser.add_argument('-lscale', dest='lscale',
49+
default='auto', nargs='?',
50+
help='Scale of landmask: f, h, i, l, c or auto (default)')
4851
parser.add_argument('-vmax', dest='vmax',
4952
default=None, nargs='?',
5053
help='Maximum value for colorbar')
@@ -100,7 +103,7 @@ def main():
100103

101104
if args.variable != 'noplot':
102105
if args.variable is None:
103-
r.plot()
106+
r.plot(lscale=args.lscale)
104107
else:
105108
if args.vmin is None:
106109
vmin = None
@@ -111,7 +114,7 @@ def main():
111114
else:
112115
vmax = float(args.vmax)
113116

114-
r.plot(args.variable, vmin=vmin, vmax=vmax, time=time)
117+
r.plot(args.variable, vmin=vmin, vmax=vmax, time=time, lscale=args.lscale)
115118

116119
if __name__ == '__main__':
117120
main()

0 commit comments

Comments
 (0)