From fb33951249af33c8b940847398ce66eb5f34cea6 Mon Sep 17 00:00:00 2001 From: "M. Teodoro" Date: Wed, 11 Dec 2024 09:26:49 -0500 Subject: [PATCH] Update docs and docstring. --- docs/roman/resample/arguments.rst | 4 ++++ romancal/resample/resample_utils.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/roman/resample/arguments.rst b/docs/roman/resample/arguments.rst index b72bb630a..d07d70bdc 100644 --- a/docs/roman/resample/arguments.rst +++ b/docs/roman/resample/arguments.rst @@ -81,6 +81,10 @@ image. not exist, the variance is set to 1 for all pixels (equal weighting). If `weight_type=exptime`, the scaling value will be set equal to the exposure time found in the image header. + If `weight_type=ivsky`, the scaling value will be determined per-pixel + using the inverse of the sky variance (VAR_SKY) array calculated in the + resample step for each input image. If the VAR_SKY array does + not exist, the variance is set to 1 for all pixels (equal weighting). ``--single`` (bool, default=False) If set to `True`, resample each input image into a separate output. If diff --git a/romancal/resample/resample_utils.py b/romancal/resample/resample_utils.py index 858ae6061..efb54107a 100644 --- a/romancal/resample/resample_utils.py +++ b/romancal/resample/resample_utils.py @@ -113,7 +113,7 @@ def build_driz_weight( model : object The input model. weight_type : str, optional - The type of weight to use. Allowed values are 'ivm' or 'exptime'. + The type of weight to use. Allowed values are 'ivm', 'exptime', or 'ivsky'. Defaults to None. good_bits : str, optional The good bits to use for building the mask. Defaults to None.