sofia_redux.scan: Scan Mode Algorithms for SOFIA Pipelines¶
The sofia_redux.scan package contains supporting algorithms
and helper functions for reconstructing image maps from scanned
observations.
Description¶
Architecture¶
Usage¶
Reference/API¶
sofia_redux.scan.channels¶
sofia_redux.scan.channels.channels Module¶
Classes¶
|
Creates a Channels instance. |
Class Inheritance Diagram¶
sofia_redux.scan.channels.channel_numba_functions Module¶
Functions¶
|
Flag channels according to degrees-of-freedom and weight. |
|
Return the typical gain magnitude for a gain array. |
|
Return the total channel 1/f statistic. |
|
Return the source Noise-Equivalent-Flux-Density (NEFD). |
sofia_redux.scan.channels.camera.camera Module¶
Classes¶
|
Initialize camera channels. |
Class Inheritance Diagram¶
sofia_redux.scan.channels.camera.color_arrangement Module¶
Classes¶
|
The color arrangement channels expand upon the camera channels by defining each as a pixel with a distinct resolution. |
Class Inheritance Diagram¶
sofia_redux.scan.channels.camera.single_color_arrangement Module¶
Classes¶
|
Expands upon the color arrangement channels by defining each pixel as a detector that receives only a single stream of data. |
Class Inheritance Diagram¶
sofia_redux.scan.channels.channel_data.channel_data Module¶
Classes¶
|
Initialize channel data. |
Class Inheritance Diagram¶
sofia_redux.scan.channels.channel_data.color_arrangement_data Module¶
Classes¶
|
Expands upon the channel data by defining each channel as a pixel on a camera with a distinct resolution. |
Class Inheritance Diagram¶
sofia_redux.scan.channels.channel_data.single_color_channel_data Module¶
Classes¶
|
Initialize single color channel data. |
Class Inheritance Diagram¶
sofia_redux.scan.channels.channel_group.channel_group Module¶
Classes¶
|
Create a channel group from channel data. |
Class Inheritance Diagram¶
sofia_redux.scan.channels.division.division Module¶
Classes¶
|
Instantiates a channel division. |
Class Inheritance Diagram¶
sofia_redux.scan.channels.gain_provider.gain_provider Module¶
Classes¶
The gain provider is an abstract class template, used to extract and set gain values for channel data. |
Class Inheritance Diagram¶
sofia_redux.scan.channels.gain_provider.field_gain_provider Module¶
Classes¶
|
Initializes a field gain provider. |
Class Inheritance Diagram¶
sofia_redux.scan.channels.gain_provider.sky_gradient Module¶
Classes¶
|
Creates a SkyGradient gain provider. |
Class Inheritance Diagram¶
sofia_redux.scan.channels.gain_provider.zero_mean_gains Module¶
Classes¶
An abstract class designed to subtract average gain values. |
Class Inheritance Diagram¶
sofia_redux.scan.channels.modality.modality Module¶
Classes¶
|
Create a Modality. |
Class Inheritance Diagram¶
sofia_redux.scan.channels.modality.coupled_modality Module¶
Classes¶
|
Create a coupled modality. |
Class Inheritance Diagram¶
sofia_redux.scan.channels.modality.non_linear_modality Module¶
Classes¶
|
Create a non-linear modality. |
Class Inheritance Diagram¶
sofia_redux.scan.channels.mode.mode Module¶
Classes¶
|
Create a mode operating on a given channel group. |
Class Inheritance Diagram¶
sofia_redux.scan.channels.mode.response Module¶
Classes¶
|
An abstract response mode. |
Class Inheritance Diagram¶
sofia_redux.scan.channels.mode.acceleration_response Module¶
Classes¶
|
Creates a position response mode based on acceleration. |
Class Inheritance Diagram¶
sofia_redux.scan.channels.mode.chopper_response Module¶
Classes¶
|
Creates a position response mode based on CHOPPER position. |
Class Inheritance Diagram¶
sofia_redux.scan.channels.mode.field_response Module¶
Classes¶
|
Returns a field response mode. |
Class Inheritance Diagram¶
sofia_redux.scan.channels.mode.motion_response Module¶
Classes¶
|
An abstract response mode class. |
Class Inheritance Diagram¶
sofia_redux.scan.channels.mode.non_linear_response Module¶
Classes¶
|
Create a non-linear response mode. |
Class Inheritance Diagram¶
sofia_redux.scan.channels.mode.pointing_response Module¶
Classes¶
|
Creates a position response mode based on TELESCOPE position. |
Class Inheritance Diagram¶
sofia_redux.scan.channels.rotating.rotating Module¶
Classes¶
|
Class Inheritance Diagram¶
sofia_redux.scan.chopper¶
sofia_redux.scan.chopper.chopper Module¶
Classes¶
|
Initialize the chopper object. |
Class Inheritance Diagram¶
sofia_redux.scan.chopper.chopper_numba_functions Module¶
Functions¶
|
Given (x, y) chopper positions, find the transitions and other parameters. |
sofia_redux.scan.configuration¶
sofia_redux.scan.configuration.configuration Module¶
Classes¶
|
A handler for configuration settings used during a SOFSCAN reduction. |
Class Inheritance Diagram¶
sofia_redux.scan.configuration.aliases Module¶
Classes¶
|
Initialize the configuration aliases. |
Class Inheritance Diagram¶
sofia_redux.scan.configuration.conditions Module¶
Classes¶
|
Initialize the configuration conditions. |
Class Inheritance Diagram¶
sofia_redux.scan.configuration.dates Module¶
Classes¶
|
Initialize the date range options. |
|
Initialize a date range from a text string. |
Class Inheritance Diagram¶
sofia_redux.scan.configuration.fits Module¶
Classes¶
|
Initialize the FITS options. |
Class Inheritance Diagram¶
sofia_redux.scan.configuration.iterations Module¶
Classes¶
|
Initialize the configuration iteration options. |
Class Inheritance Diagram¶
sofia_redux.scan.configuration.objects Module¶
Classes¶
|
Initialize the object options. |
Class Inheritance Diagram¶
sofia_redux.scan.configuration.options Module¶
Classes¶
|
Initialize an Options object. |
Class Inheritance Diagram¶
sofia_redux.scan.coordinate_systems¶
sofia_redux.scan.coordinate_systems.coordinate_system Module¶
Classes¶
|
Initialize a coordinate system. |
Class Inheritance Diagram¶
sofia_redux.scan.coordinate_systems.coordinate_systems_numba_functions Module¶
Functions¶
|
Check if coordinates are zeroed. |
|
Check if coordinates are NaN. |
|
Check if coordinates are finite. |
|
Check if coordinates are infinite. |
|
Check if coordinates are equal to a given value in all dimensions. |
|
Return the angular distance in radians between spherical coordinate sets. |
|
Transform spherical coordinates to a new pole. |
sofia_redux.scan.coordinate_systems.cartesian_system Module¶
Classes¶
|
Initialize a cartesian system of coordinate axes. |
Class Inheritance Diagram¶
sofia_redux.scan.coordinate_systems.coordinate Module¶
Classes¶
|
Initialize a coordinate. |
Class Inheritance Diagram¶
sofia_redux.scan.coordinate_systems.coordinate_2d Module¶
Classes¶
|
The Coordinate2D is a specialized extension of the |
Class Inheritance Diagram¶
sofia_redux.scan.coordinate_systems.coordinate_axis Module¶
Classes¶
|
Initialize a coordinate axis used for a coordinate system. |
Class Inheritance Diagram¶
sofia_redux.scan.coordinate_systems.index_2d Module¶
Classes¶
|
Initialize 2-dimensional indexing coordinates. |
Class Inheritance Diagram¶
sofia_redux.scan.coordinate_systems.offset_2d Module¶
Classes¶
|
Initialize a 2-dimensional offset. |
Class Inheritance Diagram¶
sofia_redux.scan.coordinate_systems.celestial_coordinates Module¶
Classes¶
|
Initialize a CelestialCoordinates object. |
Class Inheritance Diagram¶
sofia_redux.scan.coordinate_systems.ecliptic_coordinates Module¶
Classes¶
|
Initialize ecliptic coordinates. |
Class Inheritance Diagram¶
sofia_redux.scan.coordinate_systems.equatorial_coordinates Module¶
Classes¶
|
Initialize equatorial coordinates. |
Class Inheritance Diagram¶
sofia_redux.scan.coordinate_systems.focal_plane_coordinates Module¶
Classes¶
|
Initialize focal plane coordinates. |
Class Inheritance Diagram¶
sofia_redux.scan.coordinate_systems.galactic_coordinates Module¶
Classes¶
|
Initialize galactic coordinates. |
Class Inheritance Diagram¶
sofia_redux.scan.coordinate_systems.geocentric_coordinates Module¶
Classes¶
|
Initialize geocentric coordinates. |
Class Inheritance Diagram¶
sofia_redux.scan.coordinate_systems.geodetic_coordinates Module¶
Classes¶
|
Initialize geodetic coordinates. |
Class Inheritance Diagram¶
sofia_redux.scan.coordinate_systems.horizontal_coordinates Module¶
Classes¶
|
Initialize horizontal coordinates. |
Class Inheritance Diagram¶
sofia_redux.scan.coordinate_systems.precessing_coordinates Module¶
Classes¶
|
Initialize a PrecessingCoordinates object. |
Class Inheritance Diagram¶
sofia_redux.scan.coordinate_systems.spherical_coordinates Module¶
Classes¶
|
Initialize a SphericalCoordinates object. |
Class Inheritance Diagram¶
sofia_redux.scan.coordinate_systems.super_galactic_coordinates Module¶
Classes¶
|
Initialize a set of super-galactic coordinates. |
Class Inheritance Diagram¶
sofia_redux.scan.coordinate_systems.telescope_coordinates Module¶
Classes¶
|
Initialize a set of telescope coordinates. |
Class Inheritance Diagram¶
sofia_redux.scan.coordinate_systems.epoch.epoch Module¶
Classes¶
|
Initialize an astronomical epoch. |
|
Initialize a Julian epoch. |
|
Initialize a Besselian epoch. |
Class Inheritance Diagram¶
sofia_redux.scan.coordinate_systems.epoch.precession Module¶
Classes¶
|
Initialize a precession object. |
Class Inheritance Diagram¶
sofia_redux.scan.coordinate_systems.epoch.precession_numba_functions Module¶
Functions¶
|
Precess the coordinates with a precession matrix. |
|
Precess the coordinates with a precession matrix. |
sofia_redux.scan.coordinate_systems.grid.grid Module¶
Classes¶
|
Initialize a Grid. |
Class Inheritance Diagram¶
sofia_redux.scan.coordinate_systems.grid.grid_2d Module¶
Classes¶
|
Initialize a 2-dimensional abstract grid. |
Class Inheritance Diagram¶
sofia_redux.scan.coordinate_systems.grid.flat_grid_2d Module¶
Classes¶
Initialize a flat 2-dimensional grid. |
Class Inheritance Diagram¶
sofia_redux.scan.coordinate_systems.grid.spherical_grid Module¶
Classes¶
|
Initialize a spherical grid. |
Class Inheritance Diagram¶
sofia_redux.scan.coordinate_systems.projection.projection_2d Module¶
Classes¶
Initialize an abstract 2D projection. |
Class Inheritance Diagram¶
sofia_redux.scan.coordinate_systems.projection.projection_numba_functions Module¶
Functions¶
|
Project multiple coordinates from a native pole onto a celestial pole. |
|
Convert a single coordinate form a native pole to a celestial pole. |
|
Project multiple coordinates from a celestial pole onto a native pole. |
|
Deproject single coordinates about a celestial pole to a native pole. |
Calculate the celestial pole when one or more of the inputs are arrays. |
|
|
Calculate a celestial pole based on a reference and native reference. |
|
Check if two angles are equal within accuracy. |
|
Return the inverse sine of a value. |
|
Return the inverse sine for an array of values. |
|
Return the inverse cosine of an angle. |
|
Return the inverse cosine for an array of values |
sofia_redux.scan.coordinate_systems.projection.default_projection_2d Module¶
Classes¶
Initialize a default 2-dimensional Cartesian projection. |
Class Inheritance Diagram¶
sofia_redux.scan.coordinate_systems.projection.bonnes_projection Module¶
Classes¶
Initialize a Bonne spherical projection. |
Class Inheritance Diagram¶
sofia_redux.scan.coordinate_systems.projection.cylindrical_projection Module¶
Classes¶
An abstract cylindrical projection class. |
Class Inheritance Diagram¶
sofia_redux.scan.coordinate_systems.projection.cylindrical_equal_area_projection Module¶
Classes¶
Initialize a cylindrical equal-area projection. |
Class Inheritance Diagram¶
sofia_redux.scan.coordinate_systems.projection.cylindrical_perspective_projection Module¶
Classes¶
Create a cylindrical perspective projection. |
Class Inheritance Diagram¶
sofia_redux.scan.coordinate_systems.projection.global_sinusoidal_projection Module¶
Classes¶
Initialize a global sinusoidal projection. |
Class Inheritance Diagram¶
sofia_redux.scan.coordinate_systems.projection.gnomonic_projection Module¶
Classes¶
Initialize a gnomonic projection. |
Class Inheritance Diagram¶
sofia_redux.scan.coordinate_systems.projection.hammer_aitoff_projection Module¶
Classes¶
Initialize a Hammer-Aitoff projection. |
Class Inheritance Diagram¶
sofia_redux.scan.coordinate_systems.projection.mercator_projection Module¶
Classes¶
Initialize a Mercator projection. |
Class Inheritance Diagram¶
sofia_redux.scan.coordinate_systems.projection.parabolic_projection Module¶
Classes¶
Initialize a parabolic projection. |
Class Inheritance Diagram¶
sofia_redux.scan.coordinate_systems.projection.plate_carree_projection Module¶
Classes¶
Initialize a plate carree projection. |
Class Inheritance Diagram¶
sofia_redux.scan.coordinate_systems.projection.polyconic_projection Module¶
Classes¶
Initialize a polyconic projection. |
Class Inheritance Diagram¶
sofia_redux.scan.coordinate_systems.projection.sanson_flamsteed_projection Module¶
Classes¶
Initialize a Sanson-Flamsteed projection. |
Class Inheritance Diagram¶
sofia_redux.scan.coordinate_systems.projection.slant_orthographic_projection Module¶
Classes¶
Initialize a slant orthographic projection. |
Class Inheritance Diagram¶
sofia_redux.scan.coordinate_systems.projection.spherical_projection Module¶
Classes¶
Initialize a spherical projection. |
Class Inheritance Diagram¶
sofia_redux.scan.coordinate_systems.projection.stereographic_projection Module¶
Classes¶
Initialize a stereographic projection. |
Class Inheritance Diagram¶
sofia_redux.scan.coordinate_systems.projection.zenithal_equal_area_projection Module¶
Classes¶
Initialize a zenithal equal-area projection. |
Class Inheritance Diagram¶
sofia_redux.scan.coordinate_systems.projection.zenithal_equidistant_projection Module¶
Classes¶
Initialize a zenithal equidistant projection. |
Class Inheritance Diagram¶
sofia_redux.scan.coordinate_systems.projection.zenithal_projection Module¶
Classes¶
Initialization for the abstract zenithal projection. |
Class Inheritance Diagram¶
sofia_redux.scan.coordinate_systems.projector.projector_2d Module¶
Classes¶
|
Initialize a 2-D projector. |
Class Inheritance Diagram¶
sofia_redux.scan.coordinate_systems.projector.astro_projector Module¶
Classes¶
|
Initialize an astronomical projector. |
Class Inheritance Diagram¶
sofia_redux.scan.custom¶
sofia_redux.scan.custom.example.channels.channels Module¶
Classes¶
|
Initialize channels for the example instrument. |
Class Inheritance Diagram¶
sofia_redux.scan.custom.example.channels.channel_data.channel_data Module¶
Classes¶
|
Initialize the channel data for the example instrument. |
Class Inheritance Diagram¶
sofia_redux.scan.custom.example.channels.channel_group.channel_group Module¶
Classes¶
|
Initialize a channel group for the example instrument. |
Class Inheritance Diagram¶
sofia_redux.scan.custom.example.flags.channel_flags Module¶
Classes¶
Class Inheritance Diagram¶
sofia_redux.scan.custom.example.flags.frame_flags Module¶
Classes¶
Class Inheritance Diagram¶
sofia_redux.scan.custom.example.frames.frames Module¶
Classes¶
Initialize frames for the example instrument. |
Class Inheritance Diagram¶
sofia_redux.scan.custom.example.info.info Module¶
Classes¶
|
Initialize an ExampleInfo object. |
Class Inheritance Diagram¶
sofia_redux.scan.custom.example.info.astrometry Module¶
Classes¶
Initialize the astrometry info for the example instrument. |
Class Inheritance Diagram¶
sofia_redux.scan.custom.example.info.detector_array Module¶
Classes¶
Initialize the detector array information for the example instrument. |
Class Inheritance Diagram¶
sofia_redux.scan.custom.example.info.instrument Module¶
Classes¶
Initialize the instrument information for the example instrument. |
Class Inheritance Diagram¶
sofia_redux.scan.custom.example.info.observation Module¶
Classes¶
Initialize the observation information for the example instrument. |
Class Inheritance Diagram¶
sofia_redux.scan.custom.example.info.telescope Module¶
Classes¶
Initialize the telescope information for the example instrument. |
Class Inheritance Diagram¶
sofia_redux.scan.custom.example.integration.integration Module¶
Classes¶
|
Initialize an example integration. |
Class Inheritance Diagram¶
sofia_redux.scan.custom.example.scan.scan Module¶
Classes¶
|
Initialize a scan for the example instrument. |
Class Inheritance Diagram¶
sofia_redux.scan.custom.hawc_plus.channels.channels Module¶
Classes¶
|
Initialize HAWC+ channels. |
Class Inheritance Diagram¶
sofia_redux.scan.custom.hawc_plus.channels.channel_data.channel_data Module¶
Classes¶
|
Initialize the channel data for the HAWC+ instrument. |
Class Inheritance Diagram¶
sofia_redux.scan.custom.hawc_plus.channels.channel_group.channel_group Module¶
Classes¶
|
Initialize a HAWC+ channel group. |
Class Inheritance Diagram¶
sofia_redux.scan.custom.hawc_plus.channels.gain_provider.pol_imbalance Module¶
Classes¶
A gain provider that returns 1.0 for pol 0 channels and -1.0 otherwise. |
Class Inheritance Diagram¶
sofia_redux.scan.custom.hawc_plus.channels.mode.los_response Module¶
Classes¶
|
Initialize a LOS response mode. |
Class Inheritance Diagram¶
sofia_redux.scan.custom.hawc_plus.channels.mode.roll_response Module¶
Classes¶
|
Initialize a roll response mode. |
Class Inheritance Diagram¶
sofia_redux.scan.custom.hawc_plus.flags.channel_flags Module¶
Classes¶
Class Inheritance Diagram¶
sofia_redux.scan.custom.hawc_plus.flags.frame_flags Module¶
Classes¶
Class Inheritance Diagram¶
sofia_redux.scan.custom.hawc_plus.frames.frames Module¶
Classes¶
Initialize HAWC+ frames. |
Class Inheritance Diagram¶
sofia_redux.scan.custom.hawc_plus.frames.hawc_plus_frame_numba_functions Module¶
Functions¶
|
Utility function to validate HAWC+ frames following a data read. |
|
Perform the dark correction. |
|
Return a downsampled HWP angle array. |
sofia_redux.scan.custom.hawc_plus.info.info Module¶
Classes¶
|
Initialize a HawcPlusInfo object. |
Class Inheritance Diagram¶
sofia_redux.scan.custom.hawc_plus.info.astrometry Module¶
Classes¶
Initialize astrometry information for HAWC+ observations. |
Class Inheritance Diagram¶
sofia_redux.scan.custom.hawc_plus.info.chopping Module¶
Classes¶
Initialize the HAWC+ chopping information. |
Class Inheritance Diagram¶
sofia_redux.scan.custom.hawc_plus.info.detector_array Module¶
Classes¶
Initialize the HAWC+ detector array information. |
Class Inheritance Diagram¶
sofia_redux.scan.custom.hawc_plus.info.instrument Module¶
Classes¶
Initialize the HAWC+ instrument information. |
Class Inheritance Diagram¶
sofia_redux.scan.custom.hawc_plus.info.observation Module¶
Classes¶
Initialize the SOFIA observation information. |
Class Inheritance Diagram¶
sofia_redux.scan.custom.hawc_plus.info.telescope Module¶
Classes¶
Initialize the HAWC+ telescope information. |
Class Inheritance Diagram¶
sofia_redux.scan.custom.hawc_plus.integration.integration Module¶
Classes¶
|
Initialize a HAWC+ integration. |
Class Inheritance Diagram¶
sofia_redux.scan.custom.hawc_plus.integration.hawc_integration_numba_functions Module¶
Functions¶
|
Find, fix (or flag) jumps and return the number corrected per channel. |
|
Detect and fix jumps in the frame data for each channel. |
|
Jump correct a block of frames for a given channel. |
|
Flag all samples within a block for a given channel with a jump flag. |
|
Level a frame block for a given channel. |
|
Correct DAC jumps in the frame data. |
|
Flag channels with the DISCARD flag if all frame data are zero valued. |
|
Checks for jumps in each channel. |
sofia_redux.scan.custom.hawc_plus.scan.scan Module¶
Classes¶
|
Initialize a HAWC+ scan. |
Class Inheritance Diagram¶
sofia_redux.scan.custom.hawc_plus.simulation.simulation Module¶
Classes¶
|
Initialize a HAWC+ simulation. |
Class Inheritance Diagram¶
sofia_redux.scan.custom.sofia.channels.camera Module¶
Classes¶
|
Initialize camera channels. |
Class Inheritance Diagram¶
sofia_redux.scan.custom.sofia.channels.channel_data.channel_data Module¶
Classes¶
|
Initialize the SOFIA channel data container. |
Class Inheritance Diagram¶
sofia_redux.scan.custom.sofia.flags.quality_flags Module¶
Classes¶
Class Inheritance Diagram¶
sofia_redux.scan.custom.sofia.frames.frames Module¶
Classes¶
Initialize frames for SOFIA instruments. |
Class Inheritance Diagram¶
sofia_redux.scan.custom.sofia.info.info Module¶
Classes¶
|
Initialize a SofiaInfo object. |
Class Inheritance Diagram¶
sofia_redux.scan.custom.sofia.info.sofia_info_numba_functions Module¶
Functions¶
|
Get the drift corrections by linear interpolation between drifts. |
sofia_redux.scan.custom.sofia.info.aircraft Module¶
Classes¶
Initialize the SOFIA aircraft information. |
Class Inheritance Diagram¶
sofia_redux.scan.custom.sofia.info.astrometry Module¶
Classes¶
Initialize astrometry information for SOFIA observations. |
Class Inheritance Diagram¶
sofia_redux.scan.custom.sofia.info.chopping Module¶
Classes¶
Initialize the SOFIA chopping information. |
Class Inheritance Diagram¶
sofia_redux.scan.custom.sofia.info.detector_array Module¶
Classes¶
Initialize the SOFIA detector array information. |
Class Inheritance Diagram¶
sofia_redux.scan.custom.sofia.info.dithering Module¶
Classes¶
Initialize the SOFIA dithering information. |
Class Inheritance Diagram¶
sofia_redux.scan.custom.sofia.info.environment Module¶
Classes¶
Initialize the SOFIA environment information. |
Class Inheritance Diagram¶
sofia_redux.scan.custom.sofia.info.extended_scanning Module¶
Classes¶
Initialize the SOFIA extended scanning information. |
Class Inheritance Diagram¶
sofia_redux.scan.custom.sofia.info.gyro_drifts Module¶
Classes¶
Initialize the SOFIA gyro drift information. |
|
|
Initializes a single drift. |
Class Inheritance Diagram¶
sofia_redux.scan.custom.sofia.info.instrument Module¶
Classes¶
Initialize the SOFIA instrument information. |
Class Inheritance Diagram¶
sofia_redux.scan.custom.sofia.info.mapping Module¶
Classes¶
Initialize the SOFIA mapping information. |
Class Inheritance Diagram¶
sofia_redux.scan.custom.sofia.info.mission Module¶
Classes¶
Initialize the SOFIA flight mission information. |
Class Inheritance Diagram¶
sofia_redux.scan.custom.sofia.info.mode Module¶
Classes¶
Initialize the SOFIA mode information. |
Class Inheritance Diagram¶
sofia_redux.scan.custom.sofia.info.nodding Module¶
Classes¶
Initialize the SOFIA nodding information. |
Class Inheritance Diagram¶
sofia_redux.scan.custom.sofia.info.observation Module¶
Classes¶
Initialize the SOFIA observation information. |
Class Inheritance Diagram¶
sofia_redux.scan.custom.sofia.info.origination Module¶
Classes¶
Initialize the SOFIA origination information. |
Class Inheritance Diagram¶
sofia_redux.scan.custom.sofia.info.processing Module¶
Classes¶
Initialize the SOFIA processing information. |
Class Inheritance Diagram¶
sofia_redux.scan.custom.sofia.info.scanning Module¶
Classes¶
Initialize the SOFIA scanning information. |
Class Inheritance Diagram¶
sofia_redux.scan.custom.sofia.info.spectroscopy Module¶
Classes¶
Initialize the SOFIA spectroscopy information. |
Class Inheritance Diagram¶
sofia_redux.scan.custom.sofia.info.telescope Module¶
Classes¶
Initialize the SOFIA telescope information. |
Class Inheritance Diagram¶
sofia_redux.scan.custom.sofia.integration.integration Module¶
Classes¶
|
Initialize a SOFIA integration. |
Class Inheritance Diagram¶
sofia_redux.scan.custom.sofia.integration.models.atran Module¶
Classes¶
|
Initialize the ATRAN model for SOFIA. |
Class Inheritance Diagram¶
sofia_redux.scan.custom.sofia.scan.scan Module¶
Classes¶
|
Initialize a SOFIA scan. |
Class Inheritance Diagram¶
sofia_redux.scan.custom.sofia.simulation.aircraft Module¶
Classes¶
Initialize a simulated SOFIA aircraft. |
Class Inheritance Diagram¶
sofia_redux.scan.filters¶
sofia_redux.scan.filters.filter Module¶
Classes¶
|
Initialize an integration filter. |
Class Inheritance Diagram¶
sofia_redux.scan.filters.filters_numba_functions Module¶
Functions¶
|
Load timestream data from the supplied frame data. |
|
Remove the rejected signal from frame data. |
|
Update the frame dependents following the remove operation. |
|
Filter frame data using the filter rejection DFT method. |
|
Use DFT to filter single channel data. |
|
Apply DFT filtering for a given frequency channel. |
|
Level a given signal over all frames for the given channel indices. |
|
Remove the average level from each channel for the provided data set. |
|
Remove the average from a given 1-D data array. |
|
Fast implementation of the |
|
Accumulate the calculated profiles onto channel profiles. |
|
Calculate the point response for the varied filter. |
|
Calculate the point response for each given channel of an adaptive filter. |
|
Calculate the mean amplitudes and weights of a Fourier spectrum. |
|
Fast implementation of the |
|
Add to the frame dependents based on the rejected signal. |
|
Expand the rejection filter by a given width. |
|
Add harmonics to the rejection filter. |
sofia_redux.scan.filters.adaptive_filter Module¶
Classes¶
|
Initialize an integration adaptive filter. |
Class Inheritance Diagram¶
sofia_redux.scan.filters.fixed_filter Module¶
Classes¶
|
Initializes a fixed filter. |
Class Inheritance Diagram¶
sofia_redux.scan.filters.kill_filter Module¶
Classes¶
|
Initializes a kill filter. |
Class Inheritance Diagram¶
sofia_redux.scan.filters.motion_filter Module¶
Classes¶
|
Initializes a motion filter. |
Class Inheritance Diagram¶
sofia_redux.scan.filters.multi_filter Module¶
Classes¶
|
Initialize an integration multi-filter. |
Class Inheritance Diagram¶
sofia_redux.scan.filters.varied_filter Module¶
Classes¶
|
Initialize an integration varied filter. |
Class Inheritance Diagram¶
sofia_redux.scan.filters.whitening_filter Module¶
Classes¶
|
Initialize an integration whitening filter. |
Class Inheritance Diagram¶
sofia_redux.scan.flags¶
sofia_redux.scan.flags.flags Module¶
Classes¶
|
The Flags class contains methods to manipulate flagging. |
Class Inheritance Diagram¶
sofia_redux.scan.flags.flag_numba_functions Module¶
Functions¶
|
Add a flag indicator to an array of flags. |
|
Remove a flag indicator from an array of flags. |
|
Converts ND array indices to flat indices. |
|
Return whether a flag array is flagged with a given flag. |
|
Return whether a flag array is unflagged by the given flag. |
|
Determine the Maximum-Entropy-Method (MEM) correction. |
|
Set all old blanking levels in the data to the new blanking level. |
sofia_redux.scan.flags.array_flags Module¶
Classes¶
Class Inheritance Diagram¶
sofia_redux.scan.flags.channel_flags Module¶
Classes¶
Class Inheritance Diagram¶
sofia_redux.scan.flags.flagged_array Module¶
Classes¶
|
Creates a flagged array instance. |
Class Inheritance Diagram¶
sofia_redux.scan.flags.flagged_data Module¶
Classes¶
Initialize a FlaggedData object. |
Class Inheritance Diagram¶
sofia_redux.scan.flags.flagged_data_group Module¶
Classes¶
|
Create a subgroup of flagged data. |
Class Inheritance Diagram¶
sofia_redux.scan.flags.frame_flags Module¶
Classes¶
Class Inheritance Diagram¶
sofia_redux.scan.flags.instrument_flags Module¶
Classes¶
Class Inheritance Diagram¶
sofia_redux.scan.flags.map_flags Module¶
Classes¶
|
Class Inheritance Diagram¶
sofia_redux.scan.flags.motion_flags Module¶
Classes¶
|
Initialize a MotionFlags object. |
Class Inheritance Diagram¶
sofia_redux.scan.flags.mounts Module¶
Classes¶
|
The Mount class contains all available types of telescope mount. |
Class Inheritance Diagram¶
sofia_redux.scan.frames¶
sofia_redux.scan.frames.frames Module¶
Classes¶
|
The Frames class contains all time-dependent data in an integration. |
Class Inheritance Diagram¶
sofia_redux.scan.frames.frames_numba_functions Module¶
Functions¶
|
Add increments to the frame dependents. |
|
Checks validity of frame data and updates the angles based on mount type. |
|
Downsample data to a new resolution using a window kernel. |
sofia_redux.scan.frames.horizontal_frames Module¶
Classes¶
Initialize horizontal frames. |
Class Inheritance Diagram¶
sofia_redux.scan.info¶
sofia_redux.scan.info.info Module¶
Classes¶
|
Initialize an Info object. |
Class Inheritance Diagram¶
sofia_redux.scan.info.astrometry Module¶
Classes¶
Initialize the astrometry information. |
Class Inheritance Diagram¶
sofia_redux.scan.info.base Module¶
Classes¶
|
Initialize a basic informational object. |
Class Inheritance Diagram¶
sofia_redux.scan.info.instrument Module¶
Classes¶
Initialize the instrument information. |
Class Inheritance Diagram¶
sofia_redux.scan.info.observation Module¶
Classes¶
Initialize the observation information. |
Class Inheritance Diagram¶
sofia_redux.scan.info.origination Module¶
Classes¶
Initialize the origination information. |
Class Inheritance Diagram¶
sofia_redux.scan.info.telescope Module¶
Classes¶
Initialize the telescope information. |
Class Inheritance Diagram¶
sofia_redux.scan.info.weather_info Module¶
Classes¶
|
An abstract class used to retrieve information on environmental conditions such as temperature, pressure, and wind. |
Class Inheritance Diagram¶
sofia_redux.scan.integration¶
sofia_redux.scan.integration.integration Module¶
Classes¶
|
Initialize a scan integration. |
Class Inheritance Diagram¶
sofia_redux.scan.integration.integration_numba_functions Module¶
Functions¶
|
Determine the frame weights (noise) in time. |
|
Determine the frame weighting (time) for all integration frames. |
|
Derive robust channel variance and weights. |
|
Derive channel weights using the differential method. |
|
Derive channel weights from the RMS of the frame data values. |
|
Set a number of channel data parameters from variance statistics. |
|
A Numba function to despike frame samples using neighbour method. |
|
A Numba function to despike frame samples using absolute method. |
|
A Numba function to despike frame samples using gradual method. |
|
A Numba function to despike frame samples using multi-resolution method. |
|
Return the total number of flagged channels per frame. |
|
Return the total number of flagged frames per channel. |
|
If a single frame is flagged in a block, flag all frames in the block. |
|
Returns the next frame weight transit above or below a given level. |
|
Return the mean frame values for each channel. |
|
Return the mean frame data values for each channel. |
|
Return the median frame data values for each channel. |
|
Calculate and remove the average offset from each channel. |
|
Subtract an offset per channel from the frame data between given frames. |
Apply the average drifts to channel data. |
|
|
Stage the detector by applying channel hardware gains to the frame data. |
|
Unstage the detector by removing channel hardware gains to the frame data. |
|
Return the x, y range of sample coordinates. |
|
Given sample data and flags, return weighted values, and full weights. |
|
Calculate the velocities for (x, y) coordinates. |
|
Calculate the accelerations for (x, y) coordinates. |
|
Classify scanning speeds. |
|
Smooth (x, y) coordinates with a box kernel of given size. |
|
Return the channel covariance. |
|
Return the full covariance in terms of fixed channel indices. |
|
Return the covariance matrix for certain channel indices. |
|
Downsample data using a supplied kernel. |
|
Downsample frame flags using a supplied kernel. |
|
Down-sample frame data using a given window kernel. |
|
Return the valid downsampled frames that may be calculated. |
sofia_redux.scan.integration.dependents.dependents Module¶
Classes¶
|
Initialize a "dependents" object. |
Class Inheritance Diagram¶
sofia_redux.scan.pipeline¶
sofia_redux.scan.pipeline.pipeline Module¶
Classes¶
|
Initialize a reduction pipeline. |
Class Inheritance Diagram¶
sofia_redux.scan.reduction¶
sofia_redux.scan.reduction.reduction Module¶
Classes¶
|
Initialize the reduction object. |
Class Inheritance Diagram¶
sofia_redux.scan.reduction.version Module¶
Classes¶
Initialize the reduction version information. |
Class Inheritance Diagram¶
sofia_redux.scan.scan¶
sofia_redux.scan.scan.scan Module¶
Classes¶
|
Initialize a scan. |
Class Inheritance Diagram¶
sofia_redux.scan.signal¶
sofia_redux.scan.signal.signal Module¶
Classes¶
|
Initialize a Signal object. |
Class Inheritance Diagram¶
sofia_redux.scan.signal.signal_numba_functions Module¶
Functions¶
|
Return the signal variance. |
|
Derive the maximum-likelihood gain increments and weights. |
|
Derive the robust gain increment and weights. |
|
Resync the frame data with the signal and gain increments. |
|
Apply the gain increments to frame data and signals. |
|
Calculate the new signal and channel source filtering. |
|
Differentiate the signal values in-place. |
|
Differentiate signal values and weights in-place. |
|
Integrate signal values in-place using the trapezoid rule. |
|
Integrate signal values and weights in-place using the trapezoid rule. |
|
Add drift values to the signal. |
|
Remove and return the average value between a start and end frame. |
|
Remove drifts (average signal levels in a frame block) from the signal. |
|
Return the signal covariance for samples in frames/channel. |
|
Return the maximum-likelihood gain increment. |
|
Return the robust median gain increment. |
|
Resync the frame data with the gain deltas and update dependents. |
|
Populate some temporary parameters for signal numerical operations. |
sofia_redux.scan.simulation¶
sofia_redux.scan.simulation.info Module¶
Classes¶
|
Initialize the example instrument simulation information object. |
Class Inheritance Diagram¶
sofia_redux.scan.simulation.scan_patterns.constant_speed Module¶
Functions¶
|
Convert a pattern such that the samples are equally spaced wrt speed. |
sofia_redux.scan.simulation.scan_patterns.daisy Module¶
Functions¶
|
Create a daisy scan pattern in offset coordinates. |
|
Create a daisy scan pattern in equatorial coordinates. |
sofia_redux.scan.simulation.scan_patterns.lissajous Module¶
Functions¶
|
Create a Lissajous scan pattern in offset coordinates. |
|
Create a Lissajous scan pattern in equatorial coordinates. |
sofia_redux.scan.simulation.scan_patterns.skydip Module¶
Functions¶
|
Create a skydip observation. |
sofia_redux.scan.simulation.source_models.simulated_source Module¶
Classes¶
Initialize a simulated source. |
Class Inheritance Diagram¶
sofia_redux.scan.simulation.source_models.single_gaussian Module¶
Classes¶
|
Initialize a SingleGaussian simulated source. |
Class Inheritance Diagram¶
sofia_redux.scan.simulation.source_models.sky Module¶
Classes¶
|
Initialize a simulated sky source. |
Class Inheritance Diagram¶
sofia_redux.scan.source_models¶
sofia_redux.scan.source_models.source_model Module¶
Classes¶
|
Initialize a source model. |
Class Inheritance Diagram¶
sofia_redux.scan.source_models.source_numba_functions Module¶
Functions¶
|
Calculate and return the coupling increment factor. |
|
Return the cross-product of frame and channel gains. |
|
Set bad frame/channel indices to blank values. |
|
Flags channels with an out-of-range coupling value as "BLIND" |
|
Remove map source gains from frame data and flag samples. |
|
Calculate frame/channel dependent deltas following source synchronization. |
|
Flag samples outside of the allowed mapping range. |
|
Set pixel indices outside of the map range to (0, 0). |
|
Add signal values to the sky dip model data. |
|
Remove map source gains from frame data and flag samples. |
sofia_redux.scan.source_models.astro_data_2d Module¶
Classes¶
|
Initialize an astronomical 2D model of the source data. |
Class Inheritance Diagram¶
sofia_redux.scan.source_models.astro_intensity_map Module¶
Classes¶
|
Initialize an astronomical intensity map. |
Class Inheritance Diagram¶
sofia_redux.scan.source_models.astro_model_2d Module¶
Classes¶
|
Initialize an astronomical 2D model of the source. |
Class Inheritance Diagram¶
sofia_redux.scan.source_models.pixel_map Module¶
Classes¶
|
Initialize a PixelMap source model. |
Class Inheritance Diagram¶
sofia_redux.scan.source_models.sky_dip Module¶
Classes¶
|
Initialize a skydip model. |
Class Inheritance Diagram¶
sofia_redux.scan.source_models.sky_dip_model Module¶
Classes¶
Initialize a sky dip model. |
Class Inheritance Diagram¶
sofia_redux.scan.source_models.beams.asymmetry_2d Module¶
Classes¶
|
Initialize an Asymmetry2D object. |
Class Inheritance Diagram¶
sofia_redux.scan.source_models.beams.elliptical_source Module¶
Classes¶
|
Initialize an EllipticalSource model. |
Class Inheritance Diagram¶
sofia_redux.scan.source_models.beams.gaussian_2d Module¶
Classes¶
|
Initializes a 2-D Gaussian beam model. |
Class Inheritance Diagram¶
sofia_redux.scan.source_models.beams.gaussian_source Module¶
Classes¶
|
Initialize a GaussianSource model. |
Class Inheritance Diagram¶
sofia_redux.scan.source_models.beams.instant_focus Module¶
Classes¶
Initialize an InstantFocus object. |
Class Inheritance Diagram¶
sofia_redux.scan.source_models.fits_properties.fits_properties Module¶
Classes¶
Initialize a FITS properties object. |
Class Inheritance Diagram¶
sofia_redux.scan.source_models.maps.exposure_map Module¶
Classes¶
|
Create an exposure map overlay of an observation. |
Class Inheritance Diagram¶
sofia_redux.scan.source_models.maps.fits_data Module¶
Classes¶
|
Creates a FitsData instance. |
Class Inheritance Diagram¶
sofia_redux.scan.source_models.maps.image Module¶
Classes¶
|
Creates an Image instance. |
Class Inheritance Diagram¶
sofia_redux.scan.source_models.maps.image_2d Module¶
Classes¶
|
Create an Image2D instance. |
Class Inheritance Diagram¶
sofia_redux.scan.source_models.maps.map_2d Module¶
Classes¶
|
Initialize a Map2D instance. |
Class Inheritance Diagram¶
sofia_redux.scan.source_models.maps.noise_map Module¶
Classes¶
|
Create a noise map overlay of an observation. |
Class Inheritance Diagram¶
sofia_redux.scan.source_models.maps.observation_2d Module¶
Classes¶
|
Initialize an Observation2D object. |
Class Inheritance Diagram¶
sofia_redux.scan.source_models.maps.overlay Module¶
Classes¶
|
Create an overlay of an underlying image. |
Class Inheritance Diagram¶
sofia_redux.scan.source_models.maps.significance_map Module¶
Classes¶
|
Create a significance map overlay of an observation. |
Class Inheritance Diagram¶
sofia_redux.scan.source_models.maps.weight_map Module¶
Classes¶
|
Create a weight map overlay of an observation. |
Class Inheritance Diagram¶
sofia_redux.scan.utilities¶
sofia_redux.scan.utilities.utils Module¶
Functions¶
|
Return a string representation of the given value. |
|
Return a bool representation of the given value. |
|
Return an integer representation of the given value. |
|
Return a float representation of the given value. |
|
Return a Range object generated from the given value. |
|
Resolve the given value into a list. |
|
Return a list of strings from the given single string. |
|
Return a list of floats from a single string. |
|
Return a list of ints from a single string. |
|
Convert all elements in a list to integers. |
|
Returns H:M:S string as time Quantity. |
|
Convert a degree:minute:second string into an angle. |
|
Return a degree angle quantity from a given value. |
|
Return a time or hour angle quantity from a given value. |
|
Return an integer representation of a sign. |
|
Return an astropy frame representing the equinox of an observation. |
|
Return if a given value is valid in the context of unknown values. |
|
Performs a mean calculation with optional tails. |
|
Return a masking array indicating sigma clipped elements of an input array. |
|
Returns int((a + b - 1) / b). |
|
Rotate 2 dimensional coordinates by a given angle. |
|
Returns the rounded value of log_2(x). |
|
Returns the value rounded to the closest 2^N integer. |
|
Returns the value floored to the closest 2^N integer. |
|
Returns the value ceiled to the closest 2^N integer. |
|
Insert zeroed coordinates in an astropy coordinate frame. |
|
Return the intersection of two dictionaries. |
|
Return the difference of two dictionaries. |
|
Convert a value to a Quantity suitable for header entry. |
|
Parse a value to a parsable header float value. |
|
Convolve or deconvolve one beam by another. |
|
Convolve one beam by another. |
|
Deconvolve one beam by another. |
|
Encompass one beam by another. |
|
Encompass one beam by a given fwhm. |
|
Return the area of a 2-dimensional Gaussian model. |
|
Get an astropy quantity from a FITS header value. |
|
Convert time stream data from a ascii file to a numpy array. |
|
Insert a key, value into the header at a specific location. |
|
Insert header information into a header at a given location. |
|
Convert header-like information to a list of cards. |
Aggressively remove the numba cache for the sofia_scan package. |
|
|
Round any given value to the expected result. |
|
See if a header comment contains a unit and return if found. |
|
Calculate sidereal time, even if offline. |
sofia_redux.scan.utilities.numba_functions Module¶
Functions¶
|
Returns the weighted median of values in one dimension. |
|
Returns the weighted median of values in two dimensions. |
|
Returns the weighted median of values in K-dimensions. |
|
Returns int((a + b - 1) / b). |
|
Subtract the average value from all values and return the average. |
|
Apply 1-D kernel convolution in place. |
|
Create a Gaussian convolution kernel. |
|
Return the (optionally weighted) mean value of an array. |
|
Smooth a 2-D array of values along the zeroth axis. |
|
Return the rounded value of log_2(x). |
|
Return the ceiled value of log_2(x). |
|
Return 2 to the power of round(log_2(x)). |
|
Return 2 to the power of floor(log_2(x)). |
|
Return 2 to the power of ceil(log_2(x)). |
|
Direct convolution of ND data with a given kernel. |
|
Direct convolution of ND data with a given kernel onto a coarse grid. |
|
Return the values of data, smoothed by a kernel at the given indices. |
|
Return the convolution of data with a kernel at a single point. |
|
Perform direct kernel convolution at a single point. |
|
Convolution with a spline representation of a kernel at a single point. |
|
Add one array of values to another. |
|
Return the maximum value and index of that value. |
|
Calculate the robust mean value excluding tails. |
sofia_redux.scan.utilities.bracketed_values Module¶
Classes¶
|
Initialize a BracketedValues object. |
Class Inheritance Diagram¶
sofia_redux.scan.utilities.class_provider Module¶
Functions¶
|
Return a valid name for the given instrument. |
|
Return the module path to custom SOFSCAN instrument |
|
Return the associated class type name for a given string. |
|
Convert a class name to the base module it may be found in. |
|
Get the module path and class name prefix for a given instrument name. |
|
Return an instrument specific class for a given module. |
|
Returns a Channels instance for a given instrument. |
|
Returns a ChannelData instance for a given instrument. |
|
Returns the appropriate ChannelGroup class for a given instrument. |
|
Returns the appropriate ChannelGroup class for a given instrument. |
|
Return a Frames instance for a given instrument. |
|
Return an Info instance given an instrument name. |
|
Return an Integration instance given an instrument name. |
|
Return the appropriate scan class for an instrument name. |
|
Return a default mode class based on modality class. |
|
Returns a Grid class of the given name |
|
Returns a Projection class of the given name |
Return a simulated source of the given name. |
sofia_redux.scan.utilities.range Module¶
Classes¶
|
Initialize a Range object. |