danfeldman90 / EDGE

Espaillat Disk Group Extraordinaires: Tools & Manuals
MIT License
0 stars 3 forks source link

Merge dered.py into EDGE.py #5

Closed danfeldman90 closed 9 years ago

danfeldman90 commented 9 years ago

Need to adapt that code to efficiently work with EDGE structure for merging into the main code.

yumiry commented 9 years ago

if your merge both code, you may have to considerate:

1.- To run dered.py the photometry part, the user will need to input the data in flux, can converted that using EDGE.py: convertMag. 2.- With the data in flux and dereddened('obj'_dered_phot.txt), you only need to create: photwl and photflux, to introduce the data in the pickle file.

Can skip a few step when makes a pickle file for a target

danfeldman90 commented 9 years ago

Merged via the new class Red_Obs(), which inherits from TTS_Obs(). This new class contains dered() method for dereddening and outputs a new TTS_Obs() pickle containing the data. You can also use SPPickle() as normal for Red_Obs() to create a pickle with raw data. To read it back in, you must add the red=1 keyword to the loadPickle() function.

Done.