|
Developer Documentation |
|||||||||
prev file | next file | ||||||||||
SUMMARY: fields | routine DETAILS: routine | ||||||||||
./toolbox dcdofeedoffsets.pro
dcdofeedoffsets |
procedure dcdofeedoffsets, dc, [/remove], [/reportonly], [status=variable] |
Apply or remove the feed offsets in the supplied data container.
Note:The feed offsets need only be applied for old (fitsver earlier than 1.7) data written by gbtidl. Data produced by sdfits from fitsver 1.7 on has had the feed offsets applied by sdfits. In addition, GBTIDL applies all feed offsets by default when reading from SDFITS files having an SDFITSVER keyword (files produced by sdfits). Other old SDFITS file are likely produced by GBTIDL using KEEP or SAVE and it's impossible to tell whether any non-zero feed offsets found there have been applied to the positions and so GBTIDL does not automatically apply the feed offsets when reading that data.
This applies (default) or removes (when the /remove keyword is set) any non-zero feed offset values (feedxoff and feedeoff) found in the supplied data container. If /reportonly is used then information is printed about what the new coordinate values would have been but the data container remains unchanged.
Feed offsets can only be applied if the longitude and latitude coordinates can be converted to and from Azimuth and Elevation. Recognized coordinate systems are "RADEC","HADEC","GALACTIC",and "AZEL". If the offsets can not be applied (or removed) the status value will be set to 0. When successfull, the status value is 1.
This works with spectral line and continuum data containers.
Parameters | |
dc |
The data container to be used. The longitude, latitude, azimuth, and elevation values are changed by this procedure unless /reportonly is set. |