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,
149 void getIndices(
size_t i[3],
double const tt,
double const phi,
double const rr,
double*
const time_array=NULL)
const ;
150 double interpolate(
double tt,
double phi,
double rr,
151 double*
const array,
double*
const time_array=NULL)
const ;
double phimin_
Minimum phi in grid.
Definition: GyotoGridData2D.h:54
double dt_
Time step, if not constant would be ignored.
Definition: GyotoGridData2D.h:62
virtual ~GridData2D()
Destructor.
void fitsWriteHDU(fitsfile *fptr, std::string extname, double *src, size_t length=0)
Writes specific HDU in FITS files.
double tmax_
Maximum t in grid.
Definition: GyotoGridData2D.h:65
size_t nphi_
Grid size in the φ direction.
Definition: GyotoGridData2D.h:57
double dr_
Radius step.
Definition: GyotoGridData2D.h:58
fitsfile * fitsCreate(std::string filename)
Creates a FITS file with dummy primary HDU.
Class for reading data stored in a 2D grid.
Definition: GyotoGridData2D.h:51
double tmin_
Minimum t in grid.
Definition: GyotoGridData2D.h:64
Namespace for the Gyoto library.
Definition: GyotoAstrobj.h:43
double dphi_
δφ between two grid columns
Definition: GyotoGridData2D.h:56
size_t nt_
Grid size in the t direction.
Definition: GyotoGridData2D.h:63
void fitsClose(fitsfile *fptr)
Closes a fits file referred to by a fitsfile pointer.
double rmax_
Maximum r in grid.
Definition: GyotoGridData2D.h:61
size_t nr_
Grid size in the r direction.
Definition: GyotoGridData2D.h:59
double rmin_
Minimum r in grid.
Definition: GyotoGridData2D.h:60
double phimax_
Maximum phi in grid.
Definition: GyotoGridData2D.h:55