HumVI Examples

Check these out!


In [1]:
import humvi

%reload_ext autoreload
%autoreload 2

from IPython.display import Image

CFHTLS


In [2]:
rfile, gfile, bfile, outfile = 'CFHTLS-test_i.fits', 'CFHTLS-test_r.fits', 'CFHTLS-test_g.fits', 'CFHTLS-test_gri.png'

scales, offset, Q, alpha, masklevel, saturation = (0.4,0.6,1.7), 0.0, 1.7, 0.09, -1.0, 'white'

humvi.compose(rfile, gfile, bfile, scales=scales, Q=Q, alpha=alpha, \
              masklevel=masklevel, saturation=saturation, offset=offset, \
              backsub=False, vb=True, outfile=outfile)

Image(filename=outfile,width=400)


HumVI: Making color composite image of data in following files: CFHTLS-test_i.fits CFHTLS-test_r.fits CFHTLS-test_g.fits
HumVI: Output will be written to CFHTLS-test_gri.png
HumVI: Masking stretched pixel values less than -1.0
HumVI: Scales normalized to: 0.444444444444 0.666666666667 1.88888888889
HumVI: Stretch parameters Q,alpha: 1.7 0.09
HumVI: At low surface brightness levels, the channel images are further rescaled by alpha
HumVI: Nonlinearity sets in at about 1/Q*alpha in the scaled intensity image: 6.53594771242
HumVI: Image saved to: CFHTLS-test_gri.png
Out[2]:

VICS82


In [3]:
rfile, gfile, bfile, outfile = 'VICS82-test_Ks.fits', 'VICS82-test_J.fits', 'VICS82-test_i.fits', 'VICS82-test_iJKs.png'

scales, offset, Q, alpha, masklevel, saturation = (1.0,1.4,2.0), 0.0, 1.5, 0.4, -1.0, 'white'

humvi.compose(rfile, gfile, bfile, scales=scales, Q=Q, alpha=alpha, \
              masklevel=masklevel, saturation=saturation, offset=offset, \
              backsub=False, vb=True, outfile=outfile)

Image(filename=outfile,width=400)


HumVI: Making color composite image of data in following files: VICS82-test_Ks.fits VICS82-test_J.fits VICS82-test_i.fits
HumVI: Output will be written to VICS82-test_iJKs.png
HumVI: Masking stretched pixel values less than -1.0
HumVI: Scales normalized to: 0.681818181818 0.954545454545 1.36363636364
HumVI: Stretch parameters Q,alpha: 1.5 0.4
HumVI: At low surface brightness levels, the channel images are further rescaled by alpha
HumVI: Nonlinearity sets in at about 1/Q*alpha in the scaled intensity image: 1.66666666667
HumVI: Image saved to: VICS82-test_iJKs.png
Out[3]:

KiDS


In [4]:
rfile, gfile, bfile, outfile = 'KiDS-test_i.fits', 'KiDS-test_r.fits', 'KiDS-test_g.fits', 'KiDS-test_gri.png'

scales, offset, Q, alpha, masklevel, saturation = (0.3,0.8,1.7), 0.0, 1.5, 0.05, -1.0, 'white'

humvi.compose(rfile, gfile, bfile, scales=scales, Q=Q, alpha=alpha, \
              masklevel=masklevel, saturation=saturation, offset=offset, \
              backsub=False, vb=True, outfile=outfile)

Image(filename=outfile,width=400)


HumVI: Making color composite image of data in following files: KiDS-test_i.fits KiDS-test_r.fits KiDS-test_g.fits
HumVI: Output will be written to KiDS-test_gri.png
HumVI: Masking stretched pixel values less than -1.0
HumVI: Scales normalized to: 0.321428571429 0.857142857143 1.82142857143
HumVI: Stretch parameters Q,alpha: 1.5 0.05
HumVI: At low surface brightness levels, the channel images are further rescaled by alpha
HumVI: Nonlinearity sets in at about 1/Q*alpha in the scaled intensity image: 13.3333333333
HumVI: Image saved to: KiDS-test_gri.png
Out[4]:

PS1


In [5]:
rfile, gfile, bfile, outfile = 'PS1-test_z.fits', 'PS1-test_i.fits', 'PS1-test_r.fits', 'PS1-test_riz.png'

scales, offset, Q, alpha, masklevel, saturation = (0.6,0.6,1.7), 0.0, 1.7, 0.00006, -1.0, 'white'

humvi.compose(rfile, gfile, bfile, scales=scales, Q=Q, alpha=alpha, \
              masklevel=masklevel, saturation=saturation, offset=offset, \
              backsub=False, vb=True, outfile=outfile)

Image(filename=outfile,width=400)


HumVI: Making color composite image of data in following files: PS1-test_z.fits PS1-test_i.fits PS1-test_r.fits
HumVI: Output will be written to PS1-test_riz.png
HumVI: Masking stretched pixel values less than -1.0
HumVI: Scales normalized to: 0.620689655172 0.620689655172 1.75862068966
HumVI: Stretch parameters Q,alpha: 1.7 6e-05
HumVI: At low surface brightness levels, the channel images are further rescaled by alpha
HumVI: Nonlinearity sets in at about 1/Q*alpha in the scaled intensity image: 9803.92156863
HumVI: Image saved to: PS1-test_riz.png
WARNING: VerifyWarning: Invalid 'BLANK' keyword in header.  The 'BLANK' keyword is only applicable to integer data, and will be ignored in this HDU. [astropy.io.fits.hdu.image]
Out[5]:

In [ ]: