Changeset 38441 for trunk/Ohana/src/libdvo/src/flatcorr_io.c
- Timestamp:
- Jun 12, 2015, 6:18:23 PM (11 years ago)
- Location:
- trunk/Ohana
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/libdvo/src/flatcorr_io.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana
-
Property svn:mergeinfo
set to
/branches/eam_branches/ohana.20150429 merged eligible
-
Property svn:mergeinfo
set to
-
trunk/Ohana/src/libdvo/src/flatcorr_io.c
r37807 r38441 49 49 return (NULL); 50 50 } 51 flatcorrTable->image = gfits_table_get_FlatCorrectionImage (&ftable, &flatcorrTable->Nimage, NULL );51 flatcorrTable->image = gfits_table_get_FlatCorrectionImage (&ftable, &flatcorrTable->Nimage, NULL, NULL); 52 52 if (!flatcorrTable->image) { 53 53 fprintf (stderr, "ERROR: failed to read Flat Correction Images\n"); … … 64 64 return (NULL); 65 65 } 66 flatcorrTable->corr = gfits_table_get_FlatCorrection (&ftable, &flatcorrTable->Ncorr, NULL );66 flatcorrTable->corr = gfits_table_get_FlatCorrection (&ftable, &flatcorrTable->Ncorr, NULL, NULL); 67 67 if (!flatcorrTable->corr) { 68 68 fprintf (stderr, "ERROR: failed to read Flat Corrections\n"); … … 93 93 for (j = 0; j < flatcorrTable->image[i].Nx; j++) { 94 94 ALLOCATE (flatcorrTable->offset[i][j], float, flatcorrTable->image[i].Ny); 95 memset (flatcorrTable->offset[i][j], 0 .0, flatcorrTable->image[i].Ny*sizeof(float));95 memset (flatcorrTable->offset[i][j], 0, flatcorrTable->image[i].Ny*sizeof(float)); 96 96 } 97 97 } … … 161 161 162 162 ftableImage.header = &theaderImage; 163 gfits_table_set_FlatCorrectionImage (&ftableImage, image, flatcorrTable->Nimage );163 gfits_table_set_FlatCorrectionImage (&ftableImage, image, flatcorrTable->Nimage, TRUE); 164 164 165 165 ftableCorr.header = &theaderCorr; 166 gfits_table_set_FlatCorrection (&ftableCorr, corr, flatcorrTable->Ncorr );166 gfits_table_set_FlatCorrection (&ftableCorr, corr, flatcorrTable->Ncorr, TRUE); 167 167 168 168 f = fopen (filename, "w");
Note:
See TracChangeset
for help on using the changeset viewer.
