IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 1, 2021, 6:23:13 PM (5 years ago)
Author:
eugene
Message:

enable PS_FITS_SCALE_ASINH_MANUAL (was incompletely implemented)

Location:
branches/eam_branches/ipp-20211108/psLib/src/fits
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20211108/psLib/src/fits/psFits.h

    r31633 r41948  
    6060    PS_FITS_SCALE_ASINH_STDEV_NEGATIVE, ///< Do asinh scaling, auto-scale to sample stdev, place mean at upper limit
    6161    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)
    6363} psFitsScaling;
    6464
  • branches/eam_branches/ipp-20211108/psLib/src/fits/psFitsImage.c

    r41521 r41948  
    744744      }
    745745    }   
    746     // Remove any BSOFTENvalues that exist in the header if we are not using that scaling anymore
     746    // Remove any BSOFTEN values that exist in the header if we are not using that scaling anymore
    747747    if (options && (!((options->scaling == PS_FITS_SCALE_ASINH_RANGE)||
    748748                      (options->scaling == PS_FITS_SCALE_ASINH_MANUAL)||
  • branches/eam_branches/ipp-20211108/psLib/src/fits/psFitsScale.c

    r41521 r41948  
    963963        *bzero = options->bzero;
    964964        *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;
    965971        break;
    966972      default:
Note: See TracChangeset for help on using the changeset viewer.