Index: trunk/MagicSoft/Mars/mastro/MAstroCatalog.cc
===================================================================
--- trunk/MagicSoft/Mars/mastro/MAstroCatalog.cc	(revision 9195)
+++ trunk/MagicSoft/Mars/mastro/MAstroCatalog.cc	(revision 9292)
@@ -1,4 +1,4 @@
 /* ======================================================================== *\
-! $Name: not supported by cvs2svn $:$Id: MAstroCatalog.cc,v 1.31 2008-07-14 19:59:08 tbretz Exp $
+! $Name: not supported by cvs2svn $:$Id: MAstroCatalog.cc,v 1.32 2009-02-03 13:27:58 tbretz Exp $
 ! --------------------------------------------------------------------------
 !
@@ -169,4 +169,7 @@
 using namespace std;
 
+// Datacenter default path for catalogs
+const TString MAstroCatalog::kDefaultPath="/magic/datacenter/setup";
+
 // --------------------------------------------------------------------------
 //
@@ -281,4 +284,11 @@
     gLog << inf << "Reading Xephem catalog: " << catalog << endl;
 
+    gSystem->ExpandPathName(catalog);
+    if (gSystem->AccessPathName(catalog, kReadPermission))
+    {
+        gLog << inf2 << "Searching Xephem catalog " << catalog << " in " << kDefaultPath << endl;
+        catalog.Prepend(kDefaultPath);
+    }
+
     MZlib fin(catalog);
     if (!fin)
@@ -362,4 +372,11 @@
     gLog << inf << "Reading NGC2000 catalog: " << catalog << endl;
 
+    gSystem->ExpandPathName(catalog);
+    if (gSystem->AccessPathName(catalog, kReadPermission))
+    {
+        gLog << inf2 << "Searching NGC2000 catalog " << catalog << " in " << kDefaultPath << endl;
+        catalog.Prepend(kDefaultPath);
+    }
+
     MZlib fin(catalog);
     if (!fin)
@@ -425,4 +442,11 @@
 {
     gLog << inf << "Reading Bright Star Catalog (BSC5) catalog: " << catalog << endl;
+
+    gSystem->ExpandPathName(catalog);
+    if (gSystem->AccessPathName(catalog, kReadPermission))
+    {
+        gLog << inf2 << "Searching Bright Star catalog " << catalog << " in " << kDefaultPath << endl;
+        catalog.Prepend(kDefaultPath);
+    }
 
     MZlib fin(catalog);
@@ -497,4 +521,11 @@
 {
     gLog << inf << "Reading Heasarc PPM catalog: " << catalog << endl;
+
+    gSystem->ExpandPathName(catalog);
+    if (gSystem->AccessPathName(catalog, kReadPermission))
+    {
+        gLog << inf2 << "Searching Heasarc PPM catalog " << catalog << " in " << kDefaultPath << endl;
+        catalog.Prepend(kDefaultPath);
+    }
 
     MZlib fin(catalog);
@@ -601,4 +632,11 @@
 
     gLog << inf << "Reading MAstroCatalog compressed catalog: " << catalog << endl;
+
+    gSystem->ExpandPathName(catalog);
+    if (gSystem->AccessPathName(catalog, kReadPermission))
+    {
+        gLog << inf2 << "Searching MAstroCatalog comressed catalog " << catalog << " in " << kDefaultPath << endl;
+        catalog.Prepend(kDefaultPath);
+    }
 
     MZlib fin(catalog);
Index: trunk/MagicSoft/Mars/mastro/MAstroCatalog.h
===================================================================
--- trunk/MagicSoft/Mars/mastro/MAstroCatalog.h	(revision 9195)
+++ trunk/MagicSoft/Mars/mastro/MAstroCatalog.h	(revision 9292)
@@ -34,4 +34,6 @@
 {
 private:
+    static const TString kDefaultPath; //! Datacenter default path for catalogs
+
     Double_t   fLimMag;     // [1]   Limiting Magnitude
     Double_t   fRadiusFOV;  // [deg] Radius of Field of View
