Changeset 3785 in Sophya for trunk/Cosmo/RadioBeam/tjyk.cc


Ignore:
Timestamp:
Jun 16, 2010, 11:53:54 PM (15 years ago)
Author:
ansari
Message:

Ajout programme srcat2cube.cc de calcul de carte des radio source, Reza 16/06/2010

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cosmo/RadioBeam/tjyk.cc

    r3783 r3785  
    22#include <iostream>
    33
     4// Appel : tjyk [z=redshift] [resol_arcmin]
     5 
    46int main(int narg, char* arg[])
    57{
     
    79  H21Conversions conv;
    810 
    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;
    1220  cout << " H21Conversions: z=" << conv.getRedshift() << " Freq=" << conv.getFrequency()
    1321       << " MHz , Lambda=" << conv.getLambda() << " m , OmegaPix=" << conv.getOmegaPix() << " srad" << endl;
Note: See TracChangeset for help on using the changeset viewer.