28#ifndef __GyotoNeutronStarModelAtmosphere_H_
29#define __GyotoNeutronStarModelAtmosphere_H_
37 namespace Astrobj {
class NeutronStarModelAtmosphere; }
73 void
fillProperty(Gyoto::FactoryMessenger *fmp, Property const &p) const;
81 void file(std::string const &f);
82 std::string file() const ;
83 void averageOverAngle(bool t);
84 bool averageOverAngle()const;
86 #ifdef GYOTO_USE_CFITSIO
88 virtual void fitsRead(std::string filename_);
91 virtual void fitsWrite(std::string filename_);
103 void surfgrav(double * pattern);
120 size_t const naxes[3] = NULL);
125 virtual void copyGridSurfgrav(double const * const pattern = NULL,
128 virtual void copyGridCosi(double const * const pattern = NULL,
131 virtual void copyGridFreq(double const * const pattern = NULL,
136 void
getIndices(size_t i[3], double const co[4], double cosi, double nu=0.) const ;
142 state_t const &_ph, double const _obj[8]=NULL) const;
#define size_t
If not defined in <sys/types.h>.
Definition: GyotoConfig.h:390
Neutron star defined by its surface ; no emission.
Base class for 3+1 numerical metrics computed by LORENE.
#define GYOTO_OBJECT
Declare class::properties and class::getProperties()
Definition: GyotoObject.h:84
Astronomical objects defined bya a potential/distance.
Neutron star defined by its surface ; no emission.
Definition: GyotoNeutronStar.h:45
Neutron star emitting at its surface an emission provided by a FITS table.
Definition: GyotoNeutronStarModelAtmosphere.h:46
virtual double const * getGridFreq() const
Get NeutronStarModelAtmosphere::freq_.
virtual void getIntensityNaxes(size_t naxes[3]) const
Get NeutronStarModelAtmosphere::nnu_, NeutronStarModelAtmosphere::ni_, and NeutronStarModelAtmosphere...
double * freq_
Frequencies vector.
Definition: GyotoNeutronStarModelAtmosphere.h:60
size_t nnu_
Number of frequencies provided in NeutronStarModelAtmosphere::emission_.
Definition: GyotoNeutronStarModelAtmosphere.h:62
virtual double emission(double nu_em, double dsem, state_t const &_ph, double const _obj[8]=NULL) const
Specific intensity Iν
std::string filename_
Optional FITS file name containing the arrays.
Definition: GyotoNeutronStarModelAtmosphere.h:50
bool average_over_angle_
true to average over emission angle
Definition: GyotoNeutronStarModelAtmosphere.h:66
double * emission_
Iν(ν, surfgrav, cosi;)
Definition: GyotoNeutronStarModelAtmosphere.h:56
size_t ni_
Number of direction cosine.
Definition: GyotoNeutronStarModelAtmosphere.h:63
virtual double const * getGridCosi() const
Get NeutronStarModelAtmosphere::cosi_.
void fillProperty(Gyoto::FactoryMessenger *fmp, Property const &p) const
Output a single Property to XML.
virtual double const * getIntensity() const
Get NeutronStarModelAtmosphere::emission_.
size_t nsg_
Number of surfgrav values.
Definition: GyotoNeutronStarModelAtmosphere.h:64
virtual NeutronStarModelAtmosphere * clone() const
Cloner.
double * cosi_
Direction cosine vector.
Definition: GyotoNeutronStarModelAtmosphere.h:59
void getIndices(size_t i[3], double const co[4], double cosi, double nu=0.) const
Get emission_ cell corresponding to position co[4].
virtual void copyIntensity(double const *const pattern=NULL, size_t const naxes[3]=NULL)
virtual double const * getGridSurfgrav() const
Get NeutronStarModelAtmosphere::surfgrav_.
double * surfgrav_
Surface gravity vector.
Definition: GyotoNeutronStarModelAtmosphere.h:58
void setEmission(double *pattern)
Pointers performing reference counting.
Definition: GyotoSmartPointer.h:135
Namespace for the Gyoto library.
Definition: GyotoAstrobj.h:43