EMToolKit.schemas package

EMToolKit.schemas.basic_schemas module

class EMToolKit.schemas.basic_schemas.basic_detector(meta)[source]

Bases: object

fwdop(source)[source]
class EMToolKit.schemas.basic_schemas.basic_source(sequence, super_fac=1, logt=None)[source]

Bases: object

is_same(src)[source]

EMToolKit.schemas.basic_transforms module

class EMToolKit.schemas.basic_transforms.fits_transform(header)[source]

Bases: object

coord2index(xr, yr)[source]
index2coord(i, j)[source]
class EMToolKit.schemas.basic_transforms.generic_transform(coords_in, coords_out)[source]

Bases: object

init_transform()[source]
transform(coords)[source]
class EMToolKit.schemas.basic_transforms.trivialframe(names)[source]

Bases: object

EMToolKit.schemas.coord_grid module

class EMToolKit.schemas.coord_grid.coord_grid(dims, origin, fwd, frame, inv=None)[source]

Bases: object

coords(inds)[source]
flatinds(vals, coords, thold=0)[source]
get_inv()[source]
identity()[source]
inds(coords)[source]
subgrid(fac=2)[source]

EMToolKit.schemas.element_functions module

EMToolKit.schemas.element_functions.bin_function(ptcoords, coordarr, parms)[source]
EMToolKit.schemas.element_functions.flattop_guassian_psf(pt, coords, inputs)[source]
EMToolKit.schemas.element_functions.get_2d_cov(sigmas, theta)[source]
EMToolKit.schemas.element_functions.get_3d_cov(sigmas, angles)[source]
EMToolKit.schemas.element_functions.nd_gaussian_psf(pt, coords, inputs)[source]
EMToolKit.schemas.element_functions.nd_powgaussian_psf(pt, coords, inputs)[source]
EMToolKit.schemas.element_functions.nd_voigt_psf(pt, coords, inputs)[source]
EMToolKit.schemas.element_functions.spice_spectrograph_psf(pt, coords, inputs)[source]
EMToolKit.schemas.element_functions.spike_function(ptcoords, coordarr, parms)[source]

EMToolKit.schemas.element_grid module

class EMToolKit.schemas.element_grid.detector_grid(grid, parms, func, footprint=None, stencil_thold=0.0005, nsubgrid=3, thold=0.005)[source]

Bases: element_grid

class EMToolKit.schemas.element_grid.element_grid(grid, parms, func, footprint=None, stencil_thold=0.0005, nsubgrid=3, thold=0.005)[source]

Bases: object

elements(index)[source]
evaluate(point)[source]
get_eval_grid()[source]
get_nadr()[source]
response(point)[source]
class EMToolKit.schemas.element_grid.source_grid(grid, parms, func, footprint=None, stencil_thold=0.0005, nsubgrid=3, thold=0.005)[source]

Bases: element_grid

get_eval_grid()[source]

EMToolKit.schemas.element_source_responses module

EMToolKit.schemas.element_source_responses.element_source_responses(source, detector, transform, nbuf=10000000, dtype='float32')[source]

EMToolKit.schemas.operators module

class EMToolKit.schemas.operators.multi_instrument_linear_operator(*args, **kwargs)[source]

Bases: LinearOperator

class EMToolKit.schemas.operators.reg_operator_postfac_wrapper(*args, **kwargs)[source]

Bases: LinearOperator

class EMToolKit.schemas.operators.single_instrument_linear_operator_separable(*args, **kwargs)[source]

Bases: LinearOperator

EMToolKit.schemas.operators.sparse_d2_partial_matrix(dims, axis, nd, steps=None, drv_con=8.0, dtype=<class 'numpy.float32'>, use_postfactor=False)[source]

EMToolKit.schemas.util module

EMToolKit.schemas.util.as_dict(rec)[source]

turn a numpy recarray record into a dict. this is mostly useful just to have a human readable output of a record on the console.

as_dict(my_data[234])

EMToolKit.schemas.util.bindown(d, n)[source]
EMToolKit.schemas.util.bindown2(d, f)[source]
EMToolKit.schemas.util.binup(d, f)[source]
EMToolKit.schemas.util.btp(a)[source]
EMToolKit.schemas.util.ftp(a)[source]
EMToolKit.schemas.util.get_mask_errs(dat_cube, iris_err_fac, error_cube=None, filt_thold=2.5)[source]
EMToolKit.schemas.util.masked_median_filter(data, mask, radius, footprint=None, missing=0.0, footprint_ind_offset=0)[source]
EMToolKit.schemas.util.multivec_matmul(a, b)[source]
EMToolKit.schemas.util.rindices(dims, **kwargs)[source]