IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 6242


Ignore:
Timestamp:
Jan 29, 2006, 9:26:13 AM (20 years ago)
Author:
eugene
Message:

add USNO B to references

Location:
trunk/Ohana/src
Files:
2 added
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/gastro2/include/gastro2.h

    r4828 r6242  
    113113int NPOLYTERMS;
    114114char CDROM[256];
     115char USNO_B_DIR[256];
    115116char CATDIR[256];
    116117char   CATMODE[16];    /* raw, mef, split, mysql */
  • trunk/Ohana/src/gastro2/src/ConfigInit.c

    r4828 r6242  
    4141  ScanConfig (config, "LONEOS_REGIONS",    "%s",  0, LONEOS_REGION_FILE);
    4242  ScanConfig (config, "USNO_CDROM",        "%s",  0, CDROM);
     43  ScanConfig (config, "USNO_B_DIR",        "%s",  0, USNO_B_DIR);
    4344  ScanConfig (config, "ASTRO_REFCAT",      "%s",  0, REFCAT);
    4445  ScanConfig (config, "CATDIR",            "%s",  0, CATDIR);
  • trunk/Ohana/src/gastro2/src/getusno.c

    r2442 r6242  
    110110          stars[Nusno].R = buf[0]/360000.0;
    111111          stars[Nusno].D = buf[1]/360000.0 - 90.0;
     112          /* note that this is the RED mag */
    112113          stars[Nusno].M = fabs (0.1*(buf[2] - 1000*((int)(buf[2]/1000))));
    113114          /* b = 0.1*((int)(buf[2] - 1000000*((int)(buf[2]/1000000))) / 1000); */
  • trunk/Ohana/src/gastro2/src/greference2.c

    r5133 r6242  
    1313  if (!strcmp (REFCAT, "USNO")) {
    1414    getusno (&catstats, Ref);
     15    /* calculate Ref[0].Moff from Target & Ref dMdN, Mo */
     16  }
     17
     18  /* get stars from the USNO B catalog for the given region */
     19  if (!strcmp (REFCAT, "USNOB")) {
     20    getusnob (&catstats, Ref, EPOCH);
    1521    /* calculate Ref[0].Moff from Target & Ref dMdN, Mo */
    1622  }
  • trunk/Ohana/src/mosastro/Makefile

    r5418 r6242  
    4242$(SRC)/gcatalog.$(ARCH).o \
    4343$(SRC)/getusno.$(ARCH).o \
     44$(SRC)/getusnob.$(ARCH).o \
    4445$(SRC)/wstars.$(ARCH).o \
    4546$(SRC)/field.$(ARCH).o \
  • trunk/Ohana/src/mosastro/include/mosastro.h

    r5917 r6242  
    8989char StoneRegions[256];
    9090char CDROM[256];
     91char USNO_B_DIR[256];
    9192char REFCAT[256];
    9293char CATDIR[256];
     
    162163StarData  *getstone           PROTO((CatStats *input, int *nstars));
    163164StarData  *getusno            PROTO((CatStats *catstats, int *Nstars));
     165StarData  *getusnob           PROTO((CatStats *catstats, int *Nstars));
    164166StarData  *gptolemy           PROTO((char *filename, int *NSTARS));
    165167StarData  *greference         PROTO((int *Nrefcat));
  • trunk/Ohana/src/mosastro/src/ConfigInit.c

    r5135 r6242  
    2626  ScanConfig (config, "GSCDIR",           "%s",  0, GSC_DIR);
    2727  ScanConfig (config, "STONE_DIR",        "%s",  0, StoneRegions);
     28  ScanConfig (config, "USNO_B_DIR",       "%s",  0, USNO_B_DIR);
    2829
    2930  /* abstracted header keywords */
  • trunk/Ohana/src/mosastro/src/greference.c

    r5133 r6242  
    2828  }
    2929
     30  /* get stars from the USNO A catalog for the given region */
     31  if (!strcmp (REFCAT, "USNOB")) {
     32    stars = getusnob (&catstats, &Nstars);
     33  }
     34
    3035  /* get stars from the HST GSC catalog for the given region */
    3136  if (!strcmp (REFCAT, "GSC")) {
Note: See TracChangeset for help on using the changeset viewer.