Changeset 2396 for trunk/src/STGrid.h


Ignore:
Timestamp:
01/11/12 13:51:25 (12 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: Yes CAS-2816

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...

Added min/max clipping functionality.
Introduced control parameter and methods for clipping.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/STGrid.h

    r2393 r2396  
    6565  void setWeight( const string wType="uniform" ) ;
    6666
     67  void enableClip() { doclip_ = True ; } ;
     68  void disableClip() { doclip_ = False ; } ;
     69
    6770  void grid() ;
    6871 
     
    7477  // actual gridding
    7578  void gridPerRow() ;
     79  void gridPerRowWithClipping() ;
    7680  void gridPerPol() ;
     81
     82  // clipping
     83  void clipMinMax( Array<Complex> &data,
     84                   Array<Float> &weight,
     85                   Array<Int> &npoints,
     86                   Array<Complex> &clipmin,
     87                   Array<Float> &clipwmin,
     88                   Array<Float> &clipcmin,
     89                   Array<Complex> &clipmax,
     90                   Array<Float> &clipwmax,
     91                   Array<Float> &clipcmax ) ;
     92                   
    7793
    7894  void setupGrid() ;
     
    166182                     Int *chanMap,
    167183                     Int *polMap ) ;
     184  void call_ggridsd2( Array<Double> &xy,
     185                      Array<Complex> &values,
     186                      Int &nvispol,
     187                      Int &nvischan,
     188                      Array<Int> &flag,
     189                      Array<Int> &rflag,
     190                      Array<Float> &weight,
     191                      Int &nrow,
     192                      Int &irow,
     193                      Array<Complex> &grid,
     194                      Array<Float> &wgrid,
     195                      Array<Int> &npoints,
     196                      Array<Complex> &clipmin,
     197                      Array<Float> &clipwmin,
     198                      Array<Float> &clipcmin,
     199                      Array<Complex> &clipmax,
     200                      Array<Float> &clipwmax,
     201                      Array<Float> &clipcmax,
     202                      Int &nx,
     203                      Int &ny,
     204                      Int &npol,
     205                      Int &nchan,
     206                      Int &support,
     207                      Int &sampling,
     208                      Vector<Float> &convFunc,
     209                      Int *chanMap,
     210                      Int *polMap ) ;
    168211
    169212  void initPol( Int ipol ) ;
     
    172215  static bool produceChunk(void *ctx) throw(concurrent::PCException);
    173216  static void consumeChunk(void *ctx) throw(concurrent::PCException);
     217  static void consumeChunkWithClipping(void *ctx) throw(concurrent::PCException);
    174218
    175219
     
    184228  uInt nfile_ ;
    185229  Int ifno_ ;
     230  Bool doclip_ ;
    186231
    187232  Int nx_ ;
Note: See TracChangeset for help on using the changeset viewer.