Cloudy
Spectral Synthesis Code for Astrophysics
Loading...
Searching...
No Matches
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 zero ()
 
void comment (t_warnings &)
 
const char * chName () const
 
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

◆ addImagePop_FITS() [1/2]

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(), and t_prt_matrix::species.

Here is the call graph for this function:

◆ addImagePop_FITS() [2/2]

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().

Here is the call graph for this function:

◆ chName()

const char * save_img_matrix::chName ( ) const
inlinevirtual

Implements module.

◆ comment()

void save_img_matrix::comment ( t_warnings & )
inlinevirtual

Implements module.

◆ createImage() [1/2]

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(), and t_prt_matrix::species.

Here is the call graph for this function:

◆ createImage() [2/2]

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().

Here is the call graph for this function:

◆ createImage_FITS()

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:

◆ createImage_PPM()

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:

◆ matchIteration()

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

References iteration.

◆ matchZone()

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

References zone.

◆ set_basename()

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().

◆ zero()

void save_img_matrix::zero ( void )
virtual

Implements module.

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

Here is the call graph for this function:

Member Data Documentation

◆ iteration

long save_img_matrix::iteration

Referenced by matchIteration(), and zero().

◆ lgFITS

bool save_img_matrix::lgFITS

Referenced by createImage(), and zero().

◆ lgImgRates

bool save_img_matrix::lgImgRates

Referenced by zero().

◆ zone

long save_img_matrix::zone

Referenced by matchZone(), and zero().


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