Index: /branches/eam_branches/ipp-20151113/Ohana/src/uniphot/src/update_catalog_setgalmodel.c
===================================================================
--- /branches/eam_branches/ipp-20151113/Ohana/src/uniphot/src/update_catalog_setgalmodel.c	(revision 39192)
+++ /branches/eam_branches/ipp-20151113/Ohana/src/uniphot/src/update_catalog_setgalmodel.c	(revision 39193)
@@ -28,5 +28,6 @@
     if (fabs(starpar->FeH) > 99.0) continue;
 
-    double distance = pow(10.0, 0.2*(starpar->DistMag + 5.0));
+    // NOTE: distance is in kiloparsec
+    double distance = pow(10.0, 0.2*(starpar->DistMag + 5.0)) / 1000.0;
 
     double Lrad = starpar->galLon * RAD_DEG;
