casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SpectralImageUtil.h
Go to the documentation of this file.
1 //# SpectralImageUtil.h: Definitions for casacore::Stokes Image utilities
2 //# Copyright (C) 2013
3 //# Associated Universities, Inc. Washington DC, USA.
4 //#
5 //# This library is free software; you can redistribute it and/or modify it
6 //# under the terms of the GNU Library General Public License as published by
7 //# the Free Software Foundation; either version 2 of the License, or (at your
8 //# option) any later version.
9 //#
10 //# This library is distributed in the hope that it will be useful, but WITHOUT
11 //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 //# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
13 //# License for more details.
14 //#
15 //# You should have received a copy of the GNU Library General Public License
16 //# along with this library; if not, write to the Free Software Foundation,
17 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
18 //#
19 //# Correspondence concerning AIPS++ should be adressed as follows:
20 //# Internet email: aips2-request@nrao.edu.
21 //# Postal address: AIPS++ Project Office
22 //# National Radio Astronomy Observatory
23 //# 520 Edgemont Road
24 //# Charlottesville, VA 22903-2475 USA
25 //#
26 //#
27 //# $Id$
28 #ifndef SYNTHESIS_SPECTRALIMAGEUTIL_H
29 #define SYNTHESIS_SPECTRALIMAGEUTIL_H
30 
32 #include <images/Images/SubImage.h>
33 
34 namespace casa { //# NAMESPACE CASA - BEGIN
35 
37 
38  public:
39  //Returns a pointer to a subimage of the requested plane
40  //Note caller is responsible for deleting the subimage object
41  // If writeaccess is true ...modification on the subimage will get recorded on the original image if it is writeable
43  //Frequency at a given pixel along the spectral axis (value returned is in Hz)
44  static casacore::Double worldFreq(const casacore::CoordinateSystem& cs, casacore::Double spectralpix=0.0);
45 
46 };//end of class
47 
48 } //# NAMESPACE CASA - END
49 
50 #endif
51 
int Int
Definition: aipstype.h:50
static casacore::SubImage< casacore::Float > * getChannel(casacore::ImageInterface< casacore::Float > &theIm, casacore::Int begchannel=0, casacore::Int endchannel=-1, casacore::Bool writeAccess=false)
Returns a pointer to a subimage of the requested plane Note caller is responsible for deleting the su...
static casacore::Double worldFreq(const casacore::CoordinateSystem &cs, casacore::Double spectralpix=0.0)
Frequency at a given pixel along the spectral axis (value returned is in Hz)
double Double
Definition: aipstype.h:55
bool Bool
Define the standard types used by Casacore.
Definition: aipstype.h:42
A (masked) subset of an ImageInterface object.
Interconvert pixel and world coordinates.