Produced by IDL 7.1.1
Developer Documentation

./guide
replace.pro

Last modification date:
Wed Sep 28 13:27:12 2016

Routine Summary  2 routines

procedure replace[, bchan][, echan], [/zero], [/blank]

Replace spectral channels by interpolation, or with zero values or blanks.

procedure replace_chans, bchan, echan, [/zero], [/blank]

private

Used internally in replace

Routine Details

replace

procedure replace[, bchan][, echan], [/zero], [/blank]

Replace spectral channels by interpolation, or with zero values or blanks. If neither zero or blank are set, the data between bchan and echan are replaced with a straight line connecting the two end points. If neither bchan or echan are given the user is prompted select the region to be replaced on the plotter.

Examples
    getrec,1
    chan               ; set the X-axis to channels
    replace,1023,1025  ; replace the channel range 1023-1025
    freq               ; set the X-axis to GHz
    replace            ; prompt user for ranges and replace the values
    replace,15,/zero   ; set the data value at channel 15 to 0.0
    replace,2014,/blank; set the data value at channel 2014 to NaN
 
Version
$Id$
Common blocks
gbtplot_common

Parameters
bchan
in, optional
float
Starting channel. If this is a floating point value it is first rounded (using the IDL round function) before being used.
echan
in, optional
float
Ending channel. If this is a floating point value it is first rounded (using the IDL round function) before being used.

Keywords
zero
in, optional
boolean
If this keyword is set, the data are replaced with zero values. Otherwise, the replacement data values are interpolated from the endpoints.
blank
in, optional
boolean
If this keyword is set, the data are replaced by IEEE NaN (not a number). Such values are treated as missing data (not used in operations, not shown on the plotter, etc). If both blank and zero are set, zero takes precedence and the data will not be blanked.

replace_chans private

procedure replace_chans, bchan, echan, [/zero], [/blank]

Used internally in replace

Parameters
bchan
in, required
integer
Beginning channel number. Value is rounded (using IDL round function) to accomodate floating point values.
echan
in, required
integer
End channel number. Value is rounded (using IDL round function) to accomodate floating point values.

Keywords
zero
in, optional
boolean
When set, set the data to 0 in the channel range.
blank
in, optional
boolean
When set, set the data to NaN in the channel range. Has no effect if zero is also set.


Produced by IDLdoc 1.6 on Wed Sep 28 13:27:20 2016