Merge branch 'master' into cleancode
This commit is contained in:
commit
b5dab6c1c9
|
@ -1,7 +1,8 @@
|
|||
vr 2 dec 2016 23:07:19 CET
|
||||
SAGECal Installation
|
||||
====================
|
||||
0) Prerequsites:
|
||||
|
||||
# SAGECal Installation
|
||||
|
||||
## 1 Prerequsites:
|
||||
- CASACORE http://casacore.googlecode.com/
|
||||
- glib http://developer.gnome.org/glib
|
||||
- BLAS/LAPACK
|
||||
|
@ -15,12 +16,13 @@ SAGECal Installation
|
|||
-- Intel MKL and other libraries
|
||||
- Get the source for SAGECal : git clone git://git.code.sf.net/p/sagecal/code sagecal-code
|
||||
|
||||
1) The basic way to build is
|
||||
## 2 The basic way to build is
|
||||
1.a) go to ./src/lib and run make (which will create libsagecal.a)
|
||||
1.b) go to ./src/MS and run make (which will create the executable)
|
||||
|
||||
|
||||
2) In ./src/lib and ./src/MS you MUST edit the Makefiles to suit your system. Some common items to edit are:
|
||||
## 3 Build settings
|
||||
In ./src/lib and ./src/MS you MUST edit the Makefiles to suit your system. Some common items to edit are:
|
||||
- LAPACK: directory where LAPACK/OpenBLAS is installed
|
||||
- GLIBI/GLIBL: include/lib files for glib
|
||||
- CASA_LIBDIR/CASA_INCDIR/CASA_LIBS : casacore include/library location and files:
|
||||
|
@ -39,23 +41,23 @@ SAGECal Installation
|
|||
|
||||
|
||||
|
||||
SAGECAL-MPI Installation
|
||||
========================
|
||||
0) Prerequsites:
|
||||
# SAGECAL-MPI Installation
|
||||
|
||||
## 1 Prerequsites:
|
||||
- Same as above
|
||||
- MPI (e.g. OpenMPI)
|
||||
|
||||
1) Build ./src/lib as above (using mpicc -DMPI_BUILD)
|
||||
## 2 Build ./src/lib as above (using mpicc -DMPI_BUILD)
|
||||
|
||||
2) Build ./src/MPI using mpicc++
|
||||
## 3 Build ./src/MPI using mpicc++
|
||||
|
||||
|
||||
|
||||
BUILDSKY Installation
|
||||
=====================
|
||||
1) See INSTALL in ./src/buildsky
|
||||
## BUILDSKY Installation
|
||||
|
||||
- See INSTALL in ./src/buildsky
|
||||
|
||||
|
||||
RESTORE Installation
|
||||
=====================
|
||||
1) See INSTALL in ./src/restore
|
||||
## RESTORE Installation
|
||||
|
||||
- See INSTALL in ./src/restore
|
|
@ -1,15 +1,17 @@
|
|||
SAGECAL
|
||||
=======
|
||||
# SAGECAL
|
||||
|
||||
|
||||
Read INSTALL for installation. This file gives a brief guide to use SAGECal.
|
||||
Warning: this file may be obsolete. use sagecal -h to see up-to-date options.
|
||||
|
||||
|
||||
Step by Step Introduction:
|
||||
#######################################################################
|
||||
## Step by Step Introduction:
|
||||
|
||||
1a)Calibrate data in the standard way using BBS/CASA or anything else.
|
||||
Use NDPP to average the data in your MS to a few channels (also average in time to about 10sec). Also flag any spikes in the data.
|
||||
1b)For subtraction of the ATeam from raw data (CasA,CygA,...), no initial calibration is necessary. Just run sagecal on raw data, but it is better to scale the sky model to match the apparent flux of the sources that are being subtracted.
|
||||
#######################################################################
|
||||
|
||||
|
||||
2) Sky Model:
|
||||
3a)Make an image of your MS (using ExCon/casapy).
|
||||
Use Duchamp to create a mask for the image. Use buildsky to create a sky model. (see the README file on top level directory). Also create a proper cluster file.
|
||||
|
@ -39,15 +41,15 @@ e.g.
|
|||
|
||||
P1C1 0 12 42.996 85 43 21.514 0.030498 0 0 0 -5.713060 0 0 0 0 115039062.0
|
||||
P5C1 1 18 5.864 85 58 39.755 0.041839 0 0 0 -6.672879 0 0 0 0 115039062.0
|
||||
# A Gaussian mjor,minor 0.1375,0.0917 deg diameter -> radius(rad), PA 43.4772 deg (-> rad)
|
||||
# Position Angle: "West from North (counter-clockwise)" (0 deg = North, 90 deg = West).
|
||||
# Note: PyBDSM and BBS use "North from East (counter-clockwise)" (0 deg = East, 90 deg = North).
|
||||
#A Gaussian mjor,minor 0.1375,0.0917 deg diameter -> radius(rad), PA 43.4772 deg (-> rad)
|
||||
#Position Angle: "West from North (counter-clockwise)" (0 deg = North, 90 deg = West).
|
||||
#Note: PyBDSM and BBS use "North from East (counter-clockwise)" (0 deg = East, 90 deg = North).
|
||||
G0 5 34 31.75 22 00 52.86 100 0 0 0 0.00 0 0.0012 0.0008 -2.329615801 130.0e6
|
||||
# A Disk radius=0.041 deg
|
||||
#A Disk radius=0.041 deg
|
||||
D01 23 23 25.67 58 48 58 80 0 0 0 0 0 0.000715 0.000715 0 130e6
|
||||
# A Ring radius=0.031 deg
|
||||
#A Ring radius=0.031 deg
|
||||
R01 23 23 25.416 58 48 57 70 0 0 0 0 0 0.00052 0.00052 0 130e6
|
||||
# A shapelet ('S3C61MD.fits.modes' file must be in the current directory)
|
||||
#A shapelet ('S3C61MD.fits.modes' file must be in the current directory)
|
||||
S3C61MD 2 22 49.796414 86 18 55.913266 0.135 0 0 0 -6.6 0 1 1 0.0 115000000.0
|
||||
|
||||
|
|
@ -1,9 +1,11 @@
|
|||
OUTPUT=
|
||||
CXX=g++
|
||||
|
||||
CXXFLAGS=-O3 -Wall -g -pg #-fnostack-protector
|
||||
# CASA_LIBDIR=-L/cm/shared/package/casacore/v2.1.0-gcc-4.9.3/lib -L/cm/shared/package/cfitsio/3380-gcc-4.9.3/lib -L/cm/shared/package/lapack/3.6.0-gcc-4.9.3/lib64
|
||||
CASA_LIBDIR=-L/cm/shared/package/casacore/v2.3.0-gcc-4.9.3/lib -L/cm/shared/package/cfitsio/3380-gcc-4.9.3/lib -L/cm/shared/package/lapack/3.6.0-gcc-4.9.3/lib64
|
||||
# CASA_INCDIR=-I/cm/shared/package/casacore/v2.1.0-g++-4.9.3/include -I/cm/shared/package/casacore/v2.1.0-g++-4.9.3/include/casacore
|
||||
|
||||
CASA_INCDIR=-I/cm/shared/package/casacore/v2.3.0-gcc-4.9.3/include -I/cm/shared/package/casacore/v2.3.0-gcc-4.9.3/include/casacore
|
||||
CASA_LIBS=-lcasa_casa -lcasa_tables -lcasa_measures -lcasa_ms -lcfitsio
|
||||
#LAPACK=-llapack -lblas
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
CC=gcc
|
||||
CXX=g++
|
||||
#CFLAGS= -Wall -O3 -g #-pg
|
||||
CFLAGS= -Wall -O3 -fopt-info-optimized
|
||||
CFLAGS= -Wall -g -pg
|
||||
# Extra args for making callgraphs.
|
||||
# CFLAGS= -Wall -pg -O2 -ansi -fPIC -fpermissive -fno-omit-frame-pointer -DNDEBUG -fno-inline-functions -fno-inline-functions-called-once -fno-optimize-sibling-calls
|
||||
# CFLAGS= -Wall -O3 -fopt-info-optimized
|
||||
CLIBS= -lm -lpthread
|
||||
#LAPACK=-L/usr/lib/atlas/sse -llapack -lblas
|
||||
#LAPACK=-L/usr/local/GotoBLAS2/lib -lgoto2 -lpthread -lgfortran
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
CC=gcc
|
||||
CXX=g++
|
||||
#CFLAGS= -Wall -O3 -g #-pg
|
||||
CFLAGS= -Wall -O3 -fopt-info-optimized
|
||||
CFLAGS= -Wall -g -pg
|
||||
# Extra args for making callgraphs.
|
||||
# CFLAGS= -Wall -pg -O2 -ansi -fPIC -fpermissive -fno-omit-frame-pointer -DNDEBUG -fno-inline-functions -fno-inline-functions-called-once -fno-optimize-sibling-calls
|
||||
# CFLAGS= -Wall -O3 -fopt-info-optimized
|
||||
CLIBS= -lm -lpthread
|
||||
#LAPACK=-L/usr/lib/atlas/sse -llapack -lblas
|
||||
#LAPACK=-L/usr/local/GotoBLAS2/lib -lgoto2 -lpthread -lgfortran
|
||||
|
|
Loading…
Reference in New Issue