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

Home » Public Forums » archive » Overlay Point Sources on Maps
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
Overlay Point Sources on Maps [message #51456] Sat, 25 November 2006 09:49 Go to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Folks,

I have been asked several times lately how to overlay point
sources on map projections. I have written an article that
explains how I would do it. You can find it here

http://www.dfanning.com/map_tips/ptsource.html

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: Overlay Point Sources on Maps [message #51568 is a reply to message #51456] Mon, 27 November 2006 17:14 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
zhangxiangkun@gmail.com writes:

> I am also concerned with this problem. Thanks for your solution.
> But I cannot get the ptsource_carbon.sav. The link is
> ftp://www.dfanning.com/map_tips/ptsource_carbon.sav.
> Is it right?

Hang on. Perhaps it is the FTP thing that is not working.
I've changed the link to HTTP in the article. That seems
to work better

http://www.dfanning.com/map_tips/ptsource_carbon.sav

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: Overlay Point Sources on Maps [message #51570 is a reply to message #51456] Mon, 27 November 2006 16:58 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
zhangxiangkun@gmail.com writes:

> I am also concerned with this problem. Thanks for your solution.
> But I cannot get the ptsource_carbon.sav. The link is
> ftp://www.dfanning.com/map_tips/ptsource_carbon.sav.
> Is it right?

Yes, I just tried the link directly from your note. Works
correctly for me. Are you trying to "save as" into a local
IDL directory?

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: Overlay Point Sources on Maps [message #51571 is a reply to message #51456] Mon, 27 November 2006 16:32 Go to previous messageGo to next message
zhangxiangkun is currently offline  zhangxiangkun
Messages: 1
Registered: November 2006
Junior Member
Hi, David
I am also concerned with this problem. Thanks for your solution.
But I cannot get the ptsource_carbon.sav. The link is
ftp://www.dfanning.com/map_tips/ptsource_carbon.sav.
Is it right?


Xiangkun
Re: Overlay Point Sources on Maps [message #51683 is a reply to message #51456] Tue, 28 November 2006 11:45 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
greg michael writes:

> I spent a while messing around with griddata() before I realised you
> could do this:
>
> restore,"ptsource_carbon.sav"
> device,decomposed=0
> loadct,39
> grid=fltarr(360,180)
> grid[lon+180,lat+90]=soilc
> tvscl, grid
>
> This particular dataset is simpler than I first thought - the points
> are already gridded at 1x1 degree. The odd thing is that many points
> are repeated (up to 8 times). The values, though, seem to be the same
> in these cases. In general I think a gridding approach is more robust
> for this type of problem.

Humm. Guess I should have realized this is possible, too.
It makes using the land mask a bit different.

Well, there are often several ways to skin this cat.

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: Overlay Point Sources on Maps [message #51685 is a reply to message #51456] Tue, 28 November 2006 11:37 Go to previous message
greg michael is currently offline  greg michael
Messages: 163
Registered: January 2006
Senior Member
I spent a while messing around with griddata() before I realised you
could do this:

restore,"ptsource_carbon.sav"
device,decomposed=0
loadct,39
grid=fltarr(360,180)
grid[lon+180,lat+90]=soilc
tvscl, grid

This particular dataset is simpler than I first thought - the points
are already gridded at 1x1 degree. The odd thing is that many points
are repeated (up to 8 times). The values, though, seem to be the same
in these cases. In general I think a gridding approach is more robust
for this type of problem.

regards,
Greg
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: natural neighbor interpolation
Next Topic: Re: What? You can't histogram a string array?

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

Current Time: Wed Oct 08 15:17:56 PDT 2025

Total time taken to generate the page: 0.00414 seconds