Changeset 37995 for trunk/Ohana/src/libdvo/src/dvo_convert.c
- Timestamp:
- Mar 23, 2015, 10:15:49 AM (11 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/libdvo/src/dvo_convert.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/libdvo/src/dvo_convert.c
r37807 r37995 416 416 417 417 if (!strcmp (extname, "DVO_LENSING_PS1_V5") && (ftable[0].header[0].Naxis[0] == 128)) { 418 Lensing_PS1_V5_ ALT*tmpLensing;419 tmpLensing = gfits_table_get_Lensing_PS1_V5_ ALT(ftable, Nlensing, NULL);418 Lensing_PS1_V5_R0 *tmpLensing; 419 tmpLensing = gfits_table_get_Lensing_PS1_V5_R0 (ftable, Nlensing, NULL); 420 420 if (!tmpLensing) { 421 421 fprintf (stderr, "ERROR: failed to read lensings\n"); 422 422 exit (2); 423 423 } 424 lensing = Lensing_PS1_V5_ALT_ToInternal (tmpLensing, *Nlensing); 424 lensing = Lensing_PS1_V5_R0_ToInternal (tmpLensing, *Nlensing); 425 free (tmpLensing); 426 *format = DVO_FORMAT_PS1_V5; 427 return (lensing); } 428 429 if (!strcmp (extname, "DVO_LENSING_PS1_V5") && (ftable[0].header[0].Naxis[0] == 136)) { 430 Lensing_PS1_V5_R1 *tmpLensing; 431 tmpLensing = gfits_table_get_Lensing_PS1_V5_R1 (ftable, Nlensing, NULL); 432 if (!tmpLensing) { 433 fprintf (stderr, "ERROR: failed to read lensings\n"); 434 exit (2); 435 } 436 lensing = Lensing_PS1_V5_R1_ToInternal (tmpLensing, *Nlensing); 425 437 free (tmpLensing); 426 438 *format = DVO_FORMAT_PS1_V5; … … 468 480 SKIPPING_FORMAT ("DVO_LENSING_PS1_V3", PS1_V3, PS1_V3); 469 481 SKIPPING_FORMAT ("DVO_LENSING_PS1_V4", PS1_V4, PS1_V4); 470 CONVERT_FORMAT ("DVO_LENSING_PS1_V5", PS1_V5, PS1_V5 );482 CONVERT_FORMAT ("DVO_LENSING_PS1_V5", PS1_V5, PS1_V5_R2); 471 483 # undef CONVERT_FORMAT 472 484 … … 505 517 // FORMAT_CASE (PS1_V3, PS1_V3); 506 518 // FORMAT_CASE (PS1_V4, PS1_V4); 507 FORMAT_CASE (PS1_V5, PS1_V5 );519 FORMAT_CASE (PS1_V5, PS1_V5_R2); 508 520 # undef FORMAT_CASE 509 521
Note:
See TracChangeset
for help on using the changeset viewer.
