Overlaying continent outlines over cgimage? [message #83467] |
Mon, 04 March 2013 15:30 |
Lisa08
Messages: 4 Registered: February 2013
|
Junior Member |
|
|
Hi everyone,
I am pretty new to mapping in IDL and have not been able to plot continent outlines (or a transparent image of the continents) over an image of data. It always gets overwritten. I have a mask of cloud data of size:
cloud_mask=Byte[3000,1800]
where the values of the variable are 0 and 1 (0=no cloud , 1=cloud was detected).
I want to plot this mask of data and then overlay continent outlines over it. So far, what I have tried to plot the variable is:
cgimage, cloud_mask ;which plots the image of data
Then, I thought I could use something like this to plot continents over it:
cgMap_Set, /Mercator
cgMap_Continents, /Coasts, Color='white'
However, since the cgimage command has an overplot keyword I tried to do it backwards (plot the continents first and then overlay the cloud_mask data over it) but it always gets overwritten.
Is this possible or is there something better than cgimage to try to do what I want? Any suggestions on how I can try to do this?
Any help would be greatly appreciated!
Thanks.
|
|
|