How to use the jwst.resample.resample.ResampleData function in jwst

To help you get started, we’ve selected a few jwst examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github gbrammer / grizli / grizli / jwst.py View on Github external
output_wcs = out.meta.wcs

    fillval = 'INDEF'
    insci = blot_data
    inwht = None
    xmin = xmax = ymin = ymax = 0
    uniqid = 1
    outsci = driz.outsci*1
    outwht = driz.outwht*1
    outcon = driz.outcon*1
    in_units = 'cps'

    from jwst.resample import resample

    groups = ModelContainer([wcs_model])
    sampler = resample.ResampleData(groups, output=driz)