Changeset 3785 in Sophya for trunk/Cosmo/RadioBeam/tjyk.cc
- Timestamp:
- Jun 16, 2010, 11:53:54 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Cosmo/RadioBeam/tjyk.cc
r3783 r3785 2 2 #include <iostream> 3 3 4 // Appel : tjyk [z=redshift] [resol_arcmin] 5 4 6 int main(int narg, char* arg[]) 5 7 { … … 7 9 H21Conversions conv; 8 10 9 conv.setRedshift(0.6); 10 conv.setOmegaPixArcmin2(10.*10.); 11 cout << " --------------------------------------------------------------- " << endl; 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; 12 20 cout << " H21Conversions: z=" << conv.getRedshift() << " Freq=" << conv.getFrequency() 13 21 << " MHz , Lambda=" << conv.getLambda() << " m , OmegaPix=" << conv.getOmegaPix() << " srad" << endl;
Note:
See TracChangeset
for help on using the changeset viewer.