Hi,
I am trying to clip an image with the parameters associated with writeImage. It seems that in the isl, there is a way to clip the image using the display id. I have tried to get the display attribute using the commands:
local_area=("/Users/joleenf/mcidas/data/AREA0100")
a=load(local_area)
dc=createDisplay('imagedisplay',a)
displayid=dc.getDisplayid() #now displayid is just 'imagedisplay'
then
writeImage("/Users/joleenf/mcidas/images/test_image.jpg",\
"clip display="+displayid+";\
matte background=white top=60;colorbar width=300 height=20 anchor=UM,0,20 showlines=true;\
overlay text="+label+" place=LM,0,-20 anchor=LM color=white fontsize=20 fontface=Arial")
This is the error
java.lang.IllegalArgumentException: java.lang.IllegalArgumentException: Could not find display:<image file="/Users/joleenf/mcidas/images/test_image2.jpg" quality="1.0">
<clip display="imagedisplay"/>
<matte background="white" top="60"/>
<colorbar anchor="UM" height="20" place="UM,0,20" showlines="true" width="300"/>
<overlay anchor="LM" color="white" fontface="Arial" fontsize="20" place="LM,0,-20" text="GOES-13 (3.9 um Temperature) 2010-06-30 16:15 UTC"/>
</image>
Is there a better way to clip the image?
Joleen
clipping an image with write image
Re: clipping an image with write image
Joleen,
I think createDisplay generates the IDV control, eg. plan view control, not the
Display in which everything is rendered - that's what you need for the clip and
capture. Try using the VMManager accessing methods which you attempted in the
ohter script referenced in this post.
Tom
I think createDisplay generates the IDV control, eg. plan view control, not the
Display in which everything is rendered - that's what you need for the clip and
capture. Try using the VMManager accessing methods which you attempted in the
ohter script referenced in this post.
Tom