@@ -56,6 +56,7 @@ def __init__(
56
56
product = config ["timerange" ].get ("product" ),
57
57
domain = config ["timerange" ].get ("domain" ),
58
58
bands = None ,
59
+ channel = None ,
59
60
):
60
61
"""Initialize a GOES object for a desired satellite and product.
61
62
@@ -76,14 +77,27 @@ def __init__(
76
77
- M = Mesoscale sector (both)
77
78
- M1 = Mesoscale sector 1
78
79
- M2 = Mesoscale sector 2
79
- band : None, int, or list
80
+ bands : None, int, or list
80
81
Specify the ABI channels to retrieve. *Only used if the
81
82
product requested has unique bands.*
83
+ For example, ``bands=2`` for channel 2 or ``bands=[1,2,3]``
84
+ for channels 1, 2 and 3.
85
+ channel : None, int, or list
86
+ Alias for "bands" argument. If channel is not None, then
87
+ "bands" is not use.
88
+
89
+ Note: I don't like the name of "bands", but the NetCDF file
90
+ uses the term "band" instead of "channel" in reference to
91
+ the ABI products, so I'll stick with "band" for now.
82
92
"""
83
93
self .satellite = satellite
84
94
self .product = product
85
95
self .domain = domain
86
- self .bands = bands
96
+
97
+ if channel is not None :
98
+ self .bands = channel
99
+ else :
100
+ self .bands = bands
87
101
88
102
if self .product .startswith ("ABI" ) and self .product in _product :
89
103
# Sometimes the user might inavertantly give the domain
@@ -161,7 +175,11 @@ def __repr__(self):
161
175
def latest (self , ** kwargs ):
162
176
"""Get the latest available GOES data."""
163
177
return goes_latest (
164
- satellite = self .satellite , product = self .product , domain = self .domain , ** kwargs
178
+ satellite = self .satellite ,
179
+ product = self .product ,
180
+ domain = self .domain ,
181
+ bands = self .bands ,
182
+ ** kwargs ,
165
183
)
166
184
167
185
def nearesttime (
0 commit comments