diff options
author | Nadia Dencheva <dencheva@itsd-osx31.stsci.edu> | 2017-03-27 13:49:58 -0400 |
---|---|---|
committer | Nadia Dencheva <nadia.dencheva@gmail.com> | 2017-04-24 17:22:50 -0400 |
commit | c954b48e3866315e1a9191fb13d166cfcd9f2baf (patch) | |
tree | 24529ed97824f6a98b1318dfe4c4173b36575de1 /stwcs/wcsutil/hstwcs.py | |
parent | 02e4c14b36e3f38f51cde969c6286af396cfab8d (diff) | |
download | stwcs_hcf-c954b48e3866315e1a9191fb13d166cfcd9f2baf.tar.gz |
save work
Diffstat (limited to 'stwcs/wcsutil/hstwcs.py')
-rw-r--r-- | stwcs/wcsutil/hstwcs.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/stwcs/wcsutil/hstwcs.py b/stwcs/wcsutil/hstwcs.py index d9146d2..86dec5e 100644 --- a/stwcs/wcsutil/hstwcs.py +++ b/stwcs/wcsutil/hstwcs.py @@ -1,6 +1,7 @@ from __future__ import absolute_import, division, print_function import os +import warnings from astropy.wcs import WCS from astropy.io import fits from ..distortion import models, coeff_converter @@ -17,6 +18,7 @@ default_log_level = log.getEffectiveLevel() __all__ = ['HSTWCS'] +warnings.filterwarnings("ignore", message="^Some non-standard WCS keywords were excluded:", module="astropy.wcs.wcs") def extract_rootname(kwvalue, suffix=""): """ Returns the rootname from a full reference filename @@ -385,10 +387,8 @@ class HSTWCS(WCS): sip2hdr : bool If True - include SIP coefficients """ - if not relax and not sip2hdr: - log.setLevel('WARNING') + warnings.filterwarnings("ignore", message="^Some non-standard WCS keywords were excluded:", module="astropy.wcs") h = self.to_header(key=wcskey, relax=relax) - log.setLevel(default_log_level) if not wcskey: wcskey = self.wcs.alt |