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

Home » Public Forums » archive » Re: avhrr data extraction
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: avhrr data extraction [message #80408] Mon, 04 June 2012 16:31 Go to previous message
anil is currently offline  anil
Messages: 34
Registered: August 2009
Member
On Jun 5, 1:50 am, Matt <sav...@nsidc.org> wrote:
> On Monday, June 4, 2012 2:02:56 PM UTC-6, anil wrote:
>> On Jun 4, 5:33 pm, Matt <sav...@nsidc.org> wrote:
>>> Hi Anil,
>
>>> I think what you want is to just grab the SST data
>>> bsloni=loni[4715:5057]
>>> bslati=lati[1006:1142]
>>> bsst = sst[4715:5057, 1006:1142]
>
>>> That looks like Australia to me.  That what you were expecting?
>
> Well, I didn't look hard, and I wasn't sure the projection, and I apparently don't know Black Sea from Australia.
>
> In any event, this is how you access the data you are interested in.   If you want to output to a text file, you'll have to loop over the data
>
> for lon_idx = 0, n_elements( bsloni ) - 1 do begin
>    for lat_idx = 0, n_elements( bslati ) - 1 do begin
>
>       print,  bsloni[ lon_idx ],  bslati[ lat_idx ],  bsst[ lon_idx,  lat_idx ]
>
>    endfor
> endfor
>
> I think that should be what you're looking for.  (check the documentation for formatting and writing to files.)
>
>
>
>
>
>
>
>> write this to another file. lets say 'abc.txt' . For which I want to
>> end up with:
>> lon1 lat1 sst1
>> lon2 lat2 sst2 and so on...

Exactly the answer I was looking for. Thanks a lot.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Method Overrides
Next Topic: Re: Texture Map problems when using IDLgrPolygon

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

Current Time: Fri Oct 10 15:36:26 PDT 2025

Total time taken to generate the page: 0.88234 seconds