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

Home » Public Forums » archive » Re: Indices ?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Indices ? [message #41918 is a reply to message #41917] Wed, 01 December 2004 09:06 Go to previous messageGo to previous message
George N. White III is currently offline  George N. White III
Messages: 56
Registered: September 2000
Member
On Wed, 1 Dec 2004, Pepe wrote:

> On this very newsgroup Matt McCabe once wrote: " I always get nervous
> posting to this site for fear of asking a particularly stupid
> question....well, here goes."
>
> Well, let me say that I feel the very same way...
>
> I have the following situation:
> a = fltarr(x, y) ;say satellite sea surface temperature data
> b = fltarr(x) ;say the longitude points of the grid
> c = fltarr(y) ;say the latitude points of the grid
>
> data_valid = where(a GT 0.0) ;search for the valid sst values

On a cold Canadian December day it would be nice to thnk that somewhere
in the world you can assume SST>0.

> I need to know the longitude "b(lon_valid)" and latitude
> "c(lat_valid)" points of the valid sst values "a(data_valid)".
> How can I get to them ?

David gave one approach. I sometimes find it helpful, e.g,
to apply criteria such as "lon > 0.5*lat", to create
arrays with all rows(lon)/columns(lat) the same:

lon=b#transpose(1+lonarr(y))
lat=(1+lonarr(x))#transpose(c)

--
George N. White III <aa056@chebucto.ns.ca>
Head of St. Margarets Bay, Nova Scotia, Canada
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: IDL and Intel's 64-bit Xeon processor
Next Topic: Re: Problems when printing ps plots from C

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

Current Time: Sat Oct 11 23:11:33 PDT 2025

Total time taken to generate the page: 0.00207 seconds