Changeset 42089 for trunk/psLib/src/fits
- Timestamp:
- Feb 28, 2022, 2:43:25 PM (4 years ago)
- Location:
- trunk/psLib/src/fits
- Files:
-
- 4 edited
-
psFits.h (modified) (1 diff)
-
psFitsImage.c (modified) (1 diff)
-
psFitsScale.c (modified) (1 diff)
-
psFitsTableNew.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/fits/psFits.h
r31633 r42089 60 60 PS_FITS_SCALE_ASINH_STDEV_NEGATIVE, ///< Do asinh scaling, auto-scale to sample stdev, place mean at upper limit 61 61 PS_FITS_SCALE_ASINH_STDEV_BOTH, ///< Do asinh scaling, auto-scale to sample stdev, place mean at middle 62 PS_FITS_SCALE_ASINH_MANUAL ///< Manual scaling after doing asinh scaling. 62 PS_FITS_SCALE_ASINH_MANUAL ///< Manual scaling after doing asinh scaling.(use specified BSCALE, BZERO, BOFFSET, BSOFTEN) 63 63 } psFitsScaling; 64 64 -
trunk/psLib/src/fits/psFitsImage.c
r41521 r42089 744 744 } 745 745 } 746 // Remove any BSOFTEN values that exist in the header if we are not using that scaling anymore746 // Remove any BSOFTEN values that exist in the header if we are not using that scaling anymore 747 747 if (options && (!((options->scaling == PS_FITS_SCALE_ASINH_RANGE)|| 748 748 (options->scaling == PS_FITS_SCALE_ASINH_MANUAL)|| -
trunk/psLib/src/fits/psFitsScale.c
r41521 r42089 963 963 *bzero = options->bzero; 964 964 *boffset = options->boffset; 965 break; 966 case PS_FITS_SCALE_ASINH_MANUAL: 967 *bscale = options->bscale; 968 *bzero = options->bzero; 969 *boffset = options->boffset; 970 *bsoften = options->bsoften; 965 971 break; 966 972 default: -
trunk/psLib/src/fits/psFitsTableNew.c
r41896 r42089 97 97 freeTable(psFitsTable *table) 98 98 { 99 if (!table) return; 99 100 for (int col = 0; col < table->numCols; col++) { 100 101 psFitsTableColumn *column = &table->columns[col]; … … 176 177 { 177 178 // add any element frees here 179 if (!column) return; 180 181 psFree (column->name); 178 182 return; 179 183 } … … 195 199 psFitsTableColumn *column = psFitsTableColumnAlloc (name, type); 196 200 psArrayAdd (tableColumns, 10, column); 201 psFree (column); 197 202 return true; 198 203 }
Note:
See TracChangeset
for help on using the changeset viewer.
