Reference/API#

niriss_tools.pipeline Package#

A subpackage to aid in running various components as part of a pipeline.

Functions#

construct_exposure_table(file_dir[, ...])

Compile an exposure table based on the file contents of a directory.

extract_fits_info(fits_filepath[, assoc])

Populate a table with info derived from a FITS header.

find_matches(img_dir, info_dict[, pattern, ...])

Update an info_dict with matches from a specified directory.

gaia_catalogue_from_obs_table(res[, min_radius])

Get GAIA catalogue, using an observation table as reference.

gen_associations(raw_output_dir[, field_name])

Generate exposure tables for each group of filters and grisms.

gen_linefinding_outputs(grizli_home_dir[, ...])

Create an archive with the files required for jwstwfss/linefinding.

gen_pygcg_outputs(grizli_home_dir[, ...])

Create an archive with the files required for PJ-Watson/pyGCG.

grism_background_subtraction([prep_dir, ...])

Model and subtract a dispersed background from WFSS data.

load_assoc([ra, dec, radius, proposal_id, ...])

Load exposure tables and association names from the DJA.

parse_files_grizli_aws(data_dir[, root, ...])

Parse files processed using grizli aws/DJA into a dict.

parse_images_from_pattern(img_dir[, pattern])

Populate a dict with info and locations of images matching a pattern.

process_using_aws(grizli_home_dir, ...[, ...])

Process WFSS data using the functions in grizli.aws.

queryMAST(pid[, instrument, use_filter])

Query MAST for the full list of observations for specific PID.

radec_catalogue_from_obs_table(res[, ...])

Get RA/Dec catalogue, using an observation table as reference.

recursive_merge(d1, d2)

Recursively merge two dictionaries.

regen_catalogue(new_seg_map[, root, sci, ...])

Make a catalog from drizzle products using SEP.

run_det1(uncal_path, output_dir, **kwargs)

Run the level 1 detector pipeline on an uncalibrated image.

seg_slice(seg_map, seg_id[, padding, ...])

Find the location of an object in a segmentation map.

separate_oned_spectra(mb[, tfit])

Extract 1D spectra for each grism, e.g. GR150R/GR150C.

stsci_det1(uncal_dir, raw_output_dir[, ...])

Run the JWST level 1 detector pipeline.