IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 23, 2015, 10:15:49 AM (11 years ago)
Author:
eugene
Message:

adding dvo elements for E1,E2_psf

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/libdvo/src/dvo_convert.c

    r37807 r37995  
    416416
    417417  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);
    420420    if (!tmpLensing) {                                                 
    421421      fprintf (stderr, "ERROR: failed to read lensings\n");             
    422422      exit (2);                                                         
    423423    }                                                                   
    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);
    425437    free (tmpLensing);                                                 
    426438    *format = DVO_FORMAT_PS1_V5;                                       
     
    468480  SKIPPING_FORMAT ("DVO_LENSING_PS1_V3",          PS1_V3,          PS1_V3);
    469481  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);
    471483# undef CONVERT_FORMAT
    472484
     
    505517//    FORMAT_CASE (PS1_V3,          PS1_V3);
    506518//    FORMAT_CASE (PS1_V4,          PS1_V4);
    507       FORMAT_CASE (PS1_V5,          PS1_V5);
     519      FORMAT_CASE (PS1_V5,          PS1_V5_R2);
    508520# undef FORMAT_CASE
    509521
Note: See TracChangeset for help on using the changeset viewer.