IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 17, 2014, 5:49:41 PM (12 years ago)
Author:
eugene
Message:

add alt ps1-v5 lensing format (used by ippdvo2 when making mini dvos)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20140904/Ohana/src/libdvo/src/dvo_convert.c

    r37451 r37494  
    414414    return (FALSE);
    415415  }
     416
     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);
     420    if (!tmpLensing) {                                                 
     421      fprintf (stderr, "ERROR: failed to read lensings\n");             
     422      exit (2);                                                         
     423    }                                                                   
     424    lensing = Lensing_PS1_V5_ALT_ToInternal (tmpLensing, *Nlensing);
     425    free (tmpLensing);                                                 
     426    *format = DVO_FORMAT_PS1_V5;                                       
     427    return (lensing); }
    416428
    417429# define CONVERT_FORMAT(NAME, FORMAT, TYPE)             \
Note: See TracChangeset for help on using the changeset viewer.