Skip to content

Commit

Permalink
Added combine_correct_anamorphism parameter in configuration files
Browse files Browse the repository at this point in the history
  • Loading branch information
avigan committed Aug 30, 2017
1 parent 2d64f8a commit fd5eb03
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
4 changes: 2 additions & 2 deletions examples/standard_irdis_reduction.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import pysphere.IRDIS as IRDIS


root_path = '/Users/avigan/data/pySPHERE-test/IRD/'
root_path = '/Users/avigan/data/pySPHERE-test/IRD2/'

red = IRDIS.ImagingReduction(root_path)

Expand All @@ -26,5 +26,5 @@
# collapse_science=False, collapse_type='mean', coadd_value=2,
# collapse_psf=True, collapse_center=True)
# red.sph_ird_star_center(high_pass=False, display=False, save=True)
red.sph_ird_combine_data(cpix=True, psf_dim=100, science_dim=400, correct_anamorphism=True, save_scaled=False)
# red.sph_ird_combine_data(cpix=True, psf_dim=100, science_dim=400, correct_anamorphism=True, save_scaled=False)
# red.sph_ird_clean(delete_raw=False, delete_products=False)
9 changes: 5 additions & 4 deletions pysphere/IRDIS.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,16 +151,16 @@ def create_static_calibrations(self):

def preprocess_science(self):
'''
Extract images in data cubes
Extract images in data cubes, clean and collapse
'''

self.sph_ird_preprocess_science()


def process_science(self):
'''
Perform star center and combine cubes into final (x,y,time,lambda)
cubes
Perform star center, combine cubes into final (x,y,time,lambda)
cubes, correct anamorphism and scale the images
'''

self.sph_ird_star_center()
Expand All @@ -169,7 +169,8 @@ def process_science(self):

def clean(self):
'''
Clean the reduction directory
Clean the reduction directory, leaving only the raw and products
sub-directory
'''

self.sph_ird_clean()
Expand Down
3 changes: 2 additions & 1 deletion pysphere/instruments/IFS.ini
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ center_save = True
combine_cpix = True
combine_psf_dim = 80
combine_science_dim = 290
combine_wave_scaled = False
combine_correct_anamorphism = True
combine_save_scaled = False

# clean
clean_delete_raw = False
Expand Down
3 changes: 2 additions & 1 deletion pysphere/instruments/IRDIS.ini
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ center_save = True
combine_cpix = True
combine_psf_dim = 100
combine_science_dim = 800
combine_wave_scaled = False
combine_correct_anamorphism = True
combine_save_scaled = False

# clean
clean_delete_raw = False
Expand Down

0 comments on commit fd5eb03

Please sign in to comment.