Commit eb128f34009375310188b8324668fe831c09f7e3

Authored by knodlseder
1 parent 202b62fe

add ctskymap

configure.ac
... ... @@ -327,6 +327,7 @@ AC_CONFIG_FILES([Makefile
327 327 src/ctbin/Makefile
328 328 src/ctlike/Makefile
329 329 src/ctobssim/Makefile
  330 + src/ctskymap/Makefile
330 331 src/ctools-setup
331 332 test/Makefile
332 333 test/test_cscripts.sh
... ...
src/Makefile.am
... ... @@ -4,7 +4,8 @@
4 4 SUBDIRS = ctselect \
5 5 ctbin \
6 6 ctlike \
7   - ctobssim
  7 + ctobssim \
  8 + ctskymap
8 9  
9 10 # Scripts to be distributed
10 11 scripts = ctools-setup \
... ... @@ -19,7 +20,8 @@ libctools_la_SOURCES =
19 20 libctools_la_LIBADD = ctbin/libctbin.la \
20 21 ctselect/libctselect.la \
21 22 ctlike/libctlike.la \
22   - ctobssim/libctobssim.la
  23 + ctobssim/libctobssim.la \
  24 + ctskymap/libctskymap.la
23 25  
24 26 # Distribute scripts
25 27 EXTRA_DIST = $(scripts)
... ...
test/Makefile.am
... ... @@ -9,7 +9,11 @@ endif
9 9  
10 10 # Set test environment
11 11 TESTS_ENVIRONMENT = LD_LIBRARY_PATH=$(top_builddir)/src/.libs:$(prefix)/lib:$(LD_LIBRARY_PATH) \
12   - PATH=$(top_builddir)/src/ctobssim:$(top_builddir)/src/ctbin:$(top_builddir)/src/ctselect:$(top_builddir)/src/ctlike:$(PATH) \
  12 + PATH=$(top_builddir)/src/ctobssim:$(PATH) \
  13 + PATH=$(top_builddir)/src/ctbin:$(PATH) \
  14 + PATH=$(top_builddir)/src/ctselect:$(PATH) \
  15 + PATH=$(top_builddir)/src/ctlike:$(PATH) \
  16 + PATH=$(top_builddir)/src/ctskymap:$(PATH) \
13 17 $(TEST_PYTHON_ENV)
14 18  
15 19 # Tests (these are the tests to be executed)
... ...
test/test_ctools.sh
... ... @@ -69,6 +69,32 @@ echo " ok"
69 69  
70 70  
71 71 #
  72 +# Test ctskymap
  73 +# =============
  74 +echo -n "Test ctskymap: "
  75 +ctskymap evfile="events.fits" \
  76 + outfile="skymap.fits" \
  77 + emin=0.1 \
  78 + emax=100.0 \
  79 + nxpix=200 \
  80 + nypix=200 \
  81 + binsz=0.02 \
  82 + coordsys="CEL" \
  83 + xref=83.63 \
  84 + yref=22.01 \
  85 + proj="CAR"
  86 +echo -n "."
  87 +if [ -s "skymap.fits" ]
  88 +then
  89 + echo -n "."
  90 +else
  91 + echo " skymap.fits file is not valid"
  92 + exit 1
  93 +fi
  94 +echo " ok"
  95 +
  96 +
  97 +#
72 98 # Test ctbin
73 99 # ==========
74 100 echo -n "Test ctbin: "
... ...