Skip to content

Commit 3d3ec2e

Browse files
committed
Just have a single client for the GOES archives
1 parent d98faec commit 3d3ec2e

1 file changed

Lines changed: 3 additions & 15 deletions

File tree

src/metpy/remote/aws.py

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,9 @@ def _build_result(self, obj):
178178

179179

180180
@exporter.export
181-
class GOES16Archive(S3DataStore):
182-
def __init__(self, bucket_name='noaa-goes16'):
183-
super().__init__(bucket_name, delimiter='/')
181+
class GOESArchive(S3DataStore):
182+
def __init__(self, satellite):
183+
super().__init__(f'noaa-goes{satellite}', delimiter='/')
184184

185185
def product_ids(self):
186186
"""Return product_ids available."""
@@ -230,15 +230,3 @@ def get_product(self, product, dt, mode=None, channel=None):
230230

231231
def _build_result(self, obj):
232232
return Product(obj, lambda s: xr.open_dataset(s.url + '#mode=bytes', engine='netcdf4'))
233-
234-
235-
@exporter.export
236-
class GOES17Archive(GOES16Archive):
237-
def __init__(self):
238-
super().__init__('noaa-goes17')
239-
240-
241-
@exporter.export
242-
class GOES18Archive(GOES16Archive):
243-
def __init__(self):
244-
super().__init__('noaa-goes18')

0 commit comments

Comments
 (0)