Extras: load netCDF files directly from HTTPS#
from netCDF4 import Dataset
try:
url = (
"https://noaa-goes16.s3.amazonaws.com/"
"ABI-L2-CMIPC/2019/027/00/"
"OR_ABI-L2-CMIPC-M3C01_G16_"
"s20190270002156_e20190270004529_c20190270004598.nc"
)
nc = Dataset(url)
except OSError as e:
print(e)
with Dataset(f"{url}#mode=bytes") as nc:
print(nc.summary)