Skip to content

Commit

Permalink
CDN_M removal in pp_prepare improved
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Mommert committed Apr 20, 2017
1 parent 16b2e36 commit eb4d9c4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pp_prepare.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
from past.utils import old_div
import numpy
import os
import re
import sys
import shutil
import logging
Expand Down Expand Up @@ -223,7 +224,7 @@ def prepare(filenames, obsparam, header_update, flipx=False,

# remove keywords that might collide with fake wcs
for key in list(header.keys()):
if 'CD' in key and '_' in key:
if re.match('^CD[1,2]_[1,2]', key) is not None:
# if key not in obsparam.values():
# header.remove(key)
if not toolbox.if_val_in_dict(key, obsparam):
Expand Down

0 comments on commit eb4d9c4

Please sign in to comment.