In [2]:
%matplotlib inline
#from IPython.external import mathjax; mathjax.install_mathjax()
import matplotlib
import numpy as np
import matplotlib.pyplot as plt
import healpy as hp
import healpy.projector as pro
import pyfits
In [3]:
In [3]:
###Make degraded versions of AKARI FIS 65micron Map
##Read-in and Display original map
map_in = hp.read_map("../AKARI_HEALPix_orig/4096_nside/akari_9_1_4096.fits")
hp.mollview(map_in, title='AKARI 9um, Nside4096, All-Sky Map:', norm = 'hist')
##Make and Display NSIDE 2048 Map
map_out = hp.pixelfunc.ud_grade(map_in,nside_out = 2048)
hp.mollview(map_out, title='AKARI 9um, Nside2048, All-Sky Map:', norm = 'hist')
#Write NSIDE 2048 Map
hp.fitsfunc.write_map("../AKARI_HEALPix_orig/2048_nside/akari_9_1_2048.fits", map_out)
##Make and Display NSIDE 1024 Map
map_out = hp.pixelfunc.ud_grade(map_in,nside_out = 1024)
hp.mollview(map_out, title='AKARI 9um, Nside1024, All-Sky Map:', norm = 'hist')
#Write NSIDE 1024 Map
hp.fitsfunc.write_map("../AKARI_HEALPix_orig/1024_nside/akari_9_1_1024.fits", map_out)
#Smooth the NSIDE 1024 Map with a 1-degFWHM-gaussian beam
map_out = hp.sphtfunc.smoothing(map_out, fwhm = 0.017, iter = 1)
#Display and write the smoothed map
hp.mollview(map_out, title='AKARI 9um, Nside1024-1Deg.Smoothed, All-Sky Map:', nest = False, norm = 'hist')
hp.write_map("../AKARI_HEALPix_orig/1024_nside/akari_9_1_1024_1dres.fits",map_out)
In [4]:
###Make degraded versions of AKARI FIS 65micron Map
##Read-in and Display original map
map_in = hp.read_map("../AKARI_HEALPix_orig/4096_nside/akari_65_1_4096.fits")
hp.mollview(map_in, title='AKARI 65um, Nside4096, All-Sky Map:', norm = 'hist')
##Make and Display NSIDE 2048 Map
map_out = hp.pixelfunc.ud_grade(map_in,nside_out = 2048)
hp.mollview(map_out, title='AKARI 65um, Nside2048, All-Sky Map:', norm = 'hist')
#Write NSIDE 2048 Map
hp.fitsfunc.write_map("../AKARI_HEALPix_orig/2048_nside/akari_65_1_2048.fits", map_out)
##Make and Display NSIDE 1024 Map
map_out = hp.pixelfunc.ud_grade(map_in,nside_out = 1024)
hp.mollview(map_out, title='AKARI 65um, Nside1024, All-Sky Map:', norm = 'hist')
#Write NSIDE 1024 Map
hp.fitsfunc.write_map("../AKARI_HEALPix_orig/1024_nside/akari_65_1_1024.fits", map_out)
#Smooth the NSIDE 1024 Map with a 1-degFWHM-gaussian beam
map_out = hp.sphtfunc.smoothing(map_out, fwhm = 0.017, iter = 1)
#Display and write the smoothed map
hp.mollview(map_out, title='AKARI 65um, Nside1024-1Deg.Smoothed, All-Sky Map:', nest = False, norm = 'hist')
hp.write_map("../AKARI_HEALPix_orig/1024_nside/akari_65_1_1024_1dres.fits",map_out)
In [5]:
###Make degraded versions of AKARI FIS WideS Map
##Read-in and Display original map
map_in = hp.read_map("../AKARI_HEALPix_orig/4096_nside/akari_WideS_1_4096.fits")
hp.mollview(map_in, title='AKARI WideS, Nside4096, All-Sky Map:', norm = 'hist')
##Make and Display NSIDE 2048 Map
map_out = hp.pixelfunc.ud_grade(map_in,nside_out = 2048)
hp.mollview(map_out, title='AKARI WideS, Nside2048, All-Sky Map:', norm = 'hist')
#Write NSIDE 2048 Map
hp.fitsfunc.write_map("../AKARI_HEALPix_orig/2048_nside/akari_WideS_1_2048.fits", map_out)
##Make and Display NSIDE 1024 Map
map_out = hp.pixelfunc.ud_grade(map_in,nside_out = 1024)
hp.mollview(map_out, title='AKARI WideS, Nside1024, All-Sky Map:', norm = 'hist')
#Write NSIDE 1024 Map
hp.fitsfunc.write_map("../AKARI_HEALPix_orig/1024_nside/akari_WideS_1_1024.fits", map_out)
#Smooth the NSIDE 1024 Map with a 1-degFWHM-gaussian beam
map_out = hp.sphtfunc.smoothing(map_out, fwhm = 0.017, iter = 1)
#Display and write the smoothed map
hp.mollview(map_out, title='AKARI WideS, Nside1024-1Deg.Smoothed, All-Sky Map:', nest = False, norm = 'hist')
hp.write_map("../AKARI_HEALPix_orig/1024_nside/akari_WideS_1_1024_1dres.fits",map_out)
In [6]:
###Make degraded versions of AKARI FIS WideL Map
##Read-in and Display original map
map_in = hp.read_map("../AKARI_HEALPix_orig/4096_nside/akari_WideL_1_4096.fits")
hp.mollview(map_in, title='AKARI WideL, Nside4096, All-Sky Map:', norm = 'hist')
##Make and Display NSIDE 2048 Map
map_out = hp.pixelfunc.ud_grade(map_in,nside_out = 2048)
hp.mollview(map_out, title='AKARI WideL, Nside2048, All-Sky Map:', norm = 'hist')
#Write NSIDE 2048 Map
hp.fitsfunc.write_map("../AKARI_HEALPix_orig/2048_nside/akari_WideL_1_2048.fits", map_out)
##Make and Display NSIDE 1024 Map
map_out = hp.pixelfunc.ud_grade(map_in,nside_out = 1024)
hp.mollview(map_out, title='AKARI WideL, Nside1024, All-Sky Map:', norm = 'hist')
#Write NSIDE 1024 Map
hp.fitsfunc.write_map("../AKARI_HEALPix_orig/1024_nside/akari_WideL_1_1024.fits", map_out)
#Smooth the NSIDE 1024 Map with a 1-degFWHM-gaussian beam
map_out = hp.sphtfunc.smoothing(map_out, fwhm = 0.017, iter = 1)
#Display and write the smoothed map
hp.mollview(map_out, title='AKARI WideL, Nside1024-1Deg.Smoothed, All-Sky Map:', nest = False, norm = 'hist')
hp.write_map("../AKARI_HEALPix_orig/1024_nside/akari_WideL_1_1024_1dres.fits",map_out)
In [7]:
###Make degraded versions of AKARI FIS 160um Map
##Read-in and Display original map
map_in = hp.read_map("../AKARI_HEALPix_orig/4096_nside/akari_160_1_4096.fits")
hp.mollview(map_in, title='AKARI 160 um, Nside4096, All-Sky Map:', norm = 'hist')
##Make and Display NSIDE 2048 Map
map_out = hp.pixelfunc.ud_grade(map_in,nside_out = 2048)
hp.mollview(map_out, title='AKARI 160 um, Nside2048, All-Sky Map:', norm = 'hist')
#Write NSIDE 2048 Map
hp.fitsfunc.write_map("../AKARI_HEALPix_orig/2048_nside/akari_160_1_2048.fits", map_out)
##Make and Display NSIDE 1024 Map
map_out = hp.pixelfunc.ud_grade(map_in,nside_out = 1024)
hp.mollview(map_out, title='AKARI 160 um, Nside1024, All-Sky Map:', norm = 'hist')
#Write NSIDE 1024 Map
hp.fitsfunc.write_map("../AKARI_HEALPix_orig/1024_nside/akari_160_1_1024.fits", map_out)
#Smooth the NSIDE 1024 Map with a 1-degFWHM-gaussian beam
map_out = hp.sphtfunc.smoothing(map_out, fwhm = 0.017, iter = 1)
#Display and write the smoothed map
hp.mollview(map_out, title='AKARI 160 um, Nside1024-1Deg.Smoothed, All-Sky Map:', nest = False, norm = 'hist')
hp.write_map("../AKARI_HEALPix_orig/1024_nside/akari_160_1_1024_1dres.fits",map_out)
In [ ]:
In [ ]: