IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 39736


Ignore:
Timestamp:
Oct 8, 2016, 5:23:43 AM (10 years ago)
Author:
eugene
Message:

adding options to make gaia db

Location:
branches/czw_branch/20160809/Ohana/src/fakeastro
Files:
2 added
5 edited

Legend:

Unmodified
Added
Removed
  • branches/czw_branch/20160809/Ohana/src/fakeastro/Makefile

    r39242 r39736  
    5353$(SRC)/match_fake_stars.$(ARCH).o \
    5454$(SRC)/fakeastro_2mass.$(ARCH).o \
     55$(SRC)/fakeastro_gaia.$(ARCH).o \
    5556$(SRC)/make_2mass_measures.$(ARCH).o \
     57$(SRC)/make_gaia_measures.$(ARCH).o \
    5658$(SRC)/remote_hosts.$(ARCH).o
    5759
  • branches/czw_branch/20160809/Ohana/src/fakeastro/include/fakeastro.h

    r38986 r39736  
    88# define RESETTIME { gettimeofday (&startTimer, (void *) NULL); }
    99
    10 typedef enum {OP_NONE, OP_GALAXY, OP_IMAGES, OP_2MASS} FakeastroOp;
     10typedef enum {OP_NONE, OP_GALAXY, OP_IMAGES, OP_2MASS, OP_GAIA} FakeastroOp;
    1111
    1212typedef struct {
     
    101101char   FAKEASTRO_REF_EPOCH[80];
    102102char   FAKEASTRO_2MASS_EPOCH[80];
     103char   FAKEASTRO_GAIA_EPOCH[80];
    103104
    104105float  RADIUS;
    105106float  MAX_MAG_2MASS;
     107float  MAX_MAG_GAIA;
    106108
    107109SkyRegion UserPatch;
     
    198200int fakeastro_2mass ();
    199201int make_2mass_measures (Catalog *catalog);
     202
     203int fakeastro_gaia ();
     204int make_gaia_measures (Catalog *catalog);
  • branches/czw_branch/20160809/Ohana/src/fakeastro/src/ConfigInit.c

    r37807 r39736  
    1919  // if (!ScanConfig (config, "ADDSTAR_RADIUS",         "%lf", 0, &ADDSTAR_RADIUS))   ADDSTAR_RADIUS = 1.0;
    2020
    21   if ((FAKEASTRO_OP == OP_GALAXY) || (FAKEASTRO_OP == OP_2MASS)) {
     21  if ((FAKEASTRO_OP == OP_GALAXY) || (FAKEASTRO_OP == OP_2MASS) || (FAKEASTRO_OP == OP_GAIA)) {
    2222    // force CATDIR to be absolute (so parallel mode will work)
    2323    GetConfig (config, "CATDIR",                 "%s",  0, CATDIR);
     
    6060    strcpy (FAKEASTRO_2MASS_EPOCH, "2000/01/01,00:00:00"); // epoch of 2MASS astrometry
    6161  }
     62  if (!ScanConfig (config, "FAKEASTRO_GAIA_EPOCH", "%s", 0, FAKEASTRO_GAIA_EPOCH)) {
     63    strcpy (FAKEASTRO_GAIA_EPOCH, "2015/01/01,00:00:00"); // epoch of GAIA astrometry
     64  }
    6265
    6366  /* set the default search radius */
     
    7679
    7780  // OP_2MASS is adding detections to an existing db, the others require and empty db
    78   if (FAKEASTRO_OP != OP_2MASS) {
     81  if ((FAKEASTRO_OP != OP_2MASS) && (FAKEASTRO_OP != OP_GAIA)) {
    7982    // check for existence of CATDIR
    8083    struct stat filestat;
  • branches/czw_branch/20160809/Ohana/src/fakeastro/src/args.c

    r38986 r39736  
    2424    remove_argument (N, argc, argv);
    2525    FAKEASTRO_OP = OP_2MASS;
     26  }
     27
     28  if ((N = get_argument (*argc, argv, "-gaia"))) {
     29    remove_argument (N, argc, argv);
     30    FAKEASTRO_OP = OP_GAIA;
    2631  }
    2732
     
    114119  }
    115120
     121  MAX_MAG_GAIA = 16.0;
     122  if ((N = get_argument (*argc, argv, "-gaia-limit"))) {
     123    remove_argument (N, argc, argv);
     124    MAX_MAG_GAIA = atof(argv[N]);
     125    remove_argument (N, argc, argv);
     126  }
     127
    116128  FORCE = FALSE;
    117129  if ((N = get_argument (*argc, argv, "-force"))) {
  • branches/czw_branch/20160809/Ohana/src/fakeastro/src/fakeastro.c

    r39248 r39736  
    4141      exit (0);
    4242
     43    case OP_GAIA:
     44      fakeastro_gaia ();
     45      /* make_gaia_measures()
     46       */
     47      exit (0);
     48
    4349    default:
    4450      fprintf (stderr, "impossible!\n");
Note: See TracChangeset for help on using the changeset viewer.