Is there a way to get the header dimensions from a netCDF file using loadGrid? I did not find any indication in the documentation that this was possible. I thought it would be possible to read in the full disk data of a ABI file and then use getDomainSizes() to extract the original shape of the data. However, I have found this can be taxing on memory. The goal is to allow one of my colleagues to set swath sizes based on width rather than specific start,end points so that he can display a series of swaths in one animation.
For now, I am using the following approach:
Code: Select all
filename='DR_ABI-L2-CMIPC-M3C01_G16_s20152322000151_e20152322002542_c20152322002596.nc'
stride=100
parms = dict(
field='CMI',
stride=stride
)
qd=loadGrid(filename, **parms)
shp= getDomainSizes(qd)
x=shp[0]*stride
y=shp[1]*stride
print x,y
Joleen