federatedcloud / FRB_pipeline

A customizable scientific software pipeline for detecting, categorizing, and viewing single pulse candidates that may be Fast Radio Burst (FRB) sources in Radio Astronomy data.
BSD 3-Clause "New" or "Revised" License
2 stars 0 forks source link

Implement npz2fits_method #43

Open sk8forether opened 6 years ago

sk8forether commented 6 years ago

This method should create a psrfits file, including headers, from a .npz file. The .npz file should contain a numpy array and the 2 headers as dictionaries, just as is created in the fits2npz_method.

sk8forether commented 6 years ago

@adambrazier I created this issue so we can keep discussing implementation here as needed. @swCornell Do you think that you can begin implementing this? I can create a basic method file to get you started if you need it, and you can fill in the conversion. Remember we want the conversion to work both ways: fits to npz and npz to fits, so the headers will have to be set up correctly and checked.