Changeset 27580
- Timestamp:
- Apr 2, 2010, 3:53:20 PM (16 years ago)
- Location:
- trunk/Ohana/src/libdvo
- Files:
-
- 1 added
- 17 edited
-
Makefile (modified) (2 diffs)
-
include/dvo.h (modified) (4 diffs)
-
src/LoadPhotcodesFITS.c (modified) (1 diff)
-
src/SavePhotcodesFITS.c (modified) (1 diff)
-
src/dvo_catalog.c (modified) (1 diff)
-
src/dvo_catalog_raw.c (modified) (8 diffs)
-
src/dvo_convert.c (modified) (9 diffs)
-
src/dvo_convert_PS1_DEV_1.c (modified) (3 diffs)
-
src/dvo_convert_PS1_DEV_2.c (modified) (4 diffs)
-
src/dvo_convert_PS1_REF.c (modified) (3 diffs)
-
src/dvo_convert_PS1_V1.c (modified) (5 diffs)
-
src/dvo_convert_PS1_V2.c (added)
-
src/dvo_convert_elixir.c (modified) (3 diffs)
-
src/dvo_convert_loneos.c (modified) (3 diffs)
-
src/dvo_convert_panstarrs_DEV_0.c (modified) (3 diffs)
-
src/dvo_convert_panstarrs_DEV_1.c (modified) (3 diffs)
-
src/dvo_image.c (modified) (1 diff)
-
src/dvo_image_raw.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/libdvo/Makefile
r26396 r27580 33 33 $(DESTINC)/ps1_dev_3_defs.h \ 34 34 $(DESTINC)/ps1_v1_defs.h \ 35 $(DESTINC)/ps1_v2_defs.h \ 35 36 $(DESTINC)/ps1_ref_defs.h 36 37 … … 68 69 $(SRC)/dvo_convert_PS1_DEV_3.$(ARCH).o \ 69 70 $(SRC)/dvo_convert_PS1_V1.$(ARCH).o \ 71 $(SRC)/dvo_convert_PS1_V2.$(ARCH).o \ 70 72 $(SRC)/dvo_convert_PS1_REF.$(ARCH).o \ 71 73 $(SRC)/skyregion_io.$(ARCH).o \ -
trunk/Ohana/src/libdvo/include/dvo.h
r27484 r27580 21 21 DVO_FORMAT_PS1_DEV_3, 22 22 DVO_FORMAT_PS1_V1, 23 DVO_FORMAT_PS1_V2, 23 24 DVO_FORMAT_PS1_REF 24 25 } DVOTableFormat; … … 91 92 # define ID_IMAGE_FEW 0x0008 /* currently too few measurements for good value */ 92 93 93 /* Measure.flags values */ 94 // XXX replace the # defines with typedef enum 95 # define ID_MEAS_NOCAL 0x0001 /* detection ignored for this analysis (photcode, time range) -- internal only */ 96 # define ID_MEAS_POOR_PHOTOM 0x0002 /* detection is photometry outlier */ 97 # define ID_MEAS_SKIP_PHOTOM 0x0004 /* detection was ignored for photometry measurement */ 98 # define ID_MEAS_AREA 0x0008 /* detection near image edge */ 99 # define ID_MEAS_POOR_ASTROM 0x0010 /* detection is astrometry outlier */ 100 # define ID_MEAS_SKIP_ASTROM 0x0020 /* detection was ignored for astrometry measurement */ 101 # define ID_MEAS_USED_OBJ 0x0040 /* detection was used during opdate objects */ 102 # define ID_MEAS_USED_CHIP 0x0080 /* detection was used during update chips */ 103 # define ID_MEAS_BLEND_MEAS 0x0100 /* detection is within radius of multiple objects */ 104 # define ID_MEAS_BLEND_OBJ 0x0200 /* multiple detections within radius of object */ 105 # define ID_MEAS_UNDEF_3 0x0400 /* unused */ 106 # define ID_MEAS_UNDEF_4 0x0800 /* unused */ 107 # define ID_MEAS_BLEND_MEAS_X 0x1000 /* detection is within radius of multiple objects across catalogs */ 108 # define ID_MEAS_ARTIFACT 0x2000 /* detection is thought to be non-astronomical */ 109 # define ID_MEAS_UNDEF_5 0x4000 /* unused */ 110 # define ID_MEAS_UNDEF_6 0x8000 /* unused */ 94 /* Measure.flags values -- these values are 32 bit (as of PS1_V1) */ 95 typedef enum { 96 ID_MEAS_NOCAL = 0x0001, // detection ignored for this analysis (photcode, time range) -- internal only 97 ID_MEAS_POOR_PHOTOM = 0x0002, // detection is photometry outlier 98 ID_MEAS_SKIP_PHOTOM = 0x0004, // detection was ignored for photometry measurement 99 ID_MEAS_AREA = 0x0008, // detection near image edge 100 ID_MEAS_POOR_ASTROM = 0x0010, // detection is astrometry outlier 101 ID_MEAS_SKIP_ASTROM = 0x0020, // detection was ignored for astrometry measurement 102 ID_MEAS_USED_OBJ = 0x0040, // detection was used during opdate objects 103 ID_MEAS_USED_CHIP = 0x0080, // detection was used during update chips 104 ID_MEAS_BLEND_MEAS = 0x0100, // detection is within radius of multiple objects 105 ID_MEAS_BLEND_OBJ = 0x0200, // multiple detections within radius of object 106 ID_MEAS_UNDEF_3 = 0x0400, // unused 107 ID_MEAS_UNDEF_4 = 0x0800, // unused 108 ID_MEAS_BLEND_MEAS_X = 0x1000, // detection is within radius of multiple objects across catalogs 109 ID_MEAS_ARTIFACT = 0x2000, // detection is thought to be non-astronomical 110 ID_MEAS_UNDEF_5 = 0x4000, // unused 111 ID_MEAS_UNDEF_6 = 0x8000, // unused 112 } DVOMeasureFlags; 111 113 112 114 // XXX we used these names previously in markstar: replace with ID_MEAS_ARTIFACT … … 124 126 */ 125 127 126 /* Average.code values */ 127 # define ID_STAR_FEW 0x0001 /* used within relphot: skip star */ 128 # define ID_STAR_POOR 0x0002 /* used within relphot: skip star */ 129 # define ID_PROPER 0x0400 /* star with large proper motion */ 130 # define ID_TRANSIENT 0x1000 /* is this mutually exclusive with USNO? */ 131 # define ID_VARIABLE 0x2000 /* not currently set? */ 132 # define ID_ASTEROID 0x2000 /* identified with an asteroid */ 133 # define ID_BAD_OBJECT 0x4000 /* if all measurements are bad, set this bit */ 134 # define ID_MOVING 0x8000 135 # define ID_ROCK 0xa000 /* 0x8000 + 0x2000 */ 136 # define ID_GHOST 0xc001 /* 0x8000 + 0x4000 + 0x0001 */ 137 # define ID_TRAIL 0xc002 /* 0x8000 + 0x4000 + 0x0002 */ 138 # define ID_BLEED 0xc003 /* 0x8000 + 0x4000 + 0x0003 */ 139 # define ID_COSMIC 0xc004 /* 0x8000 + 0x4000 + 0x0004 */ 128 /* Average.code values -- these values are 32 bit (as of PS1_V1) */ 129 typedef enum { 130 ID_STAR_FEW = 0x00000001, // used within relphot: skip star 131 ID_STAR_POOR = 0x00000002, // used within relphot: skip star 132 ID_PROPER = 0x00000400, // star with large proper motion 133 ID_TRANSIENT = 0x00001000, // is this mutually exclusive with USNO? 134 ID_VARIABLE = 0x00002000, // not currently set? 135 ID_ASTEROID = 0x00002000, // identified with an asteroid 136 ID_BAD_OBJECT = 0x00004000, // if all measurements are bad, set this bit 137 ID_MOVING = 0x00008000, // is a moving object 138 ID_ROCK = 0x0000a000, // 0x8000 + 0x2000 139 ID_GHOST = 0x0000c001, // 0x8000 + 0x4000 + 0x0001 140 ID_TRAIL = 0x0000c002, // 0x8000 + 0x4000 + 0x0002 141 ID_BLEED = 0x0000c003, // 0x8000 + 0x4000 + 0x0003 142 ID_COSMIC = 0x0000c004, // 0x8000 + 0x4000 + 0x0004 143 ID_STAR_FIT_AVE = 0x00010000, // average position fitted 144 ID_STAR_FIT_PM = 0x00020000, // proper motion fitted 145 ID_STAR_FIT_PAR = 0x00040000, // parallax fitted 146 ID_STAR_USE_AVE = 0x00080000, // average position used (not PM or PAR) 147 ID_STAR_USE_PM = 0x00100000, // proper motion used (not AVE or PAR) 148 ID_STAR_USE_PAR = 0x00200000, // parallax used (not AVE or PM) 149 } DVOAverageFlags; 140 150 141 151 /*** general dvo structures (internal use only / not IO) ***/ … … 389 399 # include "ps1_dev_3_defs.h" 390 400 # include "ps1_v1_defs.h" 401 # include "ps1_v2_defs.h" 391 402 # include "ps1_ref_defs.h" 392 403 -
trunk/Ohana/src/libdvo/src/LoadPhotcodesFITS.c
r27491 r27580 77 77 } 78 78 79 if (!strcmp (extname, "DVO_PHOTCODE_PS1_V2")) { 80 PhotCode_PS1_V2 *photcode_ps1_v2 = gfits_table_get_PhotCode_PS1_V2 (&db.ftable, &Ncode, &db.swapped); 81 photcode = PhotCode_PS1_V2_To_Internal (photcode_ps1_v2, Ncode); 82 free (photcode_ps1_v2); 83 } 84 79 85 if (!strcmp (extname, "DVO_PHOTCODE_PS1_REF")) { 80 86 PhotCode_PS1_REF *photcode_ps1_ref = gfits_table_get_PhotCode_PS1_REF (&db.ftable, &Ncode, &db.swapped); -
trunk/Ohana/src/libdvo/src/SavePhotcodesFITS.c
r21508 r27580 29 29 // for the moment, we simply support the latest photcode format for output 30 30 // XXX update this as needed as new formats are defined 31 PhotCode_PS1_V 1 *photcode_output = PhotCode_Internal_To_PS1_V1(table[0].code, table[0].Ncode);31 PhotCode_PS1_V2 *photcode_output = PhotCode_Internal_To_PS1_V2 (table[0].code, table[0].Ncode); 32 32 33 33 /* convert FITS format data to internal format (byteswaps & EXTNAME) */ 34 34 gfits_db_create (&db); 35 gfits_table_set_PhotCode_PS1_V 1(&db.ftable, photcode_output, table[0].Ncode);35 gfits_table_set_PhotCode_PS1_V2 (&db.ftable, photcode_output, table[0].Ncode); 36 36 gfits_db_save (&db); 37 37 gfits_db_close (&db); -
trunk/Ohana/src/libdvo/src/dvo_catalog.c
r27435 r27580 53 53 if (!strcasecmp (catformat, "PS1_DEV_2")) return (DVO_FORMAT_PS1_DEV_2); 54 54 if (!strcasecmp (catformat, "PS1_V1")) return (DVO_FORMAT_PS1_V1); 55 if (!strcasecmp (catformat, "PS1_V2")) return (DVO_FORMAT_PS1_V2); 55 56 if (!strcasecmp (catformat, "PS1_REF")) return (DVO_FORMAT_PS1_REF); 56 57 return (DVO_FORMAT_UNDEF); -
trunk/Ohana/src/libdvo/src/dvo_catalog_raw.c
r27435 r27580 87 87 FORMAT_CASE (PS1_DEV_2, PS1_DEV_2); 88 88 FORMAT_CASE (PS1_V1, PS1_V1); 89 FORMAT_CASE (PS1_V2, PS1_V2); 89 90 FORMAT_CASE (PS1_REF, PS1_REF); 90 91 … … 278 279 if (catalog[0].catformat == DVO_FORMAT_PS1_DEV_2) gfits_modify (&catalog[0].header, "FORMAT", "%s", 1, "PS1_DEV_2"); 279 280 if (catalog[0].catformat == DVO_FORMAT_PS1_V1) gfits_modify (&catalog[0].header, "FORMAT", "%s", 1, "PS1_V1"); 281 if (catalog[0].catformat == DVO_FORMAT_PS1_V2) gfits_modify (&catalog[0].header, "FORMAT", "%s", 1, "PS1_V2"); 280 282 if (catalog[0].catformat == DVO_FORMAT_PS1_REF) gfits_modify (&catalog[0].header, "FORMAT", "%s", 1, "PS1_REF"); 281 283 … … 375 377 FORMAT_CASE (PS1_DEV_2, PS1_DEV_2); 376 378 FORMAT_CASE (PS1_V1, PS1_V1); 379 FORMAT_CASE (PS1_V2, PS1_V2); 377 380 FORMAT_CASE (PS1_REF, PS1_REF); 378 381 … … 423 426 FORMAT_CASE (PS1_DEV_2, PS1_DEV_2); 424 427 FORMAT_CASE (PS1_V1, PS1_V1); 428 FORMAT_CASE (PS1_V2, PS1_V2); 425 429 FORMAT_CASE (PS1_REF, PS1_REF); 426 430 … … 475 479 FORMAT_CASE (PS1_DEV_2, PS1_DEV_2); 476 480 FORMAT_CASE (PS1_V1, PS1_V1); 481 FORMAT_CASE (PS1_V2, PS1_V2); 477 482 FORMAT_CASE (PS1_REF, PS1_REF); 478 483 … … 523 528 FORMAT_CASE (PS1_DEV_2, PS1_DEV_2); 524 529 FORMAT_CASE (PS1_V1, PS1_V1); 530 FORMAT_CASE (PS1_V2, PS1_V2); 525 531 FORMAT_CASE (PS1_REF, PS1_REF); 526 532 … … 575 581 FORMAT_CASE (PS1_DEV_2, PS1_DEV_2); 576 582 FORMAT_CASE (PS1_V1, PS1_V1); 583 FORMAT_CASE (PS1_V2, PS1_V2); 577 584 FORMAT_CASE (PS1_REF, PS1_REF); 578 585 … … 623 630 FORMAT_CASE (PS1_DEV_2, PS1_DEV_2); 624 631 FORMAT_CASE (PS1_V1, PS1_V1); 632 FORMAT_CASE (PS1_V2, PS1_V2); 625 633 FORMAT_CASE (PS1_REF, PS1_REF); 626 634 -
trunk/Ohana/src/libdvo/src/dvo_convert.c
r27435 r27580 50 50 CONVERT_FORMAT ("DVO_AVERAGE_PS1_DEV_2", PS1_DEV_2, PS1_DEV_2); 51 51 CONVERT_FORMAT ("DVO_AVERAGE_PS1_V1", PS1_V1, PS1_V1); 52 CONVERT_FORMAT ("DVO_AVERAGE_PS1_V2", PS1_V2, PS1_V2); 52 53 CONVERT_FORMAT ("DVO_AVERAGE_PS1_REF", PS1_REF, PS1_REF); 53 54 # undef CONVERT_FORMAT … … 82 83 FORMAT_CASE (PS1_DEV_2, PS1_DEV_2); 83 84 FORMAT_CASE (PS1_V1, PS1_V1); 85 FORMAT_CASE (PS1_V2, PS1_V2); 84 86 FORMAT_CASE (PS1_REF, PS1_REF); 85 87 # undef FORMAT_CASE … … 127 129 CONVERT_FORMAT ("DVO_MEASURE_PS1_DEV_2", PS1_DEV_2, PS1_DEV_2); 128 130 CONVERT_FORMAT ("DVO_MEASURE_PS1_V1", PS1_V1, PS1_V1); 131 CONVERT_FORMAT ("DVO_MEASURE_PS1_V2", PS1_V2, PS1_V2); 129 132 CONVERT_FORMAT ("DVO_MEASURE_PS1_REF", PS1_REF, PS1_REF); 130 133 # undef CONVERT_FORMAT … … 159 162 FORMAT_CASE (PS1_DEV_2, PS1_DEV_2); 160 163 FORMAT_CASE (PS1_V1, PS1_V1); 164 FORMAT_CASE (PS1_V2, PS1_V2); 161 165 FORMAT_CASE (PS1_REF, PS1_REF); 162 166 # undef FORMAT_CASE … … 204 208 CONVERT_FORMAT ("DVO_SECFILT_PS1_DEV_2", PS1_DEV_2, PS1_DEV_2); 205 209 CONVERT_FORMAT ("DVO_SECFILT_PS1_V1", PS1_V1, PS1_V1); 210 CONVERT_FORMAT ("DVO_SECFILT_PS1_V2", PS1_V2, PS1_V2); 206 211 CONVERT_FORMAT ("DVO_SECFILT_PS1_REF", PS1_REF, PS1_REF); 207 212 # undef CONVERT_FORMAT … … 236 241 FORMAT_CASE (PS1_DEV_2, PS1_DEV_2); 237 242 FORMAT_CASE (PS1_V1, PS1_V1); 243 FORMAT_CASE (PS1_V2, PS1_V2); 238 244 FORMAT_CASE (PS1_REF, PS1_REF); 239 245 # undef FORMAT_CASE … … 301 307 CONVERT_FORMAT ("DVO_IMAGE_PS1_DEV_2", PS1_DEV_2, PS1_DEV_2); 302 308 CONVERT_FORMAT ("DVO_IMAGE_PS1_V1", PS1_V1, PS1_V1); 309 CONVERT_FORMAT ("DVO_IMAGE_PS1_V2", PS1_V2, PS1_V2); 303 310 CONVERT_FORMAT ("DVO_IMAGE_PS1_REF", PS1_REF, PS1_REF); 304 305 // XXX Not sure this was ever actually used -- it was not complete...306 // CONVERT_FORMAT ("DVO_IMAGE_PS1_DEV_3", PS1_DEV_3, PS1_DEV_3);307 311 308 312 # undef CONVERT_FORMAT … … 340 344 FORMAT_CASE (PS1_DEV_2, PS1_DEV_2); 341 345 FORMAT_CASE (PS1_V1, PS1_V1); 346 FORMAT_CASE (PS1_V2, PS1_V2); 342 347 FORMAT_CASE (PS1_REF, PS1_REF); 343 348 344 // XXX not sure this was actually used: it was incomplete345 // FORMAT_CASE (PS1_DEV_3, PS1_DEV_3);346 349 # undef FORMAT_CASE 347 350 … … 394 397 FORMAT_CASE (PS1_DEV_2, PS1_DEV_2); 395 398 FORMAT_CASE (PS1_V1, PS1_V1); 399 FORMAT_CASE (PS1_V2, PS1_V2); 396 400 FORMAT_CASE (PS1_REF, PS1_REF); 397 398 // XXX not sure this was used, it was incomplete399 // FORMAT_CASE (PS1_DEV_3, PS1_DEV_3);400 401 401 402 # undef FORMAT_CASE -
trunk/Ohana/src/libdvo/src/dvo_convert_PS1_DEV_1.c
r27435 r27580 140 140 // changed or added for PS1_V1 141 141 out[i].flags = in[i].code; 142 out[i].ChiSq = 0.0; 142 out[i].ChiSqAve = NAN; 143 out[i].ChiSqPM = NAN; 144 out[i].ChiSqPar = NAN; 145 out[i].Tmean = 0; 146 out[i].Trange = 0; 143 147 out[i].Npos = 0.0; 144 148 out[i].extID = 0; … … 199 203 out[i].M_20 = 0; 200 204 out[i].M_80 = 0; 205 206 // changed or added for PS1_V2 207 out[i].flags = 0; 201 208 } 202 209 return (out); … … 279 286 out[i].flags = in[i].code; 280 287 out[i].parentID = 0; 288 289 // changed or added for PS1_V2 290 out[i].RAo = NAN; 291 out[i].DECo = NAN; 292 out[i].Radius = NAN; 281 293 } 282 294 return (out); -
trunk/Ohana/src/libdvo/src/dvo_convert_PS1_DEV_2.c
r27435 r27580 134 134 // changed or added for PS1_V1 135 135 out[i].flags = in[i].code; 136 out[i].ChiSq = 0.0; 136 out[i].ChiSqAve = NAN; 137 out[i].ChiSqPM = NAN; 138 out[i].ChiSqPar = NAN; 139 out[i].Tmean = 0; 140 out[i].Trange = 0; 137 141 out[i].Npos = 0.0; 138 142 out[i].extID = 0; … … 193 197 out[i].M_20 = 0; 194 198 out[i].M_80 = 0; 199 200 // changed or added for PS1_V2 201 out[i].flags = 0; 195 202 } 196 203 return (out); … … 271 278 out[i].flags = in[i].code; 272 279 out[i].parentID = 0; 280 281 // changed or added for PS1_V2 282 out[i].RAo = NAN; 283 out[i].DECo = NAN; 284 out[i].Radius = NAN; 273 285 } 274 286 return (out); … … 302 314 out[i].sidtime = in[i].sidtime; 303 315 out[i].latitude = in[i].latitude; 316 304 317 out[i].detection_limit = in[i].detection_limit; 305 318 out[i].saturation_limit = in[i].saturation_limit; -
trunk/Ohana/src/libdvo/src/dvo_convert_PS1_REF.c
r27435 r27580 98 98 out[i].dP = NAN; 99 99 out[i].Xp = NAN_S_SHORT; 100 out[i].ChiSq = NAN; 100 out[i].ChiSqAve = NAN; 101 out[i].ChiSqPM = NAN; 102 out[i].ChiSqPar = NAN; 103 out[i].Tmean = 0; 104 out[i].Trange = 0; 101 105 out[i].Npos = 0; 102 106 out[i].Nmeasure = in[i].Nmeasure; … … 153 157 out[i].M_20 = 0; 154 158 out[i].M_80 = 0; 159 160 // changed or added for PS1_V2 161 out[i].flags = 0; 155 162 } 156 163 return (out); … … 226 233 out[i].Mxyyy = in[i].Mxyyy; 227 234 out[i].Myyyy = in[i].Myyyy; 235 236 // changed or added for PS1_V2 237 out[i].RAo = NAN; 238 out[i].DECo = NAN; 239 out[i].Radius = NAN; 228 240 } 229 241 return (out); -
trunk/Ohana/src/libdvo/src/dvo_convert_PS1_V1.c
r27435 r27580 130 130 out[i].dP = in[i].dP; 131 131 out[i].Xp = in[i].Xp; 132 out[i].ChiSq = in[i].ChiSq; 132 out[i].ChiSqAve = in[i].ChiSq; 133 out[i].ChiSqPM = NAN; 134 out[i].ChiSqPar = NAN; 135 out[i].Tmean = 0; 136 out[i].Trange = 0; 133 137 out[i].Npos = in[i].Npos; 134 138 out[i].Nmeasure = in[i].Nmeasure; … … 166 170 out[i].dP = in[i].dP; 167 171 out[i].Xp = in[i].Xp; 168 out[i].ChiSq = in[i].ChiSq;172 out[i].ChiSq = in[i].ChiSqAve; 169 173 out[i].Npos = in[i].Npos; 170 174 out[i].Nmeasure = in[i].Nmeasure; … … 197 201 out[i].M_20 = in[i].M_20; 198 202 out[i].M_80 = in[i].M_80; 203 204 // changed or added for PS1_V2 205 out[i].flags = 0; 199 206 } 200 207 return (out); … … 275 282 out[i].Mxyyy = in[i].Mxyyy; 276 283 out[i].Myyyy = in[i].Myyyy; 284 285 // changed or added for PS1_V2 286 out[i].RAo = NAN; 287 out[i].DECo = NAN; 288 out[i].Radius = NAN; 289 277 290 } 278 291 return (out); … … 306 319 out[i].sidtime = in[i].sidtime; 307 320 out[i].latitude = in[i].latitude; 321 308 322 out[i].detection_limit = in[i].detection_limit; 309 323 out[i].saturation_limit = in[i].saturation_limit; -
trunk/Ohana/src/libdvo/src/dvo_convert_elixir.c
r27435 r27580 151 151 // changed or added for PS1_V1 152 152 out[i].flags = in[i].code; 153 out[i].ChiSq = 0.0; 153 out[i].ChiSqAve = NAN; 154 out[i].ChiSqPM = NAN; 155 out[i].ChiSqPar = NAN; 156 out[i].Tmean = 0; 157 out[i].Trange = 0; 154 158 out[i].Npos = 0.0; 155 159 out[i].extID = 0; … … 208 212 out[i].M_20 = 0; 209 213 out[i].M_80 = 0; 214 215 // changed or added for PS1_V2 216 out[i].flags = 0; 210 217 } 211 218 return (out); … … 292 299 out[i].flags = in[i].code; 293 300 out[i].parentID = 0; 301 302 // changed or added for PS1_V2 303 out[i].RAo = NAN; 304 out[i].DECo = NAN; 305 out[i].Radius = NAN; 294 306 } 295 307 return (out); -
trunk/Ohana/src/libdvo/src/dvo_convert_loneos.c
r27435 r27580 143 143 // changed or added for PS1_V1 144 144 out[i].flags = in[i].code; 145 out[i].ChiSq = 0.0; 145 out[i].ChiSqAve = NAN; 146 out[i].ChiSqPM = NAN; 147 out[i].ChiSqPar = NAN; 148 out[i].Tmean = 0; 149 out[i].Trange = 0; 146 150 out[i].Npos = 0.0; 147 151 out[i].extID = 0; … … 201 205 out[i].M_20 = 0; 202 206 out[i].M_80 = 0; 207 208 // changed or added for PS1_V2 209 out[i].flags = 0; 203 210 } 204 211 return (out); … … 285 292 out[i].flags = in[i].code; 286 293 out[i].parentID = 0; 294 295 // changed or added for PS1_V2 296 out[i].RAo = NAN; 297 out[i].DECo = NAN; 298 out[i].Radius = NAN; 287 299 } 288 300 return (out); -
trunk/Ohana/src/libdvo/src/dvo_convert_panstarrs_DEV_0.c
r27435 r27580 147 147 // changed or added for PS1_V1 148 148 out[i].flags = in[i].code; 149 out[i].ChiSq = 0.0; 149 out[i].ChiSqAve = NAN; 150 out[i].ChiSqPM = NAN; 151 out[i].ChiSqPar = NAN; 152 out[i].Tmean = 0; 153 out[i].Trange = 0; 150 154 out[i].Npos = 0.0; 151 155 out[i].extID = 0; … … 208 212 out[i].M_20 = 0; 209 213 out[i].M_80 = 0; 214 215 // changed or added for PS1_V2 216 out[i].flags = 0; 210 217 } 211 218 return (out); … … 292 299 out[i].flags = in[i].code; 293 300 out[i].parentID = 0; 301 302 // changed or added for PS1_V2 303 out[i].RAo = NAN; 304 out[i].DECo = NAN; 305 out[i].Radius = NAN; 294 306 } 295 307 return (out); -
trunk/Ohana/src/libdvo/src/dvo_convert_panstarrs_DEV_1.c
r27435 r27580 147 147 // changed or added for PS1_V1 148 148 out[i].flags = in[i].code; 149 out[i].ChiSq = 0.0; 149 out[i].ChiSqAve = NAN; 150 out[i].ChiSqPM = NAN; 151 out[i].ChiSqPar = NAN; 152 out[i].Tmean = 0; 153 out[i].Trange = 0; 150 154 out[i].Npos = 0.0; 151 155 out[i].extID = 0; … … 208 212 out[i].M_20 = 0; 209 213 out[i].M_80 = 0; 214 215 // changed or added for PS1_V2 216 out[i].flags = 0; 210 217 } 211 218 return (out); … … 292 299 out[i].flags = in[i].code; 293 300 out[i].parentID = 0; 301 302 // changed or added for PS1_V2 303 out[i].RAo = NAN; 304 out[i].DECo = NAN; 305 out[i].Radius = NAN; 294 306 } 295 307 return (out); -
trunk/Ohana/src/libdvo/src/dvo_image.c
r27435 r27580 207 207 if (db[0].format == DVO_FORMAT_PS1_DEV_3) gfits_modify (&db[0].header, "FORMAT", "%s", 1, "PS1_DEV_3"); 208 208 if (db[0].format == DVO_FORMAT_PS1_V1) gfits_modify (&db[0].header, "FORMAT", "%s", 1, "PS1_V1"); 209 if (db[0].format == DVO_FORMAT_PS1_V2) gfits_modify (&db[0].header, "FORMAT", "%s", 1, "PS1_V2"); 209 210 if (db[0].format == DVO_FORMAT_PS1_REF) gfits_modify (&db[0].header, "FORMAT", "%s", 1, "PS1_REF"); 210 211 -
trunk/Ohana/src/libdvo/src/dvo_image_raw.c
r27435 r27580 56 56 if (db[0].format == DVO_FORMAT_PS1_DEV_3) ImageSize = sizeof(Image_PS1_DEV_3); 57 57 if (db[0].format == DVO_FORMAT_PS1_V1) ImageSize = sizeof(Image_PS1_V1); 58 if (db[0].format == DVO_FORMAT_PS1_V2) ImageSize = sizeof(Image_PS1_V2); 58 59 if (db[0].format == DVO_FORMAT_PS1_REF) ImageSize = sizeof(Image_PS1_REF); 59 60 … … 83 84 if (db[0].format == DVO_FORMAT_PS1_DEV_3) gfits_table_mkheader_Image_PS1_DEV_3 (&db[0].theader); 84 85 if (db[0].format == DVO_FORMAT_PS1_V1) gfits_table_mkheader_Image_PS1_V1 (&db[0].theader); 86 if (db[0].format == DVO_FORMAT_PS1_V2) gfits_table_mkheader_Image_PS1_V2 (&db[0].theader); 85 87 if (db[0].format == DVO_FORMAT_PS1_REF) gfits_table_mkheader_Image_PS1_REF (&db[0].theader); 86 88
Note:
See TracChangeset
for help on using the changeset viewer.
