Produced by IDL 7.1.1
User Documentation

./guide
replace.pro

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

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.


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