TwiceAsNice  2019-02-18
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
Ltcs::Iif2fitsKw Class Reference

A single item to be requested by the Ice interface to the IIF. More...

#include <Iif2fitsKw.h>

Collaboration diagram for Ltcs::Iif2fitsKw:
Collaboration graph

Public Member Functions

 Iif2fitsKw (const string dd, const string typ, const string key, const string un="", const string comm="", short bits=0)
 Constructor given an array of windows. More...
 
string toString () const
 Represent the keyword and value as a FITS card. More...
 
string toKVPairString () const
 Represent the keyword and value side by side. More...
 
Basda::VinoFitsCard getFits () const
 Convert into a FTIS card of basda-vino. More...
 
 Iif2fitsKw (const string dd, const string typ, const string key, const string un="", const string comm="", short bits=0)
 
string toString () const
 
string toKVPairString () const
 
Basda::VinoFitsCard getFits () const
 

Public Attributes

string ddName
 Name as known in the DD. More...
 
string unit
 physical unit More...
 
string type
 FITS type. More...
 
string comment
 FITS comment. More...
 
string keyw
 FITS keyword in LN. More...
 
string val
 FITS keyword value in LN. More...
 
time_t updt
 Time stamp of most recent update of the keyword. More...
 
short flags
 Type of usage flags. More...
 

Protected Member Functions

string tstamp () const
 Convert the time stamp to an ISO string. More...
 
string tstamp () const
 

Detailed Description

A single item to be requested by the Ice interface to the IIF.


Since
2016-10-11
Author
Richard J. Mathar

Constructor & Destructor Documentation

◆ Iif2fitsKw() [1/2]

Ltcs::Iif2fitsKw::Iif2fitsKw ( const string  dd,
const string  typ,
const string  key,
const string  un = "",
const string  comm = "",
short  bits = 0 
)

Constructor given an array of windows.


Parameters
ddIIF dictionary name
typFITS type
keyFITS keyword
unPhysical unit for use in the FITS comment.
commThe human readable FITS comment.
bitsUse flags. LSB indicates with 0 that this is a standard FITS card and with 1 that this is a FITS COMMENT.
Since
2016-10-11
2016-11-03 Additional arguments bits
2018-12-03 Convert RA/DECOFFS to degrees
Author
Richard J. Mathar

◆ Iif2fitsKw() [2/2]

Ltcs::Iif2fitsKw::Iif2fitsKw ( const string  dd,
const string  typ,
const string  key,
const string  un = "",
const string  comm = "",
short  bits = 0 
)

Member Function Documentation

◆ getFits() [1/2]

Basda::VinoFitsCard Ltcs::Iif2fitsKw::getFits ( ) const

Convert into a FTIS card of basda-vino.


Returns
Keyword name, value, unit and comment converted to a VinoFitsCard. If the age of the datum is more than LN_LTCS_AGE_FITSKW in the past, the card is a comment card.
Since
2017-05-22

◆ getFits() [2/2]

Basda::VinoFitsCard Ltcs::Iif2fitsKw::getFits ( ) const

◆ toKVPairString() [1/2]

string Ltcs::Iif2fitsKw::toKVPairString ( ) const

Represent the keyword and value side by side.


Returns
A string which is very similar to a data dictionary dump; keyword and value separted by a blank.
Since
2017-05-22
Author
Richard J. Mathar

◆ toKVPairString() [2/2]

string Ltcs::Iif2fitsKw::toKVPairString ( ) const

◆ toString() [1/2]

string Ltcs::Iif2fitsKw::toString ( ) const

◆ toString() [2/2]

string Ltcs::Iif2fitsKw::toString ( ) const

Represent the keyword and value as a FITS card.


Since
2016-10-12
Author
Richard J. Mathar

◆ tstamp() [1/2]

string Ltcs::Iif2fitsKw::tstamp ( ) const
protected

◆ tstamp() [2/2]

string Ltcs::Iif2fitsKw::tstamp ( ) const
protected

Convert the time stamp to an ISO string.


Returns
A string of the format YYYY-MM-DD HH:MM::SS, UTC.

Member Data Documentation

◆ comment

string Ltcs::Iif2fitsKw::comment

FITS comment.

◆ ddName

string Ltcs::Iif2fitsKw::ddName

Name as known in the DD.

◆ flags

short Ltcs::Iif2fitsKw::flags

Type of usage flags.

LSW=1 set means the keyword becomes a FITS COMMENT, not a standard FITS header card.

◆ keyw

string Ltcs::Iif2fitsKw::keyw

FITS keyword in LN.

◆ type

string Ltcs::Iif2fitsKw::type

FITS type.

◆ unit

string Ltcs::Iif2fitsKw::unit

physical unit

◆ updt

time_t Ltcs::Iif2fitsKw::updt

Time stamp of most recent update of the keyword.

◆ val

string Ltcs::Iif2fitsKw::val

FITS keyword value in LN.


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