crism destripe
(3 intermediate revisions by one user not shown) | |||
Line 1: | Line 1: | ||
{{DavinciWiki_Function| | {{DavinciWiki_Function| | ||
Removes column and spike related noise from [[CRISM]] images | Removes column and spike related noise from [[CRISM]] images | ||
+ | |||
+ | As of version 1.09 this function has been completely replaced and works significantly better. | ||
| | | | ||
Inputs: short or long data arrays | Inputs: short or long data arrays | ||
Line 6: | Line 8: | ||
Outputs: a cleaned data array | Outputs: a cleaned data array | ||
| | | | ||
− | [[Syntax]]: crism_destripe(data [,r_size | + | [[Syntax]]: crism_destripe(data [,r_size=INT] [,f_size=INT] [,z_size=INT] [,sigmamult=FLOAT] [,ignore=FLOAT]) |
or | or | ||
− | crism_destripe(data | + | crism_destripe(data=VAL [,r_size=INT] [,f_size=INT] [,z_size=INT] [,sigmamult=FLOAT] [,ignore=FLOAT]) |
data - input I/F data from process crism (better if done after atm correction and resample) | data - input I/F data from process crism (better if done after atm correction and resample) | ||
− | r_size - | + | r_size - residual column noise filter size (default is 21) |
f_size - spike detection filter size (default is 3) | f_size - spike detection filter size (default is 3) | ||
+ | |||
+ | z_size - spectral filter size for replacement values (default is 9) | ||
sigmamult - number of standard deviations from the mean to look for spikes (default is 1) | sigmamult - number of standard deviations from the mean to look for spikes (default is 1) | ||
Line 30: | Line 34: | ||
id: ""HRS000035B5_07_IF174L_TRR2.IMG"" | id: ""HRS000035B5_07_IF174L_TRR2.IMG"" | ||
data: 320x225x438 array of float, bil format [126,144,000 bytes] | data: 320x225x438 array of float, bil format [126,144,000 bytes] | ||
− | dv> in | + | dv> in=in.long.data |
320x225x438 array of float, bil format [126,144,000 bytes] | 320x225x438 array of float, bil format [126,144,000 bytes] | ||
− | dv> in[where in>50] | + | dv> in[where in>50]=0 |
320x225x438 array of float, bil format [126,144,000 bytes] | 320x225x438 array of float, bil format [126,144,000 bytes] | ||
− | dv> display(sstretch(in[,,51],ignore | + | dv> display(sstretch(in[,,51],ignore=0)) |
Writing /tmp/dv_5615/yaJn2W: 320x225x1 PNG file. | Writing /tmp/dv_5615/yaJn2W: 320x225x1 PNG file. | ||
− | dv> out | + | dv> out=crism_destripe(in,ignore=0) |
320x225x438 array of float, bsq format [126,144,000 bytes] | 320x225x438 array of float, bsq format [126,144,000 bytes] | ||
− | dv> display(sstretch(out[,,51],ignore | + | dv> display(sstretch(out[,,51],ignore=0)) |
Writing /tmp/dv_5615/yaJn2W: 320x225x1 PNG file. | Writing /tmp/dv_5615/yaJn2W: 320x225x1 PNG file. | ||
| | | | ||
Line 55: | Line 59: | ||
*crism_science.dvrc | *crism_science.dvrc | ||
| | | | ||
− | 1. | + | 1.09 |
| | | | ||
}} | }} |
Latest revision as of 10:26, 7 October 2009
Contents: Description, Arguments, Usage, Examples, Images, Sub-Functions, Related Functions, Source Supported Under Version: > 1.09
Description Removes column and spike related noise from CRISM images As of version 1.09 this function has been completely replaced and works significantly better.
Arguments and Return Values Inputs: short or long data arrays Outputs: a cleaned data array
Usage Syntax: crism_destripe(data [,r_size=INT] [,f_size=INT] [,z_size=INT] [,sigmamult=FLOAT] [,ignore=FLOAT]) or crism_destripe(data=VAL [,r_size=INT] [,f_size=INT] [,z_size=INT] [,sigmamult=FLOAT] [,ignore=FLOAT]) data - input I/F data from process crism (better if done after atm correction and resample) r_size - residual column noise filter size (default is 21) f_size - spike detection filter size (default is 3) z_size - spectral filter size for replacement values (default is 9) sigmamult - number of standard deviations from the mean to look for spikes (default is 1) ignore - null value for the image (default is 0)
Examples dv>in struct, 1 elements long: struct, 5 elements anc: struct, 5 elements... wl_array: 320x1x438 array of float, bil format [560,640 bytes] at_array: 320x1x438 array of float, bil format [560,640 bytes] id: ""HRS000035B5_07_IF174L_TRR2.IMG"" data: 320x225x438 array of float, bil format [126,144,000 bytes] dv> in=in.long.data 320x225x438 array of float, bil format [126,144,000 bytes] dv> in[where in>50]=0 320x225x438 array of float, bil format [126,144,000 bytes] dv> display(sstretch(in[,,51],ignore=0)) Writing /tmp/dv_5615/yaJn2W: 320x225x1 PNG file. dv> out=crism_destripe(in,ignore=0) 320x225x438 array of float, bsq format [126,144,000 bytes] dv> display(sstretch(out[,,51],ignore=0)) Writing /tmp/dv_5615/yaJn2W: 320x225x1 PNG file.
|
DavinciWiki Mini-Nav Bar Contents
Contact Developers
All other topics
Major Sub-Functions
Related Functions
Recent Library Changes Created On: 03-30-2009 |