Hi,
I am looking for a quick way to determine the resolution difference between two bands of ADDE data before pulling data with a size keyword. I thought that perhaps I could get that Area Directory information by using the AreaDirectoryList class methods on the result of
results=listADDEImages(band=visBand,**listParms)
but I cannot use those methods. Is there a way to do this?
Joleen
AreaDirectoryList - quick way to get resolution of data
Re: AreaDirectoryList - quick way to get resolution of data
Hi Joleen -
Are you able to make use of the 'center-latitude-resolution' key returned from listADDEImages?
- Bob
Are you able to make use of the 'center-latitude-resolution' key returned from listADDEImages?
Code: Select all
parms = dict(
server = 'eastl.ssec.wisc.edu',
dataset = 'EASTL',
descriptor = 'CONUS',
position = -1,
)
b1_list = listADDEImages(band=1, **parms)
b4_list = listADDEImages(band=4, **parms)
b1_res = b1_list[0]['center-latitude-resolution']
b4_res = b4_list[0]['center-latitude-resolution']
res_dif = b4_res - b1_res
print 'Band 1 resolution: '+str(b1_res)
print 'Band 4 resolution: '+str(b4_res)
print 'Band resolution difference: '+str(res_dif)
- Bob
Re: AreaDirectoryList - quick way to get resolution of data
Yes that is what I need.
Joleen
Joleen