IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 37485


Ignore:
Timestamp:
Oct 11, 2014, 2:54:09 PM (12 years ago)
Author:
eugene
Message:

make sure galmodel uses arcsec

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20140904/Ohana/src/uniphot/src/update_catalog_setgalmodel.c

    r37452 r37485  
    11# include "setgalmodel.h"
    22
    3 static double iFkap = 1.0 / 4.74047; // (km/sec/kpc) / (milli-arcsec/ year)
     3static double iFkap = 0.001 / 4.74047; // (km/sec/kpc) / (arcsec/ year)
    44static double A_oort = +14.5;  // km/sec/kpc
    55static double B_oort = -13.0;  // km/sec/kpc
     
    3535    double uB_gal = -0.5*A_oort * sin(2.0*glon) * sin(2.0*glat) * iFkap;
    3636
    37     double uL_sol = (U_sol * sin(glon) - V_sol * cos(glon)) * iFkap / distance;
     37    double uL_sol =  (U_sol * sin(glon) - V_sol * cos(glon))                              * iFkap / distance;
    3838    double uB_sol = ((U_sol * cos(glon) + V_sol * sin(glon))*sin(glat) - W_sol*cos(glat)) * iFkap / distance;
    3939
Note: See TracChangeset for help on using the changeset viewer.