AreaDirectoryList - quick way to get resolution of data

Post any questions, ideas, or topics related to Jython and Python scripting.
Post Reply
User avatar
joleenf
Posts: 1123
Joined: Mon Jan 19, 2009 7:16 pm

AreaDirectoryList - quick way to get resolution of data

Post by joleenf »

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
User avatar
bobc
Posts: 990
Joined: Mon Nov 15, 2010 5:57 pm

Re: AreaDirectoryList - quick way to get resolution of data

Post by bobc »

Hi Joleen -

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
User avatar
joleenf
Posts: 1123
Joined: Mon Jan 19, 2009 7:16 pm

Re: AreaDirectoryList - quick way to get resolution of data

Post by joleenf »

Yes that is what I need.

Joleen
Post Reply