Hide keyboard shortcuts

Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

__all__ = ["findCosmicRays"] 

 

import warnings 

 

import lsst.pex.policy as pexPolicy 

from .cr import _findCosmicRays 

 

 

def findCosmicRays(image, psf, bkgd, ps, keep=False): 

"""Find cosmic rays in an image.""" 

if isinstance(ps, pexPolicy.Policy): 

warnings.warn("findCosmicRays acceptance of Policy is deprecated. Use PropertySet " 

"(support will be removed after v19.0)", 

category=FutureWarning, stacklevel=2) 

ps = ps.asPropertySet() 

return _findCosmicRays(image, psf, bkgd, ps, keep) 

 

 

findCosmicRays.__doc__ = _findCosmicRays.__doc__