planckdata
Planck inputs management.
Component separation inputs are downloaded from magique3 under /redtruck/ashdown/repository.
A subset of this repository is needed to run the smica comp sep pipelines.
-
planckdata.RIMO2Bl(fn, name)[source]
Read beam window function from RIMO and write them to cl file.
-
planckdata.check_file_is_present(filename, pla=False, product='MAP.MAP_ID')[source]
Check that filename is already present, and download it if not.
-
planckdata.download_all()[source]
Download data a priori
-
planckdata.ensure_arbo(filename)[source]
Ensure that filename’s subdirectory exists in the local REDTRUCK repository
-
planckdata.get_PlanckClfile(year='2015')[source]
Return planck empirical cmb spectra file
-
planckdata.get_binfile()[source]
Return xpol bin file
-
planckdata.get_bl(name, release=None)[source]
Return transfer function from file.
-
planckdata.get_calibfile(release=None)[source]
-
planckdata.get_catalogfile(name, release=None)[source]
Return point source catalog provided by the MHW team.
-
planckdata.get_commonmask(field='int', apo=30, release=None, reso='005a_2048')[source]
-
planckdata.get_commonmask_mll(field='int', apo=30, release=None)[source]
-
planckdata.get_freq(name)[source]
Return central frequency as int
-
planckdata.get_fwhm_beam(name)[source]
Return approximate FWHM.
-
planckdata.get_galmask(fsky=60, radius=0)[source]
Return a galactic mask file.
-
planckdata.get_inputcmb(release=None)[source]
-
planckdata.get_lambdaCDMfile(year='2015')[source]
Return likelihood best fit file
-
planckdata.get_mapfile(name, set, release=None)[source]
Return input map for a given name in [030,044,...,857] and dataset in [full, hr1, hr2, ...]
Default release is read from RELEASE environment variable
-
planckdata.get_misspixmask(field='int', apo=30, release=None, reso='005a_2048')[source]
-
planckdata.get_outputcmb(team='smica', field='int', release=None, reso='005a_2048', dset='full')[source]
-
planckdata.get_ps2galmask(radius=0, release=None)[source]
Return minimum galactic mask.
TODO : to be replaced by a function which computes it !
-
planckdata.get_psmaskfile(name, release=None)[source]
Return point source mask provided by the MHW team.
-
planckdata.get_unit_factor(name, fr='K_CMB', to='K_CMB', release=None)[source]
Return extra conversion factor MJy/sr -> KCMB
-
planckdata.is_hfi(name)[source]
-
planckdata.is_lfi(name)[source]
-
planckdata.is_polarized(name, release=None)[source]
-
planckdata.load_catalog(name, snr_t)[source]
Load MHW catalog and applied SNR cut
The output catalog includes [pixnum, glon, glat, flux, flux_err]
-
planckdata.load_hfi_catalog(fn, name, snr_t, nside=2048)[source]
Load HFI MHW catalog from COM PCCP usual fits format
(glon, glat in columns 2 and 3 ; flux and error in columns 6 and 7)
-
planckdata.load_lfi_catalog(fn, name, snr_t, nside=1024)[source]
Load LFI MHW catalog from 4 columns txt format
(glon, gcolat, flux and snr)
-
planckdata.parse_unit(inmap)[source]