Cloudy
Spectral Synthesis Code for Astrophysics
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
save_img_matrix Class Reference

#include <save.h>

Inheritance diagram for save_img_matrix:
Collaboration diagram for save_img_matrix:

Public Member Functions

void zero ()
 
void comment (t_warnings &)
 
const char * chName () const
 
bool matchIteration (const long this_iteration) const
 
bool matchZone (const long this_zone) const
 
void createImage (const string &species, const long iteration, const long nzone, const long numLevels, const multi_arr< double, 2, C_TYPE > &matrix, const valarray< double > &creation, bool haveNegPop=false)
 
void createImage (const long iteration, const long nzone, const long numLevels, const multi_arr< double, 2, C_TYPE > &matrix, const valarray< double > &creation, bool haveNegPop=false)
 
void addImagePop_FITS (const string &species, const long iteration, const long nzone, const long numLevels, const valarray< double > &pop, bool haveNegPop=false)
 
void addImagePop_FITS (const long iteration, const long nzone, const long numLevels, const valarray< double > &pop, bool haveNegPop=false)
 
- Public Member Functions inherited from t_prt_matrix
void setSpecies (const string &sspec)
 
void resolveLevels ()
 
void prtRates (const long numLevels, const multi_arr< double, 2, C_TYPE > &matrix, valarray< double > &b)
 
- Public Member Functions inherited from module
 module ()
 
virtual ~module ()
 

Public Attributes

bool lgImgRates
 
bool lgFITS
 
long iteration
 
long zone
 
- Public Attributes inherited from t_prt_matrix
string species
 
string speciesLevels
 
vector< long > speciesLevelList
 
bool lgLevelsResolved = false
 

Private Member Functions

string set_basename (const string &species, const long iteration, const long nzone, bool haveNegPop=false)
 
void createImage_PPM (const string &basename, const long numLevels, const multi_arr< double, 2, C_TYPE > &matrix)
 
void createImage_FITS (const string &basename, const long numLevels, const multi_arr< double, 2, C_TYPE > &matrix, const valarray< double > &creation)
 

Member Function Documentation

void save_img_matrix::addImagePop_FITS ( const string &  species,
const long  iteration,
const long  nzone,
const long  numLevels,
const valarray< double > &  pop,
bool  haveNegPop = false 
)

Add FITS image to an existing file using the given species. Useful for generating FITS images when negative populations are computed.

References open_data(), saveFITSimg(), and set_basename().

Referenced by addImagePop_FITS(), iso_level(), and Atom_LevelN::operator()().

Here is the call graph for this function:

void save_img_matrix::addImagePop_FITS ( const long  iteration,
const long  nzone,
const long  numLevels,
const valarray< double > &  pop,
bool  haveNegPop = false 
)

Add FITS image to an existing file using the species given in the 'save arrays levels' command.

References addImagePop_FITS().

Here is the call graph for this function:

const char* save_img_matrix::chName ( ) const
inlinevirtual

Reimplemented from t_prt_matrix.

void save_img_matrix::comment ( t_warnings )
inlinevirtual

Reimplemented from t_prt_matrix.

void save_img_matrix::createImage ( const string &  species,
const long  iteration,
const long  nzone,
const long  numLevels,
const multi_arr< double, 2, C_TYPE > &  matrix,
const valarray< double > &  creation,
bool  haveNegPop = false 
)

Create image (FITS or PPM) using the given species. Useful for generating FITS images when negative populations are computed.

References multi_arr< T, d, ALLOC, lgBC >::alloc(), createImage_FITS(), createImage_PPM(), DEBUG_ENTRY, lgFITS, t_prt_matrix::lgLevelsResolved, t_prt_matrix::resolveLevels(), set_basename(), and t_prt_matrix::speciesLevelList.

Referenced by createImage(), iso_level(), and Atom_LevelN::operator()().

Here is the call graph for this function:

void save_img_matrix::createImage ( const long  iteration,
const long  nzone,
const long  numLevels,
const multi_arr< double, 2, C_TYPE > &  matrix,
const valarray< double > &  creation,
bool  haveNegPop = false 
)

Create image (FITS or PPM) using the species given in the 'save arrays levels' command.

References createImage().

Here is the call graph for this function:

void save_img_matrix::createImage_FITS ( const string &  basename,
const long  numLevels,
const multi_arr< double, 2, C_TYPE > &  matrix,
const valarray< double > &  creation 
)
private

References DEBUG_ENTRY, open_data(), and saveFITSimg().

Referenced by createImage().

Here is the call graph for this function:

void save_img_matrix::createImage_PPM ( const string &  basename,
const long  numLevels,
const multi_arr< double, 2, C_TYPE > &  matrix 
)
private

References DEBUG_ENTRY, fprintf(), MAX2, MIN2, and open_data().

Referenced by createImage().

Here is the call graph for this function:

bool save_img_matrix::matchIteration ( const long  this_iteration) const
inline

References iteration.

Referenced by iso_level(), and Atom_LevelN::operator()().

bool save_img_matrix::matchZone ( const long  this_zone) const
inline

References zone.

Referenced by iso_level(), and Atom_LevelN::operator()().

string save_img_matrix::set_basename ( const string &  species,
const long  iteration,
const long  nzone,
bool  haveNegPop = false 
)
private

Referenced by addImagePop_FITS(), and createImage().

void save_img_matrix::zero ( void  )
virtual

Reimplemented from t_prt_matrix.

References iteration, lgFITS, lgImgRates, t_prt_matrix::zero(), and zone.

Here is the call graph for this function:

Member Data Documentation

long save_img_matrix::iteration

Referenced by matchIteration(), ParseSave(), and zero().

bool save_img_matrix::lgFITS

Referenced by createImage(), ParseSave(), and zero().

bool save_img_matrix::lgImgRates

Referenced by ParseSave(), and zero().

long save_img_matrix::zone

Referenced by matchZone(), ParseSave(), and zero().


The documentation for this class was generated from the following files: