Plotting archived satellite data in MetPy #3159
-
All, I see plenty of MetPy examples for plotting current GOES satellite imagery or even GOES imagery from a THREDDS server, but I am having trouble plotting older satellite imagery. I have a GOES-13 file from SSEC's GOES Online Geostationary Archive. I can open it as an xarray dataset with Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
To be clear, there's not a really a MetPy question here. This is "just" plotting a netCDF grid, opened using xarray, using Matplotlib + Cartopy: import cartopy.crs as ccrs
import cartopy.feature as cfeature
import matplotlib.pyplot as plt
import xarray as xr
fig = plt.figure(figsize=(10, 10))
ax = fig.add_subplot(projection=ccrs.PlateCarree())
ch4 = xr.open_dataset('/Users/rmay/Downloads/GOES13_d20110714_t200150_b04')
ax.pcolormesh(ch4.lon, ch4.lat, ch4.data[0], cmap='Greys_r')
ax.add_feature(cfeature.COASTLINE)
ax.add_feature(cfeature.BORDERS)
ax.set_extent((-130, -50, 20, 55)) gives: Note that I had to use |
Beta Was this translation helpful? Give feedback.
To be clear, there's not a really a MetPy question here. This is "just" plotting a netCDF grid, opened using xarray, using Matplotlib + Cartopy:
gives:
Note that I had to use
pcolormesh
here becauseimshow()
only takes an image bounding box, and we'd…