Changeset 2671 for trunk/src/STGrid.h


Ignore:
Timestamp:
10/18/12 18:36:25 (12 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: Yes CAS-4429

Ready for Test: Yes

Interface Changes: No

What Interface Changed: Please list interface changes

Test Programs: List test programs

Put in Release Notes: Yes/No

Module(s): Module Names change impacts.

Description: Describe your changes here...

Implemented gauss and gjinc gridding. Added some arguments to
pass necessary parameters for those grid functions.

Also, defined helper function that plots current grid function
against radius in pixel.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/STGrid.h

    r2669 r2671  
    6161                    string scenter="" ) ;
    6262  void setFunc( string convtype="box",
    63                 int convsupport=-1 ) ;
     63                int convsupport=-1,
     64                string truncate="",
     65                string gwidth="",
     66                string jwidth="" ) ;
    6467
    6568  void setWeight( const string wType="uniform" ) ;
     
    7174 
    7275  string saveData( string outfile="" ) ;
     76
     77  // support function to know how grid function looks like
     78  vector<float> getConvFunc();
    7379
    7480//private:
     
    138144  void boxFunc( Vector<Float> &convFunc, Int &convSize ) ;
    139145  void spheroidalFunc( Vector<Float> &convFunc ) ;
    140   void gaussFunc( Vector<Float> &convFunc ) ;
     146  void gaussFunc( Vector<Float> &convFunc, Double hwhm, Double truncate ) ;
     147  void gjincFunc( Vector<Float> &convFunc, Double hwhm, Double c, Double truncate );
    141148  void pbFunc( Vector<Float> &convFunc ) ;
    142149  void setConvFunc( Vector<Float> &convFunc ) ;
     
    232239  Int convSupport_ ;
    233240  Int userSupport_ ;
     241  String gwidth_;
     242  String jwidth_;
     243  String truncate_;
    234244  Int convSampling_ ;
    235245  Vector<uInt> pollist_ ;
Note: See TracChangeset for help on using the changeset viewer.