comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Semi-transparent filled contours with direct graphics
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Semi-transparent filled contours with direct graphics [message #90387] Fri, 27 February 2015 11:44 Go to next message
geogal34 is currently offline  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 #90389 is a reply to message #90387] Fri, 27 February 2015 11:52 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
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 #90391 is a reply to message #90389] Fri, 27 February 2015 12:06 Go to previous messageGo to next message
geogal34 is currently offline  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 Go to previous messageGo to next message
David Fanning is currently offline  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 Go to previous messageGo to next message
geogal34 is currently offline  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.")
Re: Semi-transparent filled contours with direct graphics [message #90479 is a reply to message #90478] Wed, 04 March 2015 11:04 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
geogal34 writes:

> 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!

Whohoo!

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.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: EPS output from functional graphic 'LARGE' size
Next Topic: VOMITEVOLE PEZZO DI MERDA PIER LUIGI BOSCHI DI BANCA ETRURIA ED AREZZO (OLTRE CHE MEGALAVA CASH MAFIOSO) SU INPUT DI VERMI BERLUSCORROTTI MARIA ELENA BOSCHI E MATTEO RENZI HA PASSATO INSIDER SU BANCHE POPOLARI A NAZIPORCO DAVIDE SERRA DI ALGEBRIS E..

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:07:02 PDT 2025

Total time taken to generate the page: 0.00387 seconds