Skip to content

PsyJim/rss2cube

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

megararss2cube

Megararss2cube is a tool to convert MEGARA LCB reduced dataproducts from the RSS format obtained with megaradrp to a more user-friendly 3d datacube. Megararss2cube is based on the E3D format converter, e3d2cube.py, mentioned in http://ifs.wikidot.com/da-exploring.

Dependencies

scipy astropy numpy megaradrp

Install

Download the source code and extract it. Write the setup command from a terminal, on the root directory where you extracted the repository:

python setup.py install

Usage

import megararss2cube
#convert a rss fits dataproduct 'rss_product.fits' to a cube hdulist
#optionally, if writeout is defined, it writes the cube product to 'cube_product.fits'
#optinally, arcsec_per_pixel is the dersired pixel size in arcsec, by default is 0.2 
cube=megararss2cube.convert('rss_product.fits',writeout='cube_product.fits',arcsec_per_pixel=0.1)

Contact

javier.zaragoza@inaoep.mx

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 100.0%