[ncl-talk] Bug :: Multiple workstation sizes -- new workstations change size of existing ones

Mary Haley haley at ucar.edu
Tue Jun 21 10:10:43 MDT 2016


Hi Rick,

Have you filed a JIRA ticket for this one by any chance, or looked into it?
I was able to reproduce the problem.  It seems like the ImageWorkstation is
behaving somewhat in an undefined fashion,

--Mary

---------- Forwarded message ----------
From: Alan Brammer <abrammer at albany.edu>
Date: Fri, Jun 17, 2016 at 2:35 PM
Subject: [ncl-talk] Bug :: Multiple workstation sizes -- new workstations
change size of existing ones
To: "ncl-talk at ucar.edu" <ncl-talk at ucar.edu>



Everyone loves bug reports on a friday afternoon right?


New workstations influence the size of existing workstations, meaning that
vpWidthF = 1, does not correspond to the correct workstation anymore.

example code:

wks_type = "png"
wks_type at wkWidth = 1000.
wks_type at wkHeight =1000.
wks = gsn_open_wks(wks_type,"multi_size_test")

mpres = True
mpres at gsnDraw= False
mpres at gsnFrame = False

map = gsn_csm_map(wks, mpres)

draw(map)
frame(wks)


;;; create new fake workstation, not attached to existing ones through
fake_wks = create "fake" imageWorkstationClass noparent
end create

draw(map)
frame(wks)


fake_wks = create "fake" imageWorkstationClass noparent
"wkWidth":2000
"wkHeight":2000
end create

draw(map)
frame(wks)

fake_wks = create "fake" imageWorkstationClass noparent
"wkWidth":1000
"wkHeight":1000
end create

draw(map)
frame(wks)



I’m using create for my fake wks as gsn_open_wks() attaches new
workstations to the same app_id or something and thus deleting the fake_wks
also breaks the old one.  Can’t find the ncl-talk archive now, that solved
that dilemma yesterday.

>From the attached images, you can see the png remains the same size, but
the map inside of the workstation changes.  The vpWidthF and vpHeightF will
remain constant though.
For my purposes the workaround is to make sure that any fake workstations I
create are the same size as real ones, but it’d be nice if workstations
were independent.





Alan.









_______________________________________________
ncl-talk mailing list
ncl-talk at ucar.edu
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160621/48be49d1/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: multi_size_test.000001.png
Type: image/png
Size: 14218 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160621/48be49d1/attachment.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: multi_size_test.000004.png
Type: image/png
Size: 14218 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160621/48be49d1/attachment-0001.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: multi_size_test.000003.png
Type: image/png
Size: 10698 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160621/48be49d1/attachment-0002.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: multi_size_test.000002.png
Type: image/png
Size: 11513 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160621/48be49d1/attachment-0003.png 


More information about the ncl-talk mailing list