Reading xarray goes16 data directly from S3 without downloading into the system. the issue is that I cannot concatenate S3Files. I am recalling 24 files from S3 and want to read and extract the data for these files for the time range:
This is the code:
import datetime as dt
import xarray as xr
import fsspec
import s3fs
fs = fsspec.filesystem('s3', anon=True)
urls1=[]
for i in range (2):
urls = [
's3://' + f
for f in fs.glob(f"s3://noaa-goes16/ABI-L2ACMC/2022/001/{i:02}/*.nc")
]
urls1 = urls1+ urls
with fs.open(urls1[0]) as fileObj:
ds = xr.open_dataset(fileObj, engine='h5netcdf')
however, i run into the issue I/O operation on closed file
.