Changeset 39736
- Timestamp:
- Oct 8, 2016, 5:23:43 AM (10 years ago)
- Location:
- branches/czw_branch/20160809/Ohana/src/fakeastro
- Files:
-
- 2 added
- 5 edited
-
Makefile (modified) (1 diff)
-
include/fakeastro.h (modified) (3 diffs)
-
src/ConfigInit.c (modified) (3 diffs)
-
src/args.c (modified) (2 diffs)
-
src/fakeastro.c (modified) (1 diff)
-
src/fakeastro_gaia.c (added)
-
src/make_gaia_measures.c (added)
Legend:
- Unmodified
- Added
- Removed
-
branches/czw_branch/20160809/Ohana/src/fakeastro/Makefile
r39242 r39736 53 53 $(SRC)/match_fake_stars.$(ARCH).o \ 54 54 $(SRC)/fakeastro_2mass.$(ARCH).o \ 55 $(SRC)/fakeastro_gaia.$(ARCH).o \ 55 56 $(SRC)/make_2mass_measures.$(ARCH).o \ 57 $(SRC)/make_gaia_measures.$(ARCH).o \ 56 58 $(SRC)/remote_hosts.$(ARCH).o 57 59 -
branches/czw_branch/20160809/Ohana/src/fakeastro/include/fakeastro.h
r38986 r39736 8 8 # define RESETTIME { gettimeofday (&startTimer, (void *) NULL); } 9 9 10 typedef enum {OP_NONE, OP_GALAXY, OP_IMAGES, OP_2MASS } FakeastroOp;10 typedef enum {OP_NONE, OP_GALAXY, OP_IMAGES, OP_2MASS, OP_GAIA} FakeastroOp; 11 11 12 12 typedef struct { … … 101 101 char FAKEASTRO_REF_EPOCH[80]; 102 102 char FAKEASTRO_2MASS_EPOCH[80]; 103 char FAKEASTRO_GAIA_EPOCH[80]; 103 104 104 105 float RADIUS; 105 106 float MAX_MAG_2MASS; 107 float MAX_MAG_GAIA; 106 108 107 109 SkyRegion UserPatch; … … 198 200 int fakeastro_2mass (); 199 201 int make_2mass_measures (Catalog *catalog); 202 203 int fakeastro_gaia (); 204 int make_gaia_measures (Catalog *catalog); -
branches/czw_branch/20160809/Ohana/src/fakeastro/src/ConfigInit.c
r37807 r39736 19 19 // if (!ScanConfig (config, "ADDSTAR_RADIUS", "%lf", 0, &ADDSTAR_RADIUS)) ADDSTAR_RADIUS = 1.0; 20 20 21 if ((FAKEASTRO_OP == OP_GALAXY) || (FAKEASTRO_OP == OP_2MASS) ) {21 if ((FAKEASTRO_OP == OP_GALAXY) || (FAKEASTRO_OP == OP_2MASS) || (FAKEASTRO_OP == OP_GAIA)) { 22 22 // force CATDIR to be absolute (so parallel mode will work) 23 23 GetConfig (config, "CATDIR", "%s", 0, CATDIR); … … 60 60 strcpy (FAKEASTRO_2MASS_EPOCH, "2000/01/01,00:00:00"); // epoch of 2MASS astrometry 61 61 } 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 } 62 65 63 66 /* set the default search radius */ … … 76 79 77 80 // 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)) { 79 82 // check for existence of CATDIR 80 83 struct stat filestat; -
branches/czw_branch/20160809/Ohana/src/fakeastro/src/args.c
r38986 r39736 24 24 remove_argument (N, argc, argv); 25 25 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; 26 31 } 27 32 … … 114 119 } 115 120 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 116 128 FORCE = FALSE; 117 129 if ((N = get_argument (*argc, argv, "-force"))) { -
branches/czw_branch/20160809/Ohana/src/fakeastro/src/fakeastro.c
r39248 r39736 41 41 exit (0); 42 42 43 case OP_GAIA: 44 fakeastro_gaia (); 45 /* make_gaia_measures() 46 */ 47 exit (0); 48 43 49 default: 44 50 fprintf (stderr, "impossible!\n");
Note:
See TracChangeset
for help on using the changeset viewer.
