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

Home » Public Forums » archive » Spatial and temporal image correlation
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Spatial and temporal image correlation [message #85543] Thu, 15 August 2013 09:19 Go to previous message
Cornelio Zolin is currently offline  Cornelio Zolin
Messages: 5
Registered: August 2013
Junior Member
Dear all,
Hi all,
I have just started using IDL and I’m having hard times even with simple tasks. I’m trying to do the following task:

I have 12 folders (2001, 2002 ….2012) and in each folder I have 35 files .dat of anomalies (7 months NDVI, 7 months Surface temperature and so on) and I would like to do a correlation (pixel by pixel) for each index in each month for each year.

After that I want to make one plot per year: each index in a different column and each row representing a different month.

I started writing the code bellow, but I’m confused now. I think the next step would be REFORM the images, so for each image I will have a vector that I could use to do the correlation.
Is there anyone that could help me on that?

Thanks a lot,


PRO ImgCorr,
CD, 'C:\Anomalies\year'
theseFiles = FindFile('*.dat', Count=numFiles)
Print, 'Number of files found: ', numFiles
FOR j=0,numFiles-1 DO BEGIN
OpenR, lun, theseFiles(j), /Get_Lun
File = fltarr(620, 500)
ReadU, lun, File
JustNumbers= where(File eq -9999, count)
File[JustNumbers]=!VALUES.F_NAN
*
*
*
*
Free_Lun, lun
ENDFOR
END
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL routines for Rayleigh optical depth/US Standard Atmospheres?
Next Topic: Map issue wth IDL8 new graphics: conformal or equal-area maps in rectangular shape

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

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

Total time taken to generate the page: 0.00571 seconds