addeParms and mag factor

Post any questions, ideas, or topics related to Jython and Python scripting.
Post Reply
User avatar
TJS
Posts: 90
Joined: Thu Mar 05, 2009 7:31 pm

addeParms and mag factor

Post by TJS »

Hi,

I wonder if the nature of the mag values in addeParms is reversed?

I've made three images: mag=(1,1) and (2,1) and (1,2).

I would think the second would duplicate lines and leave elements alone (to 'square up' a GOES imager image without losing information).

But, it seems to duplicate elements instead! See below for the base script, where the mag values changed between the runs.
(Note you may need to change the user name to be able to run the script)

Thanks,
TJS

# simple script to show GOES-14 imagery over WI 25th

addeParms = dict(
server = 'geoarc.ssec.wisc.edu',
dataset = 'AGOES14',
descriptor = 'OTHER',
accounting = ('WHO', '????'),
size=(1388,2428),
mag=(1,1),
coordinateSystem=LATLON,
place=CENTER,
location=(39, -93),
time=('14:15:00', '14:15:00'),
day=('2013238'),
unit='BRIT',
)

metaDataVIS, visDATA = getADDEImage(band=1,**addeParms)
panel = buildWindow(height=900,width=1000)
layerVIS = panel[0].createLayer('Image Display', visDATA)
print type(layerVIS), layerVIS
print see(layerVIS,'.set*')

for key,value in metaDataVIS.iteritems():
print 'metaDataVIS["'+key+'"]='+str(value)

# center and zoom
panel[0].setCenter(45.0,-89.0,scale=4)

# put date on image
myannotelayer=panel[0].annotate(metaDataVIS["start-time"].toGMTString(),lat=44,lon=-91,size=20,color='Red')
myannotelayer=panel[0].annotate('MAG= 1 1 ',line=50,element=150,size=20,color='Red')

# save the image
panel[0].captureImage('c:/Users/tims/agoes14_other_vis_zoom4_WI_26th_mag_1_1.png')
Attachments
mag of 1,2
mag of 1,2
mag of 2,1
mag of 2,1
mag of 1,1
mag of 1,1
User avatar
Rick
Posts: 404
Joined: Fri Jan 16, 2009 8:20 pm

Re: addeParms and mag factor

Post by Rick »

Thanks Tim,

I agree with what you say and have written up inquiry 1561 to resolve the issue.

http://mcidas.ssec.wisc.edu/inquiry-v/?inquiry=1561
Post Reply