Debian Codegraph @

Healpix_cxx/calc_powspec_module.cc

raw symbols SCIP
1 /*
2 * This file is part of Healpix_cxx.
3 *
4 * Healpix_cxx is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * Healpix_cxx is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with Healpix_cxx; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17 *
18 * For more information about HEALPix, see http://healpix.sourceforge.net
19 */
20
21 /*
22 * Healpix_cxx is being developed at the Max-Planck-Institut fuer Astrophysik
23 * and financially supported by the Deutsches Zentrum fuer Luft- und Raumfahrt
24 * (DLR).
25 */
26
27 /*
28 * Copyright (C) 2004-2011 Max-Planck-Society
29 * Author: Martin Reinecke
30 */
31
32 #include "fitshandle.h"cxx . . $ `<file>/cxxsupport/fitshandle.h`/
33 #include "paramfile.h"cxx . . $ `<file>/cxxsupport/paramfile.h`/
34 #include "alm.h"cxx . . $ `<file>/Healpix_cxx/alm.h`/
35 #include "alm_fitsio.h"cxx . . $ `<file>/Healpix_cxx/alm_fitsio.h`/
36 #include "powspec.h"cxx . . $ `<file>/Healpix_cxx/powspec.h`/
37 #include "powspec_fitsio.h"cxx . . $ `<file>/Healpix_cxx/powspec_fitsio.h`/
38 #include "alm_powspec_tools.h"cxx . . $ `<file>/Healpix_cxx/alm_powspec_tools.h`/
39 #include "levels_facilities.h"cxx . . $ `<file>/cxxsupport/levels_facilities.h`/
40 #include "announce.h"cxx . . $ `<file>/cxxsupport/announce.h`/
41
42 using namespace std;
43
44 int calc_powspec_modulecxx . . $ calc_powspec_module(d8e43b79a186046c). (int argc, const char **argv)
45 {
46 module_startupcxx . . $ module_startup(6016d3cfa636e927). ("calc_powspec"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).,argc,argv);
47 paramfilecxx . . $ paramfile# params (getParamsFromCmdlinecxx . . $ getParamsFromCmdline(7c6213c0f3b007ff).(argc,argv));
48
49 bool pol=params.findcxx . . $ paramfile#find(937824ee5449f477).<bool>("pol"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).,false);
50 stringcxx . . $ std/string# alm1=params.findcxx . . $ paramfile#find(3d3f043628062f9c).<stringcxx . . $ std/string#>("alm1"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).);
51 stringcxx . . $ std/string# ps=params.findcxx . . $ paramfile#find(3d3f043628062f9c).<stringcxx . . $ std/string#>("ps"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).);
52
53 if (!params.param_presentcxx . . $ paramfile#param_present(13a55b95a0133754).("alm2"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).))
54 {
55 int lmax,mmax;
56 pol ? get_almsize_polcxx . . $ get_almsize_pol(fee99ca928420df7).(alm1,lmax,mmax)
57 : get_almsizecxx . . $ get_almsize(7130eaaae1706dbb). (alm1,lmax,mmax);
58 Almcxx . . $ Alm#<xcomplexcxx . . $ `cxxsupport/xcomplex.h:37:9`!<float> > almTcxx . . $ Alm#Alm(3e454b8ccf442868)., almGcxx . . $ Alm#Alm(3e454b8ccf442868)., almCcxx . . $ Alm#Alm(3e454b8ccf442868).;
59 pol ? read_Alm_from_fitscxx . . $ read_Alm_from_fits(f41e94ebb4c11c94). (alm1,almT,almG,almC,lmax,mmax)
60 : read_Alm_from_fitscxx . . $ read_Alm_from_fits(50ecd0d635281a3). (alm1,almT,lmax,mmax);
61 PowSpeccxx . . $ PowSpec# powspeccxx . . $ PowSpec#PowSpec(49f6e7a06ebc5aa8).;
62 pol ? extract_powspeccxx . . $ extract_powspec(b73880df783c5ca7). (almT,almG,almC,powspec)
63 : extract_powspeccxx . . $ extract_powspec(7c6b4b13fb9d0a07). (almT,powspec);
64 write_powspec_to_fitscxx . . $ write_powspec_to_fits(df15d325c2e9e67f). (ps,powspec,pol ? 6 : 1);
65 }
66 else
67 {
68 planck_assertcxx . . $ `cxxsupport/error_handling.h:79:9`!(!pol, "polarisation not supported for cross-powerspectra");
69 int lmax,mmax;
70 get_almsizecxx . . $ get_almsize(7130eaaae1706dbb).(alm1,lmax,mmax);
71 Almcxx . . $ Alm#<xcomplexcxx . . $ `cxxsupport/xcomplex.h:37:9`!<float> > Alm1cxx . . $ Alm#Alm(3e454b8ccf442868).;
72 read_Alm_from_fitscxx . . $ read_Alm_from_fits(50ecd0d635281a3). (alm1,Alm1,lmax,mmax);
73 stringcxx . . $ std/string# alm2=params.findcxx . . $ paramfile#find(3d3f043628062f9c).<stringcxx . . $ std/string#>("alm2"cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d).);
74 get_almsizecxx . . $ get_almsize(7130eaaae1706dbb).(alm2,lmax,mmax);
75 Almcxx . . $ Alm#<xcomplexcxx . . $ `cxxsupport/xcomplex.h:37:9`!<float> > Alm2cxx . . $ Alm#Alm(3e454b8ccf442868).;
76 read_Alm_from_fitscxx . . $ read_Alm_from_fits(50ecd0d635281a3). (alm2,Alm2,lmax,mmax);
77 PowSpeccxx . . $ PowSpec# powspeccxx . . $ PowSpec#PowSpec(49f6e7a06ebc5aa8).;
78 extract_crosspowspeccxx . . $ extract_crosspowspec(5faa515f3971e8c). (Alm1,Alm2,powspec);
79 write_powspec_to_fitscxx . . $ write_powspec_to_fits(df15d325c2e9e67f). (ps,powspec,1);
80 }
81
82 return 0;
83 }