-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault_options.yaml
153 lines (140 loc) · 5.58 KB
/
default_options.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
# This is the file containing default values for all options you can specify for the plotting
# script at runtime via YAML input.
# Details about the specific sections (groups of variables for a particular purpose) and
# individual variables can be found in the comments above each specific section/variable below.
#
# Some sections also include subsections with further settings related to a particular part of
# the plotting script; these are differentiated by the indentation level.
#
# Some variables must be specified in the plot_options.yaml file (the default values are invalid);
# these variables are labeled "(mandatory)".
# This section is for variables related to the specific data you want to plot
data:
#
# filename (mandatory):
# Full or relative path to filename containing MPAS data you wish to plot. Can be a single file,
# a glob-able regex pattern match (e.g. /path/to/nc/data/*.nc), or a list of files
#
# gridfile:
# Some MPAS files (usually "diag" files) do not contain grid information; in these cases you
# must specify a "gridfile" that contains the grid information for the script to read
# NOTE: Since only one gridfile can be specified, it is not possible to mix-and-match gridded
# and gridless files
#
# var:
# Variable name to plot. Can be a list of variable names, or the string "all" (default).
#
# lev: Variable level to plot (for variables with multiple vertical levels). Can be a list of
# level numbers, or the string "all". Default is level 1.
# Note that for 'var' and 'lev', unless you are specifying "all", you must provide a list of
# values, even if there is just one item in that list. Some specific examples of how to specify
# various combinations of variable and levels are provided below.
# To plot all variables at the 9th vertical level, use the following settings:
# var: all
# lev:
# - 9
# To plot the variables qv and rho at all levels, use the following settings:
# var:
# - qv
# - rho
# lev: all
# To plot the variable t2m at levels 1 through 6, use the following settings:
# var:
# - t2m
# lev:
# - 1
# - 2
# - 3
# - 4
# - 5
# - 6
filename: ''
gridfile: ''
var: all
lev:
- 1
# This section is for variables related to how the plot(s) is/are created.
plot:
# filename:
# The filename of the output plot(s).
#
# title:
# The title of the output plot(s) that will appear in the image above the plotted data. To create
# a plot with no title, set this to a blank string.
#
# latrange:
# Range of latitudes to plot. Should be a 2-element list, with the first entry being less than the second
#
# lonrange:
# Range of longitudes to plot. Should be a 2-element list, with the first entry being less than the second
#
# periodic_bdy:
# For periodic domains (including global), the plot routines will ignore the periodic boundary by default.
# To plot all data, including boundaries, set this option, but it will slow down plotting substantially.
#
# colormap:
# Colormap for output from Matplotlib. Reference documentation for valid options:
# https://matplotlib.org/stable/gallery/color/colormap_reference.html
#
# dpi:
# Image dots per inch
#
# figheight:
# Image height in inches
#
# figwidth:
# Image width in inches
#
# vmin, vmax:
# By default the color range will be scaled to the max/min values of the plotted data. To use a custom range,
# set vmin and/or vmax
# NOTE: for text fields such as filename, title, etc., some helpful variables are provided that
# you can reference in the text string that will be substituted in the final output:
# {var} = Variable name
# {lev} = Variable level
# {varln} = Variable "long name" (not recommended for filenames since these often contain spaces)
# {units} = Variable units
# {filename} = Name of file being read for plotted data
# {fnme} = Name of file (minus extension) being read for plotted data
# {date} = The date of plotted data, in %Y-%m-%d format
# {time} = The time of plotted data, in %H:%M:%S format
filename: '{var}_{lev}.png'
title: 'Plot of {varln}, level {lev} for MPAS forecast, {date} {time}'
latrange:
- -90
- 90
lonrange:
- -180
- 180
colormap: "viridis"
dpi: 300
figheight: 4
figwidth: 8
periodic_bdy: False
vmin: null
vmax: null
# Settings for plotting political boundaries. To disable political boundaries, specify "boundaries:" with no options
boundaries:
# Level of political boundaries to plot. Level 0 is national boundaries, Level 1 is sub-national boundaries (e.g.
# states, provinces, etc.), Level 2 is county boundaries (US only); counties require 10m scale
detail: 0
# Scale is the resolution of the plotted boundary dataset. Options are 110m, 50m, and 10m.
scale: 50m
# Settings for plotting coastlines. To disable coastlines, specify "coastlines:" with no options
coastlines:
# Scale is the resolution of the plotted boundary dataset. Options are 110m, 50m, and 10m.
scale: '10m'
# Most standard Matplotlib arguments for shapes will work here, but I haven't figured out good documentation on which.
# The ones listed here work, but likely a lot more customization can happen here.
color: 'black'
facecolor: 'none'
linewidth: 0.5
# Settings for the plot's color bar
colorbar:
# orientation:
# The orientation of the color bar. Valid values are "horizontal" or "vertical"
#
# label:
# Text to tabel colorbar; can use variables described at start of "plot:" section
orientation: vertical
label: 'Units: {units}'