Semi-transparent filled contours with direct graphics [message #90387] |
Fri, 27 February 2015 11:44  |
geogal34
Messages: 6 Registered: August 2010
|
Junior Member |
|
|
I have two HDF5 files of satellite data from different sensors. There's no trouble reading them in and mapping them separately, but I'd like to create a composite image with one as a semi-transparent layer. I've tried displaying the maps using MAP and CONTOUR and some of the cgimage/cgmap_set commands, but the images seem to only display properly using MAP_SET and TVSCL. I can easily draw contours (contour procedure) over the base image (visible imagery), but can't figure out a way to make the contours fill with any level of transparency. I know the CONTOUR function has transparency, but I haven't had luck displaying the base imagery properly so direct graphics seems to be the best option at the moment. I've done a lot of searching online and have still come up with nothing. Has anyone had any luck doing something like this with direct graphics?
Thanks!
Emily
|
|
|
|
Re: Semi-transparent filled contours with direct graphics [message #90391 is a reply to message #90389] |
Fri, 27 February 2015 12:06   |
geogal34
Messages: 6 Registered: August 2010
|
Junior Member |
|
|
I've tried that, but I end up with things not being lined up and only part of the image. The images aren't the same size either. I've only had success getting the base image to display properly using map_patch and tvscl. I've been trying for 2 weeks.
On Friday, February 27, 2015 at 2:52:42 PM UTC-5, David Fanning wrote:
> geogal34 writes:
>
>> I have two HDF5 files of satellite data from different sensors. There's no trouble reading them in and mapping them separately, but I'd like to create a composite image with one as a semi-transparent layer. I've tried displaying the maps using MAP and CONTOUR and some of the cgimage/cgmap_set commands, but the images seem to only display properly using MAP_SET and TVSCL. I can easily draw contours (contour procedure) over the base image (visible imagery), but can't
> figure out a way to make the contours fill with any level of transparency. I know the CONTOUR function has transparency, but I haven't had luck displaying the base imagery properly so direct graphics seems to be the best option at the moment. I've done a lot of searching online and have still come up with nothing. Has anyone had any luck doing something like this with direct graphics?
>>
>
> I do this kind of thing all the time:
>
> http://www.idlcoyote.com/color_tips/color_overlay.php
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
> Sepore ma de ni thue. ("Perhaps thou speakest truth.")
|
|
|
Re: Semi-transparent filled contours with direct graphics [message #90392 is a reply to message #90391] |
Fri, 27 February 2015 12:10   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
geogal34 writes:
> I've tried that, but I end up with things not being lined up and only part of the image. The images aren't the same size either. I've only had success getting the base image to display properly using map_patch and tvscl. I've been trying for 2 weeks.
Well, there you go, then. Too hard. I do note that cgImage has code
built into it to make it easy to overlap images, contours, maps, etc. It
has always worked for me. :-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
|
|
|
Re: Semi-transparent filled contours with direct graphics [message #90478 is a reply to message #90392] |
Wed, 04 March 2015 10:59   |
geogal34
Messages: 6 Registered: August 2010
|
Junior Member |
|
|
Ok, I got it working earlier this week. I had myself so turned around trying too many different things. The weekend off and starting from scratch Monday got the problem solved rather quickly!
On Friday, February 27, 2015 at 3:10:42 PM UTC-5, David Fanning wrote:
> geogal34 writes:
>
>> I've tried that, but I end up with things not being lined up and only part of the image. The images aren't the same size either. I've only had success getting the base image to display properly using map_patch and tvscl. I've been trying for 2 weeks.
>
> Well, there you go, then. Too hard. I do note that cgImage has code
> built into it to make it easy to overlap images, contours, maps, etc. It
> has always worked for me. :-)
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
> Sepore ma de ni thue. ("Perhaps thou speakest truth.")
|
|
|
|