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 #80409 is a reply to message #80408] Mon, 04 June 2012 15:50 Go to previous messageGo to previous message
Matt[2] is currently offline  Matt[2]
Messages: 69
Registered: March 2007
Member
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...
[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 09:34:18 PDT 2025

Total time taken to generate the page: 0.15994 seconds