IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 36215


Ignore:
Timestamp:
Oct 14, 2013, 7:43:03 AM (13 years ago)
Author:
eugene
Message:

use GALAXY_SHAPES as recipe option to trigger galaxy model output; do not truncate sx,sy but rather minor,major

Location:
branches/eam_branches/ipp-20130904/psModules/src/objects
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20130904/psModules/src/objects/pmModelUtils.c

    r35768 r36215  
    129129bool pmModelAxesToParams (float *Sxx, float *Sxy, float *Syy, psEllipseAxes axes, bool useReff)  {
    130130
     131    // restrict axex to 0.5 here not below
     132    if (axes.minor < 0.2) axes.minor = 0.2;
     133    if (axes.major < 0.2) axes.major = 0.2;
     134
    131135    psEllipseShape shape = psEllipseAxesToShape (axes);
    132136
     
    137141    // set the shape parameters
    138142    if (useReff) {
    139         *Sxx  = PS_MAX(0.5, shape.sx);
    140         *Syy  = PS_MAX(0.5, shape.sy);
     143        // *Sxx  = PS_MAX(0.5, shape.sx);
     144        // *Syy  = PS_MAX(0.5, shape.sy);
     145        *Sxx  = shape.sx;
     146        *Syy  = shape.sy;
    141147        *Sxy  = shape.sxy * 2.0;
    142148    } else {
    143         *Sxx  = PS_MAX(0.5, M_SQRT2*shape.sx);
    144         *Syy  = PS_MAX(0.5, M_SQRT2*shape.sy);
     149        // *Sxx  = PS_MAX(0.5, M_SQRT2*shape.sx);
     150        // *Syy  = PS_MAX(0.5, M_SQRT2*shape.sy);
     151        *Sxx  = M_SQRT2*shape.sx;
     152        *Syy  = M_SQRT2*shape.sy;
    145153        *Sxy  = shape.sxy;
    146154    }
  • branches/eam_branches/ipp-20130904/psModules/src/objects/pmSourceIO.c

    r36205 r36215  
    482482        bool XFIT_OUTPUT = psMetadataLookupBool(&status, recipe, "EXTENDED_SOURCE_FITS");
    483483        bool XRAD_OUTPUT = psMetadataLookupBool(&status, recipe, "RADIAL_APERTURES");
    484         bool XGAL_OUTPUT = psMetadataLookupBool(&status, recipe, "GALAXY_SHAPE");
     484        bool XGAL_OUTPUT = psMetadataLookupBool(&status, recipe, "GALAXY_SHAPES");
    485485
    486486        // define the EXTNAME values for the different data segments:
Note: See TracChangeset for help on using the changeset viewer.