EIT Software Listings

 

anal
obsolete
response
util

 

Previous Routine
Next Routine

 

Listing of $SSW/soho/eit/idl/response/eit_despeckle.pro

 


function eit_despeckle, img

;NAME
;   eit_despeckle
;PURPOSE 
;   a simple despecklimg routine
;INPUTS
;   img - image to despeckle
;OUTPUTS
;   returns the despeckled image
;KEYWORDS
;   none
;PROCEDURE
;   median filter with threshold
;CREATION
;   18-May-2001. F. Auchere
;MODIFICATIONS
;
;-

  med = median(img, 9)
  bad = where((img - med)/img gt 0.1, count)
  if count eq 0 then return, img else begin
    filtered = img
    filtered[bad] = med[bad]
    return, filtered
  endelse

end





Web curator: Frédéric Auchère
Responsible NASA official: Joseph B. Gurman, Facility Scientist, Solar Data Analysis Center
joseph.b.gurman@gsfc.nasa.gov
+1 301 286-4767
NASA Goddard Space Flight Center
Solar Physics Branch / Code 682

Last revised: - Wed May 9 21:45:10 2007- F. Auchère