IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 18, 2008, 3:04:13 PM (19 years ago)
Author:
Paul Price
Message:

Moving all options on FITS I/O into an additional structure, psFitsOptions. The idea is that this can be carried around independently of the FITS structure, which is only created when opening a file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/pap_branch_080117/psLib/src/fits/psFitsScale.h

    r16122 r16141  
    1414/// functions.  Therefore, since the other FITS functions don't have the mask, while the user may, it is the
    1515/// user's responsibility to call this function.
    16 bool psFitsScaleMeasure(psFits *fits,   ///< FITS options
     16bool psFitsScaleMeasure(psFits *fits,   ///< FITS file
    1717                        const psImage *image, ///< Image to measure
    1818                        const psImage *mask, ///< Mask image, or NULL
    1919                        psMaskType maskVal, ///< Value to mask
    20                         psRandom *rng // Random number generator, or NULL
     20                        psRandom *rng ///< Random number generator, or NULL
    2121    );
    2222
    2323/// Determine BSCALE and BZERO for an image
    24 bool psFitsScaleDetermine(double *bscale, // Scaling, to return
    25                           double *bzero, // Zero point, to return
    26                           const psImage *image, // Image to scale
    27                           const psFits *fits // FITS options
     24bool psFitsScaleDetermine(double *bscale, ///< Scaling, to return
     25                          double *bzero, ///< Zero point, to return
     26                          const psImage *image, ///< Image to scale
     27                          const psFits *fits ///< FITS options
    2828    );
    2929
     
    3434/// time, and unity 10% of the time), though at the cost of adding an additional variance of 1/12 (a standard
    3535/// deviation of ~0.29).
    36 psImage *psFitsScaleForDisk(const psImage *image, // Image to which to apply BSCALE and BZERO
    37                             int bitpix, // Output BITPIX
    38                             double bscale, // Scaling
    39                             double bzero, // Zero point
    40                             bool fuzz,  // Apply fuzz?
    41                             psRandom *rng // Random number generator (for the "fuzz"), or NULL
     36psImage *psFitsScaleForDisk(const psImage *image, ///< Image to which to apply BSCALE and BZERO
     37                            const psFits *fits, ///< FITS file
     38                            double bscale, ///< Scaling
     39                            double bzero, ///< Zero point
     40                            psRandom *rng ///< Random number generator (for the "fuzz"), or NULL
    4241    );
    4342
     43/// Interpret a string as a scaling method
     44psFitsScaling psFitsScalingFromString(const char *string ///< String to interpret
     45    );
    4446
    4547#endif
Note: See TracChangeset for help on using the changeset viewer.