program comb_objgen ! Uses use s2_types_mod, only: S2_STRING_LEN, s2_sp, pi use s2_error_mod use s2_pl_mod use comb_error_mod use comb_tmpl_mod use comb_obj_mod use comb_csky_mod use extension, only: getArgument, nArguments ! Calls call comb_csky_free call comb_csky_write_sky_obj call comb_obj_free call parse_options call s2_error call s2_pl_free ! Variables character, parameter :: COMMENT_CHAR = '#' character (len=S2_STRING_LEN) :: filename_inp character (len=S2_STRING_LEN) :: filename_out character (len=S2_STRING_LEN) :: line character (len=S2_STRING_LEN) :: line2 integer :: nside = 64 integer :: lmax = 128 integer :: mmax = 128 integer :: fail integer :: fileid = 32 character (len=S2_STRING_LEN) :: comb_type integer, parameter :: COMB_TYPE_OPT_NUM = 6 character (len=S2_STRING_LEN), parameter, dimension (COMB_TYPE_OPT_NUM) :: COMB_TYPE_OPT = (/ 'butterfly ', 'gaussian ', 'mexhat ', 'morlet ', 'point ', 'cos_thetaon2' /) character (len=S2_STRING_LEN), parameter :: COMB_TYPE_DEFAULT = COMB_TYPE_OPT (1) logical, parameter :: BEAM_STATUS_DEFAULT = .false. logical :: beam_status = BEAM_STATUS_DEFAULT real (kind=s2_sp), parameter :: BEAM_FWHM_DEFAULT = 13.0e0 real (kind=s2_sp) :: beam_fwhm = BEAM_FWHM_DEFAULT integer :: n_source integer :: i_source real (kind=s2_sp) :: dilation = 0.1 real (kind=s2_sp), allocatable, dimension (:) :: dilation_array real (kind=s2_sp), allocatable, dimension (:) :: amplitude real (kind=s2_sp), allocatable, dimension (:) :: alpha real (kind=s2_sp), allocatable, dimension (:) :: beta real (kind=s2_sp), allocatable, dimension (:) :: gamma type (comb_csky) :: csky type (comb_obj) :: obj_mother type (s2_pl) :: beam ! Subroutines and functions subroutine parse_options () end program comb_objgenProduct a sky map containing a number of template objects with various parameters.
Author: J. D. McEwen (mcewen[AT]mrao.cam.ac.uk)
Version: 0.1 May 2006
character, parameter :: COMMENT_CHAR = '#'
character (len=S2_STRING_LEN) :: filename_inp
character (len=S2_STRING_LEN) :: filename_out
character (len=S2_STRING_LEN) :: line
character (len=S2_STRING_LEN) :: line2
integer :: nside = 64
integer :: lmax = 128
integer :: mmax = 128
integer :: fail
integer :: fileid = 32
character (len=S2_STRING_LEN) :: comb_type
integer, parameter :: COMB_TYPE_OPT_NUM = 6
character (len=S2_STRING_LEN), parameter, dimension (COMB_TYPE_OPT_NUM) :: COMB_TYPE_OPT = (/ 'butterfly ', 'gaussian ', 'mexhat ', 'morlet ', 'point ', 'cos_thetaon2' /)
character (len=S2_STRING_LEN), parameter :: COMB_TYPE_DEFAULT = COMB_TYPE_OPT (1)
logical, parameter :: BEAM_STATUS_DEFAULT = .false.
logical :: beam_status = BEAM_STATUS_DEFAULT
real (kind=s2_sp), parameter :: BEAM_FWHM_DEFAULT = 13.0e0
real (kind=s2_sp) :: beam_fwhm = BEAM_FWHM_DEFAULT
integer :: n_source
integer :: i_source
real (kind=s2_sp) :: dilation = 0.1
real (kind=s2_sp), allocatable, dimension (:) :: dilation_array
real (kind=s2_sp), allocatable, dimension (:) :: amplitude
real (kind=s2_sp), allocatable, dimension (:) :: alpha
real (kind=s2_sp), allocatable, dimension (:) :: beta
real (kind=s2_sp), allocatable, dimension (:) :: gamma
type (comb_csky) :: csky
type (comb_obj) :: obj_mother
type (s2_pl) :: beam
subroutine parse_options () ! Calls: getArgument end subroutine parse_optionsParse the options passed when program called.
Author: J. D. McEwen (mcewen[AT]mrao.cam.ac.uk)
Version: 0.1 - November 2004