program s2_nmask
! Uses
use s2_types_mod
use s2_error_mod
use s2_sky_mod
use s2_distn_mod
use s2_ylm_mod
! Calls
call parse_options
call s2_error
call s2_sky_free
call s2_sky_get_map
call s2_sky_io_fits_write
call s2_sky_write_map_file
! Variables
real (kind=s2_sp), parameter :: ZERO_TOL = 1e-5
character (len=*), parameter :: MAP_FILE = 'map'
character (len=*), parameter :: SKY_FILE = 'sky'
integer :: file_type = S2_SKY_FILE_TYPE_MAP
integer :: ext = 1
character (len=S2_STRING_LEN) :: file_type_str = MAP_FILE
character (len=S2_STRING_LEN) :: filename_mask
character (len=S2_STRING_LEN) :: filename_out
type (s2_sky) :: mask
type (s2_sky) :: nmask
real (kind=s2_sp), allocatable, dimension (:) :: mask_map
real (kind=s2_sp), allocatable, dimension (:) :: nmask_map
type (s2_sky) :: ylm1_real
type (s2_sky) :: ylm1_imag
type (s2_sky) :: ylm2_real
type (s2_sky) :: ylm2_imag
real (kind=s2_sp), allocatable, dimension (:) :: ylm1_real_map
real (kind=s2_sp), allocatable, dimension (:) :: ylm1_imag_map
real (kind=s2_sp), allocatable, dimension (:) :: ylm2_real_map
real (kind=s2_sp), allocatable, dimension (:) :: ylm2_imag_map
complex (kind=s2_spc), allocatable, dimension (:,:,:,:) :: cov
integer :: ipix
integer :: npix
integer :: nside
integer :: pix_scheme
integer :: lmax
integer :: fail
integer :: seed
integer :: el1
integer :: m1
integer :: el2
integer :: m2
real (kind=s2_sp) :: nsigma = 1e0
complex (kind=s2_dpc), parameter :: I = cmplx (0d0, 1d0)
! Subroutines and functions
subroutine parse_options ()
end program s2_nmask
Generate noisy masks and computed harmonic space noise covariance matrix
(not yet outputted) from a binary mask.
Usage: s2_nmask
Author: J. D. McEwen (mcewen@mrao.cam.ac.uk)
Version: 0.1 - February 2008
real (kind=s2_sp), parameter :: ZERO_TOL = 1e-5
character (len=*), parameter :: MAP_FILE = 'map'
character (len=*), parameter :: SKY_FILE = 'sky'
integer :: file_type = S2_SKY_FILE_TYPE_MAP
integer :: ext = 1
character (len=S2_STRING_LEN) :: file_type_str = MAP_FILE
character (len=S2_STRING_LEN) :: filename_mask
character (len=S2_STRING_LEN) :: filename_out
type (s2_sky) :: mask
type (s2_sky) :: nmask
real (kind=s2_sp), allocatable, dimension (:) :: mask_map
real (kind=s2_sp), allocatable, dimension (:) :: nmask_map
type (s2_sky) :: ylm1_real
type (s2_sky) :: ylm1_imag
type (s2_sky) :: ylm2_real
type (s2_sky) :: ylm2_imag
real (kind=s2_sp), allocatable, dimension (:) :: ylm1_real_map
real (kind=s2_sp), allocatable, dimension (:) :: ylm1_imag_map
real (kind=s2_sp), allocatable, dimension (:) :: ylm2_real_map
real (kind=s2_sp), allocatable, dimension (:) :: ylm2_imag_map
complex (kind=s2_spc), allocatable, dimension (:,:,:,:) :: cov
integer :: ipix
integer :: npix
integer :: nside
integer :: pix_scheme
integer :: lmax
integer :: fail
integer :: seed
integer :: el1
integer :: m1
integer :: el2
integer :: m2
real (kind=s2_sp) :: nsigma = 1e0
complex (kind=s2_dpc), parameter :: I = cmplx (0d0, 1d0)
subroutine parse_options ()
! Calls: getArgument
end subroutine parse_options
Parse the options passed when program called.
Author: J. D. McEwen (mcewen@mrao.cam.ac.uk)
Version: 0.1 - November 2004