guaix-ucm / megaradrp

MEGARA (Multi-Espectrógrafo en GTC de Alta Resolución para Astronomía) is a facility instrument designed for the 10.4m GTC telescope in La Palma (Spain).
https://guaix.fis.ucm.es/megara/
GNU General Public License v3.0
12 stars 6 forks source link

visualization contours #278

Open amanda-olmo opened 4 years ago

amanda-olmo commented 4 years ago

I can not draw contours with visualization. I am using the latest development version of megaradrp. However, it works fine in my laptop.

python -m megaradrp.visualization mrk324_f0_ha.fits --contour --contour-image mrk324_f2_ha.fits --contour-image-column 2 -c 7 usage: visualization.py [-h] [--wcs-grid] [--wcs-pa-from-header] [--average-region AVERAGE_REGION AVERAGE_REGION] [--extname EXTNAME] [--column COLUMN] [--continuum-region CONTINUUM_REGION CONTINUUM_REGION] [--coordinate-type {pixel,wcs}] [--colormap COLORMAP] [--plot-sky] [--plot-nominal-config] [--hide-values] [--title TITLE] [--label LABEL] [--hex-size HEX_SIZE] [--hex-rel-size HEX_REL_SIZE] [--min-cut MIN_CUT] [--max-cut MAX_CUT] [--percent PERCENT] [--stretch {linear,sqrt,power,log,asinh}] RSS [RSS ...] visualization.py: error: unrecognized arguments: --contour --contour-image mrk324_f2_ha.fits --contour-image-column 2

sergiopasra commented 4 years ago

For contouring you need the cube extension. Check that you have the required module around here: https://github.com/guaix-ucm/megaradrp/blob/9760c6344d817ee38f0b068b0a0f592f32323cfa/megaradrp/visualization.py#L208