------ map2vis.cc : Computing Visibility array from an input map and a set of baselines -------
**JSkyMap** package Version tag= JSkyMap_Apr2021 (V= 1.75)
map2vis/usage: map2vis [-options] [dish1_pos dish2_pos dish3_pos ...]
List of optional arguments and their description:
[-setup SetupFileName] [-paon4] [-tian16] [-lat latitude_degree] [-D dish_diameter]
[-pdec angles_degree] [-freq f0_MHz] [-lam lambda0_meter] [-ngb]
[-lmax ell_max] [-healpix nside] [-tphi nring]
[-in inMapFilename] [-mapfb MapFreq,MapBeta] [-ingalc] [-hdunum num] [-fitscol ColName]
[-src SourceListFile] [-sfb RefFreq,def_beta]
[-out outVisFilename] [-baslf baselinearrFile]
[-savbeam BeamFileName] [-rdbeam BeamFileName]
[-nthreads nthr_mm,nthr_bc] [-mxprod blas,nthr] [-sharp]
[-prt PrintLevel] [-ckdebug FileName]
-setup SetupFileName : setup array as defined in file SetupFileName (see setup_paon4.d as example)
-paon4 : define antenna positions as in PAON4 (4 antennae)
-tian16 : define antenna positions as in Tianlai 16 dish array
No antenna positions needs to be specified if -paon4 or -tian16 or setup file specified
-pdec angles : comma separated list of declination pointing angles (in decimal degrees)
-D dish_diameter : define effective dish diameter (in meter D*eff)
-freq f0_MHz : define observation frequency , in MHz
-lam lambda0_meter : define observation wavelength , in meters
-bpm BeamFile : beam response as a spherical pixel map (SphereThetaPhi , PPF) (default NONE)
-bpm NOT YET IMPLEMENTED HERE
-ngb : Do not use gaussian beam -> Bessel J1 (defaut : gaussian beam)
-lmax ell_max : define Lmax value for SHT , which defines the visibility RA resolution wavelength (2*lmax RA bin)
-healpix nside: set HEALPix nside pixelisation parameter for input map and JSkyMap (def=256 -> 13.75' resolution)
-tphi nring : select ThetaPhi pixelisation for input map and corresponding nring
-in inMapFilename : input map (Sphere HEALPix or ThetaPhi) file name
-mapfb MapFreq,MapBeta : Input map frequency and spectral index for extrapolating input map fluxes
if specified extrapolate input map pixel values to the observed frequency. Scale by (ObsFreq/MapFreq)^MapBeta
-ingalc : Input map considered in galactic coordinate system if this flag specified
-hdunum num : If specified , with num>1 , read the corresponding HDU from the input fits file
-fitscol ColName : If specified , read the data from the corresponding column in file
-src SourceListFile : Input source list file name (default NONE)
if this argument is specified, try to read the source list and add them to the input map
source file format = text format, one source/line: ra dec flux [beta=spectral index]
-sfb RefFreq,def_beta : Ref. frequency and default spectral index for extrapolating source fluxes
if this argument is specified, the source fluxes are extrapolated to the observed frequency when reading from file
-out outVisFilename : output visibility array file name
-baslf baselinearrFile : specify a file name to save the baselines as an array
-savbeam BeamFileName : save the computed beams (BeamLM objects) to the PPF file BeamFileName
-rdbeam BeamFileName : read beams (BeamLM objects) from the PPF file BeamFileName, instead of computing them
Warning: -savbeam and -rdbeam can NOT be both set
-nthreads nthr_mm,nthr_bc : Define number of threads for visibility and for beam computation
-mxprod blas,nthr : Matrix product use blas or not (blas/no) and number of threads if no-blas)
-sharp : Use lib-sharp to compute beams in (l,m) space (-> requires Sophya/ISharp module)
-prt PrintLevel: specify print level
-ckdebug FileName: Enable check / debug mode with visibilities and maps saved to the specified PPF file
>> Input or output filenames can be specified in PPF format (.ppf) , FITS format (.fits)
or HDF5 (.h5) if HDF5 support in SOPHYA enabled - PPF input format only for SphereThetaPhi