Changeset 36618
- Timestamp:
- Mar 29, 2014, 12:55:09 PM (12 years ago)
- Location:
- branches/eam_branches/ipp-20140206/Ohana/src/relphot/src
- Files:
-
- 2 edited
-
ImageMagIO.c (modified) (2 diffs)
-
MeanMagIO.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20140206/Ohana/src/relphot/src/ImageMagIO.c
r36545 r36618 53 53 fclose (f); 54 54 55 // a bit annoying :we read the entire block of data, then extract the columns, then set the image structure values.56 // this means I need 3 copies in memory at some point. ugh.55 // we read the entire block of data, then extract the columns, then set the image structure values. 56 // I free the FITS table data after extracting the colums to avoid having 3 copies in memory. 57 57 58 58 char type[16]; … … 66 66 GET_COLUMN (ubercalDist, "UDIST", int); 67 67 GET_COLUMN (imageID, "ID", int); 68 69 // free the memory associated with the FITS files 70 gfits_free_header (&header); 71 gfits_free_matrix (&matrix); 72 gfits_free_header (&theader); 73 gfits_free_table (&ftable); 68 74 69 75 ALLOCATE (image_mags, ImageMag, Nrow); -
branches/eam_branches/ipp-20140206/Ohana/src/relphot/src/MeanMagIO.c
r36616 r36618 64 64 GET_COLUMN (objID, "OBJ_ID", int); 65 65 GET_COLUMN (catID, "CAT_ID", int); 66 67 // free the memory associated with the FITS files 68 gfits_free_header (&header); 69 gfits_free_matrix (&matrix); 70 gfits_free_header (&theader); 71 gfits_free_table (&ftable); 66 72 67 73 ALLOCATE (meanmags, MeanMag, Nrow); … … 83 89 free (catID); 84 90 85 // free FITS table pieces...86 87 91 *nmeanmags = Nrow; 88 92 return meanmags;
Note:
See TracChangeset
for help on using the changeset viewer.
