Ignore:
Timestamp:
01/09/13 18:16:07 (11 years ago)
Author:
Kana Sugimoto
Message:

New Development: No

JIRA Issue: No

Ready for Test: Yes

Interface Changes: Yes

What Interface Changed: added two new methods, get_gref() and get_gcellval() in plothelper class.

Test Programs: test_sdplot[sdplot_gridTest]

Put in Release Notes: No

Module(s): asapplotter and sdplot

Description:

Added two new methods in plothelper class to get grid center
and spacings of plot grids.

  • get_gref(): returns the reference direction (grid center) of grid (a string)
  • get_gcellval(): returns the absolute increment (in radian) of grid (a double vector)


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/PlotHelper.h

    r2717 r2719  
    3838  virtual ~PlotHelper();
    3939  /**
    40    * Set scantable for automatic resolution of grid parameter
     40   * Set scantable
    4141   **/
    4242  void setScantable( const ScantableWrapper &s ) ;
     
    5858
    5959  /**
    60    * Get Pixel position of a row
     60   * Get Pixel position of a row in the scantable
    6161   **/
    6262  vector<double> getGridPixel(const int whichrow=0);
    6363
     64  /**
     65   * Get the reference direction of grid coordinate (grid center)
     66   **/
     67  string getGridRef();
     68
     69  /**
     70   * Get the cell size (>0) of the grid coordinate (in radian)
     71   **/
     72  vector<double> getGridCellVal();
     73
     74
    6475private:
     76  /** Generate temporal coordinate from the DIRECTION column of a scantable**/
    6577  casa::DirectionCoordinate getSTCoord(const int nx, const int ny,
    6678                                       const casa::Projection::Type ptype);
    6779
    68   casa::DirectionCoordinate *dircoord_;
     80  /** Generation of direction coordinate **/
     81  void setupCoord(const casa::MDirection::Types mdt,
     82                  const casa::Projection::Type pjt,
     83                  const casa::Double centx, const casa::Double centy,
     84                  const casa::Double incx, const casa::Double incy,
     85                  const casa::Double refx, const casa::Double refy);
     86
     87  casa::DirectionCoordinate *dircoord_p;
    6988  casa::CountedPtr<Scantable> data_p;
    7089
Note: See TracChangeset for help on using the changeset viewer.