#include <skymap.h>
Inheritance diagram for Skymap:
Public Types | |
none | |
TPix | |
PPix | |
TnobsPix | |
TPnobsPix | |
enum | Type { none, TPix, PPix, TnobsPix, TPnobsPix } |
Public Member Functions | |
Skymap () | |
Skymap (unsigned int n_in, Type type_in) | |
virtual | ~Skymap () |
virtual void | set (unsigned int n_in, Type type_in) |
virtual void | clear () |
void | copy (Skymap &imap) |
unsigned int | size () const |
unsigned int | n () const |
Type | type () const |
bool | has_Temperature (void) const |
bool | has_Polarization (void) const |
bool | has_Nobs (void) const |
BasePixel & | operator[] (unsigned int i) |
Skymap & | operator= (Skymap &imap) |
virtual void | computePolar (void) |
virtual void | calcStats (void) |
double | getMeanT () const |
double | getStdDevT () const |
double | getMinT () const |
double | getMaxT () const |
double | getMeanQ () const |
double | getStdDevQ () const |
double | getMinQ () const |
double | getMaxQ () const |
double | getMeanU () const |
double | getStdDevU () const |
double | getMinU () const |
double | getMaxU () const |
double | getMeanNobs () const |
double | getStdDevNobs () const |
double | getMinNobs () const |
double | getMaxNobs () const |
double | getMeanPmag () const |
double | getStdDevPmag () const |
double | getMinPmag () const |
double | getMaxPmag () const |
double | getMeanPang () const |
double | getStdDevPang () const |
double | getMinPang () const |
double | getMaxPang () const |
virtual void | readFITS (const char *filename, ControlDialog *progwin=NULL) |
virtual void | readFITS (std::string filename, ControlDialog *progwin=NULL) |
virtual void | readFITS (QString filename, ControlDialog *progwin=NULL) |
virtual void | writeFITS (const char *filename, char *tabname=NULL) |
virtual void | writeFITS (std::string filename, char *tabname=NULL) |
virtual void | writeFITS (QString filename, char *tabname=NULL) |
Protected Member Functions | |
virtual void | init () |
virtual void | allocPixMemory (unsigned int n_in, Type type_in) |
virtual void | freeMemory () |
BasePixel & | returnnone (unsigned int i) |
BasePixel & | returnTpix (unsigned int i) |
BasePixel & | returnTPpix (unsigned int i) |
BasePixel & | returnTnobspix (unsigned int i) |
BasePixel & | returnTPnobspix (unsigned int i) |
void | writeHdrDate (fitsfile *fptr) |
virtual void | readFITSPrimaryHeader (fitsfile *fptr) |
virtual void | writeFITSPrimaryHeader (fitsfile *fptr) |
virtual void | readFITSExtensionHeader (fitsfile *fptr) |
virtual void | writeFITSExtensionHeader (fitsfile *fptr) |
Protected Attributes | |
Type | type_ |
unsigned int | n_ |
TPixel * | tpix |
TPPixel * | tppix |
TnobsPixel * | tnobspix |
TPnobsPixel * | tpnobspix |
TPnobsPixel | minpix |
TPnobsPixel | maxpix |
TPnobsPixel | avgpix |
TPnobsPixel | stdpix |
BasePixel &(Skymap::* | returnfct )(unsigned int) |
Static Protected Attributes | |
static BasePixel | basedummy |
Definition at line 39 of file skymap.h.
enum Skymap::Type |
Skymap::Skymap | ( | ) |
Skymap::Skymap | ( | unsigned int | n_in, | |
Type | type_in | |||
) |
Skymap::~Skymap | ( | ) | [virtual] |
void Skymap::allocPixMemory | ( | unsigned int | n_in, | |
Type | type_in | |||
) | [protected, virtual] |
Definition at line 139 of file skymap.cpp.
References MapException::InvalidType, MapException::Memory, n(), n_, none, PPix, returnfct, returnTnobspix(), returnTpix(), returnTPnobspix(), returnTPpix(), TnobsPix, tnobspix, TPix, tpix, TPnobsPix, tpnobspix, tppix, type(), and type_.
Referenced by readFITS(), and set().
void Skymap::calcStats | ( | void | ) | [virtual] |
Definition at line 401 of file skymap.cpp.
References avgpix, MapException::InvalidType, maxpix, minpix, Nobs, TPnobsPixel::Nobs(), TPPixel::Pang(), TPPixel::Pmag(), PPix, Q, TPPixel::Q(), size(), stdpix, TPixel::T(), TnobsPix, TPix, TPnobsPix, type(), U, and TPPixel::U().
Referenced by readFITS().
virtual void Skymap::clear | ( | void | ) | [inline, virtual] |
void Skymap::computePolar | ( | void | ) | [virtual] |
Definition at line 376 of file skymap.cpp.
References has_Polarization(), and size().
Referenced by readFITS().
void Skymap::copy | ( | Skymap & | imap | ) |
Definition at line 329 of file skymap.cpp.
References avgpix, MapException::InvalidType, maxpix, minpix, PPix, set(), size(), stdpix, TnobsPix, TPix, TPnobsPix, and type().
Referenced by HealpixMap::copy(), and operator=().
void Skymap::freeMemory | ( | ) | [protected, virtual] |
double Skymap::getMaxNobs | ( | ) | const [inline] |
Definition at line 503 of file skymap.h.
References has_Nobs(), MapException::InvalidType, maxpix, and TPnobsPixel::Nobs().
double Skymap::getMaxPang | ( | ) | const [inline] |
Definition at line 641 of file skymap.h.
References has_Polarization(), MapException::InvalidType, maxpix, and TPPixel::Pang().
double Skymap::getMaxPmag | ( | ) | const [inline] |
Definition at line 572 of file skymap.h.
References has_Polarization(), MapException::InvalidType, maxpix, and TPPixel::Pmag().
double Skymap::getMaxQ | ( | ) | const [inline] |
Definition at line 381 of file skymap.h.
References has_Polarization(), MapException::InvalidType, maxpix, and TPPixel::Q().
double Skymap::getMaxT | ( | ) | const [inline] |
Definition at line 320 of file skymap.h.
References has_Temperature(), MapException::InvalidType, maxpix, and TPixel::T().
double Skymap::getMaxU | ( | ) | const [inline] |
Definition at line 442 of file skymap.h.
References has_Polarization(), MapException::InvalidType, maxpix, and TPPixel::U().
double Skymap::getMeanNobs | ( | ) | const [inline] |
Definition at line 457 of file skymap.h.
References avgpix, has_Nobs(), MapException::InvalidType, and TPnobsPixel::Nobs().
double Skymap::getMeanPang | ( | ) | const [inline] |
Definition at line 589 of file skymap.h.
References avgpix, has_Polarization(), MapException::InvalidType, and TPPixel::Pang().
double Skymap::getMeanPmag | ( | ) | const [inline] |
Definition at line 520 of file skymap.h.
References avgpix, has_Polarization(), MapException::InvalidType, and TPPixel::Pmag().
double Skymap::getMeanQ | ( | ) | const [inline] |
Definition at line 335 of file skymap.h.
References avgpix, has_Polarization(), MapException::InvalidType, and TPPixel::Q().
double Skymap::getMeanT | ( | ) | const [inline] |
Definition at line 272 of file skymap.h.
References avgpix, has_Temperature(), MapException::InvalidType, and TPixel::T().
double Skymap::getMeanU | ( | ) | const [inline] |
Definition at line 396 of file skymap.h.
References avgpix, has_Polarization(), MapException::InvalidType, and TPPixel::U().
double Skymap::getMinNobs | ( | ) | const [inline] |
Definition at line 488 of file skymap.h.
References has_Nobs(), MapException::InvalidType, minpix, and TPnobsPixel::Nobs().
double Skymap::getMinPang | ( | ) | const [inline] |
Definition at line 624 of file skymap.h.
References has_Polarization(), MapException::InvalidType, minpix, and TPPixel::Pang().
double Skymap::getMinPmag | ( | ) | const [inline] |
Definition at line 555 of file skymap.h.
References has_Polarization(), MapException::InvalidType, minpix, and TPPixel::Pmag().
double Skymap::getMinQ | ( | ) | const [inline] |
Definition at line 366 of file skymap.h.
References has_Polarization(), MapException::InvalidType, minpix, and TPPixel::Q().
double Skymap::getMinT | ( | ) | const [inline] |
Definition at line 304 of file skymap.h.
References has_Temperature(), MapException::InvalidType, minpix, and TPixel::T().
double Skymap::getMinU | ( | ) | const [inline] |
Definition at line 427 of file skymap.h.
References has_Polarization(), MapException::InvalidType, minpix, and TPPixel::U().
double Skymap::getStdDevNobs | ( | ) | const [inline] |
Definition at line 473 of file skymap.h.
References has_Nobs(), MapException::InvalidType, TPnobsPixel::Nobs(), and stdpix.
double Skymap::getStdDevPang | ( | ) | const [inline] |
Definition at line 607 of file skymap.h.
References has_Polarization(), MapException::InvalidType, TPPixel::Pang(), and stdpix.
double Skymap::getStdDevPmag | ( | ) | const [inline] |
Definition at line 538 of file skymap.h.
References has_Polarization(), MapException::InvalidType, TPPixel::Pmag(), and stdpix.
double Skymap::getStdDevQ | ( | ) | const [inline] |
Definition at line 351 of file skymap.h.
References has_Polarization(), MapException::InvalidType, TPPixel::Q(), and stdpix.
double Skymap::getStdDevT | ( | ) | const [inline] |
Definition at line 288 of file skymap.h.
References has_Temperature(), MapException::InvalidType, stdpix, and TPixel::T().
double Skymap::getStdDevU | ( | ) | const [inline] |
Definition at line 412 of file skymap.h.
References has_Polarization(), MapException::InvalidType, stdpix, and TPPixel::U().
bool Skymap::has_Nobs | ( | void | ) | const [inline] |
Definition at line 228 of file skymap.h.
References TnobsPix, TPnobsPix, and type().
Referenced by getMaxNobs(), getMeanNobs(), getMinNobs(), getStdDevNobs(), RangeControl::init(), SelectedPixelModel::set(), PolarArgLineSet::set(), and mainWindow::setFieldEnables().
bool Skymap::has_Polarization | ( | void | ) | const [inline] |
Definition at line 215 of file skymap.h.
References PPix, TPnobsPix, and type().
Referenced by computePolar(), getMaxPang(), getMaxPmag(), getMaxQ(), getMaxU(), getMeanPang(), getMeanPmag(), getMeanQ(), getMeanU(), getMinPang(), getMinPmag(), getMinQ(), getMinU(), getStdDevPang(), getStdDevPmag(), getStdDevQ(), getStdDevU(), RangeControl::init(), mainWindow::readFile(), SelectedPixelModel::set(), PolarArgLineSet::set(), and mainWindow::setFieldEnables().
bool Skymap::has_Temperature | ( | void | ) | const [inline] |
Definition at line 202 of file skymap.h.
Referenced by getMaxT(), getMeanT(), getMinT(), getStdDevT(), RangeControl::init(), SelectedPixelModel::set(), and mainWindow::setFieldEnables().
void Skymap::init | ( | ) | [protected, virtual] |
Definition at line 111 of file skymap.cpp.
References avgpix, BasePixel::clear(), maxpix, minpix, n_, none, returnfct, returnnone(), stdpix, tnobspix, tpix, tpnobspix, tppix, and type_.
Referenced by freeMemory(), and Skymap().
unsigned int Skymap::n | ( | ) | const [inline] |
Definition at line 122 of file skymap.h.
References n_.
Referenced by allocPixMemory(), set(), and HistogramWidget::set().
BasePixel & Skymap::operator[] | ( | unsigned int | i | ) | [inline] |
void Skymap::readFITS | ( | QString | filename, | |
ControlDialog * | progwin = NULL | |||
) | [virtual] |
virtual void Skymap::readFITS | ( | std::string | filename, | |
ControlDialog * | progwin = NULL | |||
) | [virtual] |
Reimplemented in HealpixMap.
void Skymap::readFITS | ( | const char * | filename, | |
ControlDialog * | progwin = NULL | |||
) | [virtual] |
Reimplemented in HealpixMap.
Definition at line 837 of file skymap.cpp.
References allocPixMemory(), calcStats(), clear(), computePolar(), ControlDialog::finished(), MapException::FITSError, ControlDialog::hasField(), I, ICOLNAME, MapException::InvalidType, ControlDialog::loadField(), ControlDialog::loadFile(), MapException::Memory, NCOLNAME, Nobs, P, PPix, Q, QCOLNAME, QCOLNAMEA, QCOLNAMEB, QCOLNAMEC, readFITSExtensionHeader(), readFITSPrimaryHeader(), TnobsPix, TPix, TPnobsPix, U, UCOLNAME, UCOLNAMEA, UCOLNAMEB, and UCOLNAMEC.
Referenced by readFITS(), and HealpixMap::readFITS().
void Skymap::readFITSExtensionHeader | ( | fitsfile * | fptr | ) | [protected, virtual] |
Reimplemented in HealpixMap.
Definition at line 277 of file skymap.cpp.
Referenced by readFITS(), and HealpixMap::readFITSExtensionHeader().
void Skymap::readFITSPrimaryHeader | ( | fitsfile * | fptr | ) | [protected, virtual] |
Reimplemented in HealpixMap.
Definition at line 236 of file skymap.cpp.
Referenced by readFITS(), and HealpixMap::readFITSPrimaryHeader().
BasePixel & Skymap::returnnone | ( | unsigned int | i | ) | [protected] |
Definition at line 97 of file skymap.cpp.
References basedummy, and MapException::InvalidType.
Referenced by init().
BasePixel & Skymap::returnTnobspix | ( | unsigned int | i | ) | [inline, protected] |
BasePixel & Skymap::returnTpix | ( | unsigned int | i | ) | [inline, protected] |
BasePixel & Skymap::returnTPnobspix | ( | unsigned int | i | ) | [inline, protected] |
BasePixel & Skymap::returnTPpix | ( | unsigned int | i | ) | [inline, protected] |
void Skymap::set | ( | unsigned int | n_in, | |
Type | type_in | |||
) | [virtual] |
Definition at line 313 of file skymap.cpp.
References allocPixMemory(), freeMemory(), n(), and type().
unsigned int Skymap::size | ( | ) | const [inline] |
Definition at line 119 of file skymap.h.
References n_.
Referenced by SelectedPixelModel::asStats(), calcStats(), computePolar(), copy(), HealpixMap::degrade_map(), HealpixMap::readFITS(), SkyTexture::run(), PolarArgLineSet::set(), HealpixMap::upgrade_map(), writeFITS(), HealpixMap::writeFITSExtensionHeader(), and HealpixMap::writeFITSPrimaryHeader().
Type Skymap::type | ( | ) | const [inline] |
Definition at line 125 of file skymap.h.
References type_.
Referenced by allocPixMemory(), calcStats(), copy(), HealpixMap::degrade_map(), has_Nobs(), has_Polarization(), has_Temperature(), set(), HealpixMap::upgrade_map(), and writeFITS().
void Skymap::writeFITS | ( | QString | filename, | |
char * | tabname = NULL | |||
) | [virtual] |
virtual void Skymap::writeFITS | ( | std::string | filename, | |
char * | tabname = NULL | |||
) | [virtual] |
void Skymap::writeFITS | ( | const char * | filename, | |
char * | tabname = NULL | |||
) | [virtual] |
Definition at line 700 of file skymap.cpp.
References DEFFORM, DEFNUNIT, DEFTABLE, DEFTUNIT, MapException::FITSError, ICOLNAME, maxcols, MapException::Memory, NCOLNAME, PPix, QCOLNAME, size(), TnobsPix, TPnobsPix, type(), UCOLNAME, writeFITSExtensionHeader(), and writeFITSPrimaryHeader().
Referenced by writeFITS().
void Skymap::writeFITSExtensionHeader | ( | fitsfile * | fptr | ) | [protected, virtual] |
Reimplemented in HealpixMap.
Definition at line 297 of file skymap.cpp.
References writeHdrDate().
Referenced by writeFITS(), and HealpixMap::writeFITSExtensionHeader().
void Skymap::writeFITSPrimaryHeader | ( | fitsfile * | fptr | ) | [protected, virtual] |
Reimplemented in HealpixMap.
Definition at line 256 of file skymap.cpp.
References writeHdrDate().
Referenced by writeFITS(), and HealpixMap::writeFITSPrimaryHeader().
void Skymap::writeHdrDate | ( | fitsfile * | fptr | ) | [protected] |
Definition at line 208 of file skymap.cpp.
References MapException::FITSError.
Referenced by writeFITSExtensionHeader(), and writeFITSPrimaryHeader().
TPnobsPixel Skymap::avgpix [protected] |
Definition at line 61 of file skymap.h.
Referenced by calcStats(), copy(), getMeanNobs(), getMeanPang(), getMeanPmag(), getMeanQ(), getMeanT(), getMeanU(), and init().
BasePixel Skymap::basedummy [static, protected] |
TPnobsPixel Skymap::maxpix [protected] |
Definition at line 60 of file skymap.h.
Referenced by calcStats(), copy(), getMaxNobs(), getMaxPang(), getMaxPmag(), getMaxQ(), getMaxT(), getMaxU(), and init().
TPnobsPixel Skymap::minpix [protected] |
Definition at line 59 of file skymap.h.
Referenced by calcStats(), copy(), getMinNobs(), getMinPang(), getMinPmag(), getMinQ(), getMinT(), getMinU(), and init().
unsigned int Skymap::n_ [protected] |
Definition at line 53 of file skymap.h.
Referenced by allocPixMemory(), HealpixMap::degrade_map(), init(), n(), operator[](), size(), and HealpixMap::upgrade_map().
BasePixel&(Skymap::* Skymap::returnfct)(unsigned int) [protected] |
Referenced by allocPixMemory(), init(), and operator[]().
TPnobsPixel Skymap::stdpix [protected] |
Definition at line 62 of file skymap.h.
Referenced by calcStats(), copy(), getStdDevNobs(), getStdDevPang(), getStdDevPmag(), getStdDevQ(), getStdDevT(), getStdDevU(), and init().
TnobsPixel* Skymap::tnobspix [protected] |
Definition at line 56 of file skymap.h.
Referenced by allocPixMemory(), HealpixMap::degrade_map(), freeMemory(), init(), returnTnobspix(), and HealpixMap::upgrade_map().
TPixel* Skymap::tpix [protected] |
Definition at line 54 of file skymap.h.
Referenced by allocPixMemory(), HealpixMap::degrade_map(), freeMemory(), init(), returnTpix(), and HealpixMap::upgrade_map().
TPnobsPixel* Skymap::tpnobspix [protected] |
Definition at line 57 of file skymap.h.
Referenced by allocPixMemory(), HealpixMap::degrade_map(), freeMemory(), init(), returnTPnobspix(), and HealpixMap::upgrade_map().
TPPixel* Skymap::tppix [protected] |
Definition at line 55 of file skymap.h.
Referenced by allocPixMemory(), HealpixMap::degrade_map(), freeMemory(), init(), returnTPpix(), and HealpixMap::upgrade_map().
Type Skymap::type_ [protected] |