Skip to content

Commit

Permalink
Merge branch 'develop' into master: v1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
avigan committed Sep 22, 2020
2 parents 15b6f8a + a1c9e94 commit d42adb2
Show file tree
Hide file tree
Showing 17 changed files with 2,167 additions and 481 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,13 @@ IFS:

We are grateful for your effort, and hope that these tools will contribute to your scientific work and discoveries. Please feel free to report any bug or possible improvement to the author(s).

Author
------
Author and contributors
-----------------------

Arthur Vigan <[[email protected]](mailto:[email protected])>, Laboratoire d'Astrophysique de Marseille / CNRS

With important contributions from:
* Julien Milli (IPAG/UGA): Support of SPARTA files
* Jean-Françoise Sauvage (ONERA): Support of SPARTA files
* Dino Mesa (INAF/OAPD): IFS pre-processing
* ESO personnel in general: SPHERE pipeline and calibration procedures
35 changes: 35 additions & 0 deletions examples/sparta_reduction.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import sphere.SPARTA as SPARTA

####################################################@
# full reduction
#

#%% init reduction
reduction = SPARTA.Reduction('/Users/avigan/data/sphere-test-target/SPARTA/', log_level='info')

#%% configuration
reduction.config['misc_plot'] = True
reduction.show_config()

#%% reduction
reduction.full_reduction()

####################################################
# manual reduction
#

#%% init reduction
reduction = SPARTA.Reduction('/Users/avigan/data/sphere-test-target/SPARTA/', log_level='info')

#%% sorting
reduction.sort_files()

#%% science processing
reduction.sph_sparta_dtts(plot=False)
reduction.sph_sparta_wfs_parameters()
reduction.sph_sparta_atmospheric_parameters()
reduction.sph_query_databases(timeout=2)
reduction.sph_sparta_plot()

#%% cleaning
reduction.sph_sparta_clean(delete_raw=False, delete_products=False)
6 changes: 6 additions & 0 deletions examples/sphere_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,11 @@
red.config['clean'] = True
print()

print('SPARTA reductions:')
for red in ds.SPARTA_reductions:
print(red)
red.config['clean'] = True
print()

#%% full reduction with default parameters
ds.full_reduction()
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# setup
setup(
name='vlt-sphere',
version='1.2',
version='1.3',
description='Reduction and analysis code for the VLT/SPHERE instrument',
long_description=long_description,
long_description_content_type='text/markdown',
Expand Down
Loading

0 comments on commit d42adb2

Please sign in to comment.