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

Home » Public Forums » archive » ENVI_DOIT, 'MNF_DOIT' from previous noise statistics?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
ENVI_DOIT, 'MNF_DOIT' from previous noise statistics? [message #93363] Sun, 26 June 2016 16:39
mat.g.allan is currently offline  mat.g.allan
Messages: 2
Registered: June 2016
Junior Member
Hi Guys,

I'm trying to to a forward mnf from previous noise statistics within IDL.

See the code below. The resulting image is not right, as in I do not get the same result as when I do it through the GUI using the previous noise statistics option. If you know how to do it with the new ENVI api that would we great too.

pro pca

ENVI, /RESTORE_BASE_SAVE_FILES
ENVI_BATCH_INIT, LOG_FILE='batch.txt'


flist=FILE_SEARCH('*image.img', COUNT=count)

FOR h=0, count-1 Do Begin


envi_open_file, flist[h], r_fid=fid
ENVI_FILE_QUERY,fid, dims=dims, nb=nb
pos = lindgen(nb)

out_name='idlmnf1.img'

ENVI_DOIT, 'ENVI_STATS_DOIT', $
FID = fid, POS = pos, DIMS = dims, $
MEAN = avg, EVAL = eval, EVEC = evec, $
COMP_FLAG = 5

; this is how PCA does it

;;
;ENVI_DOIT, 'PC_ROTATE', $
; FID = fid, POS = pos, DIMS = dims, $
; MEAN = avg, EVAL = eval, EVEC = evec, $
; OUT_DT = 4, OUT_NAME = out_name, $
; OUT_NB = nb, R_FID = r_fid, $
; /FORWARD, /NO_PLOT

nsta='nsta'
sta='stamnfidltest'

; I don't think I have done this right here, but the code runs

ENVI_DOIT, 'MNF_DOIT', DIMS=dims, FID=fid, NOISE_EVAL=eval, $
NOISE_EVEC=evec, $
NOISE_STA_NAME=nsta, OUT_NAME=out_name, POS=pos, $
R_FID=rfid, STA_NAME=sta, in_memory=0, shift_diff=0, sd_dims=dims



endfor

end
[Message index]
 
Read Message
Previous Topic: Re: satellite field of view pole projection
Next Topic: How reload (re-import) a modified Python module through the IDL to Python bridge ?

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

Current Time: Wed Oct 08 13:58:39 PDT 2025

Total time taken to generate the page: 0.00226 seconds