Last change
on this file since 3785 was 3785, checked in by ansari, 15 years ago |
Ajout programme srcat2cube.cc de calcul de carte des radio source, Reza 16/06/2010
|
File size:
893 bytes
|
Line | |
---|
1 | #include "radutil.h"
|
---|
2 | #include <iostream>
|
---|
3 |
|
---|
4 | // Appel : tjyk [z=redshift] [resol_arcmin]
|
---|
5 |
|
---|
6 | int main(int narg, char* arg[])
|
---|
7 | {
|
---|
8 |
|
---|
9 | H21Conversions conv;
|
---|
10 |
|
---|
11 | double z = 0.;
|
---|
12 | double resol = 10.;
|
---|
13 | if (narg>1) z = atof(arg[1]);
|
---|
14 | if (narg>2) resol = atof(arg[2]);
|
---|
15 |
|
---|
16 | conv.setRedshift(z);
|
---|
17 | conv.setOmegaPixArcmin2(resol*resol);
|
---|
18 | cout << " ------------------------------ H21Conversions ------------------------- " << endl;
|
---|
19 | cout << " Redshift=z= " << z << " Resol(arcmin)= " << resol << endl;
|
---|
20 | cout << " H21Conversions: z=" << conv.getRedshift() << " Freq=" << conv.getFrequency()
|
---|
21 | << " MHz , Lambda=" << conv.getLambda() << " m , OmegaPix=" << conv.getOmegaPix() << " srad" << endl;
|
---|
22 | cout << " toKelvin(1 Jy)= " << conv.toKelvin(1.) << " toJansky(1 K)=" << conv.toJansky(1.) << endl;
|
---|
23 | cout << " --------------------------------------------------------------- " << endl;
|
---|
24 |
|
---|
25 | return 0;
|
---|
26 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.