pynrc.nrc_utils

pyNRC utility functions

Functions

bias_dark_high_temp(darks_80K_dir[, T, sca])

Extrapolate a bias and dark at some temperature

channel_select(bp)

Select wavelength channel

dark_ramp_80K(darks_80K_dir[, sca])

Return dark ramp over time

do_charge_migration(image[, satmax, niter, ...])

Migration of charge from saturated pixels to immediate neighbors

do_fft(a[, n, axis, norm, inverse, real, ...])

Perform FFT using either numpy or MKL FFT

gen_unconvolved_point_source_image(nrc, ...)

Create an unconvolved image with sub-pixel shifts

grism_background(filter[, pupil, module, ...])

Returns a 1D array of grism Zodiacal/thermal background emission model, including roll-off from pick-off mirror (POM) edges.

grism_background_com(filter[, pupil, ...])

grism_background_image(filter[, pupil, ...])

Create full grism background image

make_grism_slope(nrc, src_tbl, tel_pointing, ...)

Create grism slope image Parameters

nproc_use_convolve(fov_pix, oversample[, npsf])

Attempt to estimate a reasonable number of processes to use for multiple simultaneous convolve_fft calculations.

offset_bar(filt, mask)

Bar mask offset locations

pickoff_image(ap_obs, v2_obj, v3_obj, flux_obj)

Create an unconvolved image of filled pixel values that have been shifted via bilinear interpolation.

pickoff_xy(ap_obs_name)

Return pickoff mirror FoV x/y limits in terms of science pixel coordinates

pix_noise([ngroup, nf, nd2, tf, rn, ktc, ...])

Noise per pixel

place_grism_spec(nrc, sp, xpix, ypix[, ...])

Create spectral image and place ref wavelenght at (x,y) location

place_grismr_tso(waves, imarr, siaf_ap[, ...])

Shift image such that undeviated wavelength sits at the SIAF aperture reference location.

segment_pupil_opd(hdu, segment_name[, npix])

Extract single segment pupil from input full OPD map

var_ex_model(ng, nf, params)

Variance Excess Model

zodi_euclid(locstr, year, day[, ...])

IPAC Euclid Background Model

zodi_spec([zfact, ra, dec, thisday])

Zodiacal light spectrum.