Ignore:
Timestamp:
02/03/09 13:28:09 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mastro/MAstroCatalog.cc

    r8999 r9292  
    11/* ======================================================================== *\
    2 ! $Name: not supported by cvs2svn $:$Id: MAstroCatalog.cc,v 1.31 2008-07-14 19:59:08 tbretz Exp $
     2! $Name: not supported by cvs2svn $:$Id: MAstroCatalog.cc,v 1.32 2009-02-03 13:27:58 tbretz Exp $
    33! --------------------------------------------------------------------------
    44!
     
    169169using namespace std;
    170170
     171// Datacenter default path for catalogs
     172const TString MAstroCatalog::kDefaultPath="/magic/datacenter/setup";
     173
    171174// --------------------------------------------------------------------------
    172175//
     
    281284    gLog << inf << "Reading Xephem catalog: " << catalog << endl;
    282285
     286    gSystem->ExpandPathName(catalog);
     287    if (gSystem->AccessPathName(catalog, kReadPermission))
     288    {
     289        gLog << inf2 << "Searching Xephem catalog " << catalog << " in " << kDefaultPath << endl;
     290        catalog.Prepend(kDefaultPath);
     291    }
     292
    283293    MZlib fin(catalog);
    284294    if (!fin)
     
    362372    gLog << inf << "Reading NGC2000 catalog: " << catalog << endl;
    363373
     374    gSystem->ExpandPathName(catalog);
     375    if (gSystem->AccessPathName(catalog, kReadPermission))
     376    {
     377        gLog << inf2 << "Searching NGC2000 catalog " << catalog << " in " << kDefaultPath << endl;
     378        catalog.Prepend(kDefaultPath);
     379    }
     380
    364381    MZlib fin(catalog);
    365382    if (!fin)
     
    425442{
    426443    gLog << inf << "Reading Bright Star Catalog (BSC5) catalog: " << catalog << endl;
     444
     445    gSystem->ExpandPathName(catalog);
     446    if (gSystem->AccessPathName(catalog, kReadPermission))
     447    {
     448        gLog << inf2 << "Searching Bright Star catalog " << catalog << " in " << kDefaultPath << endl;
     449        catalog.Prepend(kDefaultPath);
     450    }
    427451
    428452    MZlib fin(catalog);
     
    497521{
    498522    gLog << inf << "Reading Heasarc PPM catalog: " << catalog << endl;
     523
     524    gSystem->ExpandPathName(catalog);
     525    if (gSystem->AccessPathName(catalog, kReadPermission))
     526    {
     527        gLog << inf2 << "Searching Heasarc PPM catalog " << catalog << " in " << kDefaultPath << endl;
     528        catalog.Prepend(kDefaultPath);
     529    }
    499530
    500531    MZlib fin(catalog);
     
    601632
    602633    gLog << inf << "Reading MAstroCatalog compressed catalog: " << catalog << endl;
     634
     635    gSystem->ExpandPathName(catalog);
     636    if (gSystem->AccessPathName(catalog, kReadPermission))
     637    {
     638        gLog << inf2 << "Searching MAstroCatalog comressed catalog " << catalog << " in " << kDefaultPath << endl;
     639        catalog.Prepend(kDefaultPath);
     640    }
    603641
    604642    MZlib fin(catalog);
Note: See TracChangeset for help on using the changeset viewer.