McIDAS User's Guide
Version 2014.1
[Search Manual] [Table of Contents] [Go to Previous] [Go to Next]
Applies filters to image data.
IMGFILT sdataset ddataset [keywords] "comment
IMGFILT sdataset1 sdataset2 ddataset [keywords] "comment
filter used to generate the destination image; see the Remarks for more details |
|||
|
MERGE |
brkpnt1 brkpnt2 constant |
|
|
SPOT |
omcon oacon imcon iacon cmin cmax DISt= TARget= |
|
IMGFILT generates a new image by applying a filter to data from a source image or images. The CLOUD, CORE, DIS and MERGE filters use two source datasets; all other filters use only one.
All filters are applied to each element of an image line. The CLEAN filter is also applied to each line in the image. The HIGH2 and LOW2 filters are applied to each element, but use surrounding lines and elements in their calculations.
The IMGFILT command automatically applies a contrast stretch to images after the filter process. The range of the stretch is specified with the SCALE keyword. Product values outside the range are set to zero. If no values are supplied, the minimum to maximum product values are stretched from 0 to 255. The tail percentages specified with the TAIL keyword clip the ddataset minimum and maximum data values before the stretch. Use this option to sharpen an image.
The ddataset has a generated product source type, PRD, and a 1-byte data calibration type, BRIT. Elements of the ddataset are in brightness units. The image file's calibration allows you display native product values by specifying the native units in the IMGPROBE command.
Use IMGOPER to perform arithmetic operations on individual image elements.
You can use IMGFILT to create a netCDF image file. To do so, the destination dataset must be NCDF-format and IMAGE-type. See the Remarks section in the DSSERVE command for more information.
Each option for the FILTER keyword is described below. Positional parameters and the equation used by the filter to generate the destination image are listed. Defaults for the filters are based on brightness (UNIT=BRIT).
This option cleans an image by first applying a shot noise filter to each element in the source image, and then locating and replacing bad lines. Each element is compared to the elements on either side and replaced if the values are significantly different. The average value of each line is then compared to the lines above and below and replaced if it is significantly different.
This option applies a cloud filter to an image by comparing each element to the elements of another image. Use this filter to mask off a portion of the first source image.
replacement value (default=minimum value in either sdataset) |
|
if (sdataset1 > sdataset2 + constant)
|
This option applies a core filter to two images by comparing elements to breakpoints. The resulting image has only two values.
This option applies a discriminate filter to two images by comparing elements in each image to different high and low breakpoints. Use this filter to mask off a portion of the first source image.
This option applies a gradient filter to the source image.
Equation for each ddataset element:
This option applies a one-dimensional high-pass filter to each element in the source image. It eliminates low-frequency deviations by clustering them around the distribution's midpoint. A sample average is determined using values on either side of the source element and the percentage of filter efficiency.
sample length surrounding the source element; used for sample average (default=50) |
|
Equation for each ddataset element:
ddataset = (sdataset - (sample average) + (sample midpoint))
This option applies a two-dimensional high-pass filter to each element in the source image. It eliminates low-frequency deviations by clustering them around the distribution's midpoint. A sample average is calculated by the program using values in a two-dimensional region around the source element.
Equation for each dataset element:
ddataset = (sdataset - (sample average) + (sample midpoint))
This option searches for missing data and fills the holes in the image using the average of the surrounding element values.
if (brkpnt1 < sdataset < brkpnt2)
|
This option applies a one-dimensional low-pass filter to each element of the source image. It eliminates high-frequency deviations by replacing the source image data values with the average of the values on either side of the source element. The sample average is determined using the percentage of filter efficiency.
sample length in pixels surrounding the source element; used for sample average (default=50) |
|
Equation for each ddataset element:
This option applies a two-dimensional low-pass filter to each element in the source image. It eliminates high-frequency deviations by replacing the source image data values with the average of the values in the sample defined with the line and element coefficients.
Equation for each ddataset element:
This option merges two images by selecting the sdataset1 value for each element if its value is between the specified breakpoints. Otherwise it selects the sdataset2 value minus the specified constant.
Positional parameters: |
|
brkpnt1 |
low end breakpoint value (default=minimum value in either sdataset) |
brkpnt2 |
high end breakpoint value (default=maximum value in either sdataset) |
constant |
subtractive constant (default=0) |
Equation for each ddataset element: |
|
|
if (brkpnt1 < sdataset1 < brkpnt2)
|
This option replaces selected elements in the defined region of the source image with the specified replacement value.
This option cleans an image by applying a shot noise filter to each element in the source image. Each element is compared to the elements on either side and replaced if the values are significantly different.
This option illuminates or darkens one or more spots on an image. The locations and sizes of the spots are determined by the TARGET and DIST keywords.
Positional parameters: |
|
omcon |
value by which to multiply elements located outside the spots defined by the TARGET and DIST keywords (default=0.0) |
oacon |
value to add to elements located outside the spots defined by the TARGET and DIST keywords (default=0.0) |
imcon |
value by which to multiply elements located inside the spots defined by the TARGET and DIST keywords (default=1.0) |
iacon |
value to add to elements located inside the spots defined by the TARGET and DIST keywords (default=0.0) |
cmin |
conditional minimum for values located inside the spots defined by the TARGET and DIST keywords; values less than cmin are treated as if they are outside the spots (default=no minimum) |
cmax |
conditional maximum for values located inside the spots defined by the TARGET and DIST keywords; values greater than cmax are treated as if they are outside the spots (default=no maximum) |
Equation for each ddataset element: |
|
|
if sdataset is located outside the spots defined by the TARGET and DIST keywords
|
Keywords valid only with the SPOT filter:
DISt= |
dist1[unit1] . . distN[unitN] |
radial distance(s) from the target(s); the distance value(s) determine the size of the spot(s); run CU LIST to list valid units (default=0[KM] for first value; last specified value for all subsequent values) |
|
TARget= |
tar1 . . tarN
|
||
|
|
lat lon |
latitude and longitude, e.g., 43:08:26 89:20:43 |
|
|
station |
station ID or ID number, e.g., MSN or 72645 |
|
|
'city,st,co' |
city, where st and co are the two-letter state and country codes for the city, e.g., 'MADISON,WI,US' or 'TORONTO,,CA' |
IMGFILT GOES7/VIS.1 LOCAL/AREA.1
This entry applies a contrast stretch to the brightness data in the image in position 1 of dataset GOES7/VIS. The resulting image is placed in position 1 of dataset LOCAL/AREA.
IMGFILT BLIZZARD/G7-IR-4K.2 BLIZZARD/CLEAN.2 FILTER=CLEAN STATION=DCA
This entry applies clean and shot noise filters and contrast stretch to the image in position 2 of dataset BLIZZARD/G7-IR-4K. The resulting image is placed in position 2 of dataset BLIZZARD/CLEAN. The destination image is 480 lines by 640 elements and centered over Washington, DC.
IMGFILT COMPOSITE/MOSAIC LOCAL/MOSAIC.1 FILTER=HOLE 0 1 LATLON=-90 0
This entry applies a hole filter to the most recent image in dataset COMPOSITE/MOSAIC. The resulting image is placed in position 1 of dataset LOCAL/MOSAIC. The filter averages elements that have brightness values between 0 and 1 (inclusive) to fill holes and gaps in the data. The destination image is 480 lines by 640 elements and centered over the South Pole.
IMGFILT A/A.8101 A/A.4000 FILTER=REPLACE 119 2001 2209 3362 3726
This entry replaces the brightness values in a region of the image in position 8101 of dataset A/A. The brightness values between image lines 2001 and 2209 and elements 3362 and 3726 are replaced with a new brightness value of 119. The resulting image is 480 lines by 640 elements. It is placed in position 4000 of dataset A/A.
IMGFILT GOES9/IR A/A.4001 BAND=3 FILTER=LOW2 STRETCH=HIST STATION=IRK SIZE=600 600 PROD=LO-2 UNIT=TEMP
This entry applies a two-dimensional low pass filter and histogram stretch to the band 3 temperature data in the most recent image in dataset GOES9/IR. The resulting 600 line by 600 element image is placed in position 4001 of dataset A/A, has the product name LO-2, and is centered over Kirksville, MO.
IMGFILT EASTS/CONUS LOCAL/AREA.1 BAND=1 STA=KCHI MAG=-3 -6 FILT=SPOT .5 X 1.25 TARGET=BIS OAX TLX MKX LSX MRX PBZ RAX DIST=124[NMI]
This entry applies a spot filter to band 1 of the most recent image in dataset EASTS/CONUS. The resulting image is centered on Chicago, blown down by a factor of 3 in the line direction and 6 in the element direction, and is placed in position 1 of dataset LOCAL/AREA. The filter sets the brightness values of pixels outside the spots defined by the TARGET and DIST keywords to 50% of their original values, and pixels inside the spots to 125% of their original values. In this case, the spots show the 124 nautical mile coverage of the NEXRAD "short range" (S Rng) reflectivity products for NEXRAD stations BIS, OAX, TLX, MKX, LSX, MRX, PBZ and RAX.
[Search Manual] [Table of Contents] [Go to Previous] [Go to Next]