sofia_redux.instruments.forcast: FORCAST Data Reduction Algorithms¶
The sofia_redux.instruments.forcast
package contains data reduction
algorithms for the FORCAST instrument. It is designed to be used with the
sofia_redux
package, so it does not provide its own interfaces or workflows.
See the sofia_redux.pipeline
documentation for more information on the pipeline
interfaces, or the API documentation below for more information on FORCAST
algorithms.
Reference/API¶
sofia_redux.instruments.forcast.background Module¶
Functions¶
|
Calculate the background of the image |
|
Return the most common data point from discrete or nominal data |
sofia_redux.instruments.forcast.calcvar Module¶
Functions¶
|
Calculate read and poisson noise of the variance from raw FORCAST images |
sofia_redux.instruments.forcast.check_readout_shift Module¶
Functions¶
|
Check data for 16 pixel shift |
sofia_redux.instruments.forcast.chopnod_properties Module¶
Functions¶
|
Returns the chop nod properties in the detector reference frame |
sofia_redux.instruments.forcast.clean Module¶
Functions¶
|
Replaces bad pixels in an image with approximate values |
sofia_redux.instruments.forcast.configuration Module¶
DRIP configuration
Functions¶
|
Load the DRIP configuration file |
sofia_redux.instruments.forcast.distcorr_model Module¶
Functions¶
|
Read the pinhole file and return a dataframe |
|
Generate the pinhole model from paramters. |
|
View the pinhole model and optionally write to FITS file. |
|
Generate model array of pin holes base on input file |
sofia_redux.instruments.forcast.droop Module¶
Functions¶
|
Corrects droop electronic signal |
sofia_redux.instruments.forcast.getatran Module¶
Functions¶
Clear all data from the atran cache. |
|
|
Retrieves atmospheric transmission data from the atran cache. |
|
Store atran data in the atran cache. |
|
Retrieve reference atmospheric transmission data. |
sofia_redux.instruments.forcast.getcalpath Module¶
Functions¶
|
Return the path of the ancillary files used for the pipeline. |
sofia_redux.instruments.forcast.getdetchan Module¶
Functions¶
|
Retrieve DETCHAN keyword value from header as either SW or LW |
sofia_redux.instruments.forcast.getmodel Module¶
Functions¶
Clear all data from the model cache. |
|
|
Retrieves model data from the model cache. |
|
Store model data in the model cache. |
|
Retrieve reference standard model data. |
sofia_redux.instruments.forcast.getpar Module¶
Functions¶
|
Get a header or configuration parameter |
sofia_redux.instruments.forcast.hdcheck Module¶
Functions¶
|
Return if a keyword header value meets a condition |
|
Checks the AND/OR conditions of keyword definitions is met by header |
|
Check if a header of a FITS file matches a keyword requirement |
|
Validate all keywords in a header against the keywords table |
|
Validate filename header against keywords table |
|
Checks file headers against validity criteria |
sofia_redux.instruments.forcast.hdmerge Module¶
Functions¶
|
Merge input headers. |
sofia_redux.instruments.forcast.hdrequirements Module¶
Functions¶
|
Parse a condition value defined in the keyword table |
|
Returns a dataframe containing the header requirements |
sofia_redux.instruments.forcast.imgnonlin Module¶
Functions¶
|
Return the signal level from the header |
|
Read header and determine camera |
|
Get non-linearity scale from the header based on camera and capacitance |
|
Get non-linearity coefficients from the header based on camera and capacitance |
|
Get non-linearity coefficient limits from the header based on camera and capacitance |
|
Corrects for non-linearity in detector response due to general background. |
sofia_redux.instruments.forcast.imgshift_header Module¶
Functions¶
|
Calculates the shift_image in the pixel frame for merging an image |
sofia_redux.instruments.forcast.jbclean Module¶
Functions¶
|
Remove jailbars with FFT |
|
Remove jailbars using the median of correlated columns |
|
Removes "jailbar" artifacts from images |
sofia_redux.instruments.forcast.merge Module¶
Functions¶
|
Merge positive and negative instances of the source in the images |
sofia_redux.instruments.forcast.merge_centroid Module¶
Functions¶
|
Merge an image using a centroid algorithm |
sofia_redux.instruments.forcast.merge_correlation Module¶
Functions¶
|
Merge an image using a correlation algorithm |
sofia_redux.instruments.forcast.merge_shift Module¶
Functions¶
|
Merge an image by shifting the input data by the input values |
sofia_redux.instruments.forcast.peakfind Module¶
Functions¶
|
Find peaks (stars) in FORCAST images |
Classes¶
|
Configure and run peak finding algorithm. |
sofia_redux.instruments.forcast.read_section Module¶
Functions¶
|
Read the section in the configuration file and check if it's correct |
sofia_redux.instruments.forcast.readfits Module¶
Functions¶
|
Add an id or file name to a header as PARENTn |
|
Returns the array from the input file |
sofia_redux.instruments.forcast.readmode Module¶
Functions¶
|
Read the chop/nod and instrument mode from the header |
sofia_redux.instruments.forcast.register Module¶
Functions¶
|
Shift an image for coadding using a centroid algorithm |
|
Shift an image for coaddition using a correlation algorithm |
|
Shift an image for coaddition using header information |
|
Shift an image for coaddition using header information |
|
Use dither data to shift_image input image to a reference image. |
sofia_redux.instruments.forcast.register_datasets Module¶
Functions¶
|
Return the pixel offset of a point on header relative to refheader |
|
Returns all shifts relative to the reference set. |
|
Expands an array to a new shape |
|
Shifts an individual data set |
|
Shifts datasets onto common frame |
|
Resize all datasets to the same shape |
|
Registers multiple sets of data to the same frame |
sofia_redux.instruments.forcast.rotate Module¶
Functions¶
|
Rotate an image by the specified amount |
|
Rotate the coordinates about a center point by a given angle. |
|
Rotate a single (y, x) point about a given center. |
|
Rotate an image about a point by a given angle. |
|
Rotate an image, using a mask for interpolation and edge corrections. |
sofia_redux.instruments.forcast.shift Module¶
Functions¶
|
Shift an image by the specified amount |
sofia_redux.instruments.forcast.stack Module¶
Functions¶
|
Add data frames together at the same stack (position) |
|
Return frame scale levels |
|
Run the stacking algorithm on C2NC2 data |
|
Run the stacking algorithm on MAP (Mapping mode) data |
|
Run the stacking algorithm on C3D data (3 position chop with dither) |
|
Run the stacking algorithm on CM data (multi-position chop) |
|
Run the stacking algorithm on STARE data |
|
Convert data to mega-electrons per seconds |
|
Remove background from data |
|
Subtracts chop/nod pairs to remove astronomical/telescope background |
sofia_redux.instruments.forcast.undistort Module¶
Functions¶
Default values of the model and instrument points to be warped and fitted. |
|
|
Get the pinhole model and coefficients and update header. |
|
Calculate the position of x0, y0 after a transformation |
|
Update the WCS in the header according to the transform |
|
Transform an image and update header using coordinte point mapping |
|
Rebin the image to square pixels |
|
Frame an image in the center of a new image and add border |
|
Find single peak in image and update SRCPOS in header |
|
Corrects distortion due to camera optics. |