27#ifndef __GyotoGridData2D_H_
28#define __GyotoGridData2D_H_
33#ifdef GYOTO_USE_CFITSIO
41#ifdef GYOTO_USE_XERCES
75 void rmin(
double rmn);
77 void rmax(
double rmx);
83 void phimin(
double phimn);
84 double phimin()
const;
85 void phimax(
double phimx);
86 double phimax()
const;
89 void tmin(
double tmn);
91 void tmax(
double tmx);
98#ifdef GYOTO_USE_CFITSIO
101 virtual std::vector<size_t> fitsReadHDU(fitsfile* fptr,
117 fitsfile* fitsCreate(std::string filename);
126 void fitsClose(fitsfile* fptr);
141 void fitsWriteHDU(fitsfile* fptr,
149 void getIndices(
size_t i[3],
double const tt,
double const phi,
double const rr)
const ;
150 double interpolate(
double tt,
double phi,
double rr,
151 double*
const array)
const ;
Class for reading data stored in a 2D grid.
Definition: GyotoGridData2D.h:52
size_t nt_
Grid size in the t direction.
Definition: GyotoGridData2D.h:63
GridData2D(const GridData2D &)
Copy constructor.
double dr_
Radius step.
Definition: GyotoGridData2D.h:58
double phimax_
Maximum phi in grid.
Definition: GyotoGridData2D.h:55
size_t nr_
Grid size in the r direction.
Definition: GyotoGridData2D.h:59
virtual ~GridData2D()
Destructor.
double dt_
Time step.
Definition: GyotoGridData2D.h:62
double tmin_
Minimum t in grid.
Definition: GyotoGridData2D.h:64
double rmin_
Minimum r in grid.
Definition: GyotoGridData2D.h:60
double tmax_
Maximum t in grid.
Definition: GyotoGridData2D.h:65
double phimin_
Minimum phi in grid.
Definition: GyotoGridData2D.h:54
size_t nphi_
Grid size in the φ direction.
Definition: GyotoGridData2D.h:57
double rmax_
Maximum r in grid.
Definition: GyotoGridData2D.h:61
double dphi_
δφ between two grid columns
Definition: GyotoGridData2D.h:56
Namespace for the Gyoto library.
Definition: GyotoAstrobj.h:43