21 else if( unit ==
"mJy" )
26 else if( unit ==
"MJy/sr" )
33 if( unit.substr(len,5) ==
"erg/s" )
38 else if( unit.substr(len,1) ==
"W" )
43 if( unit.substr(len,4) ==
"/cm2" )
48 else if( unit.substr(len,3) ==
"/m2" )
53 if( unit.substr(len,2) ==
"/A" )
58 if( unit.substr(len,3) ==
"/nm" )
63 else if( unit.substr(len,7) ==
"/micron" )
68 else if( unit.substr(len,3) ==
"/Hz" )
73 if( unit.substr(len,3) ==
"/sr" )
78 else if( unit.substr(len,8) ==
"/arcsec2" )
95 fprintf(
ioQQQ,
" insane units in Flux::InternalFluxUnit: \"%s\"\n", unit.c_str() );
118 else if( bits[
FU_W] )
124 else if( bits[
FU_M2] )
130 else if( bits[
FU_NM] )
132 else if( bits[
FU_MU] )
134 else if( bits[
FU_HZ] )
213 else if(
nMatch(
"MJY/SR",chCard) )
215 else if(
nMatch(
" MJY",chCard) )
219 if(
nMatch(
"ERG/S/",chCard) )
221 else if(
nMatch(
"W/SQ",chCard) )
226 if(
nMatch(
"/SQCM",chCard) )
228 else if(
nMatch(
"/SQM",chCard) )
235 else if(
nMatch(
"/NM",chCard) )
237 else if(
nMatch(
"/MICR",chCard) )
239 else if(
nMatch(
"/HZ",chCard) )
242 if(
nMatch(
"/SR",chCard) )
244 else if(
nMatch(
"/SQAS",chCard) )
249 fprintf(
ioQQQ,
" No valid flux unit was recognized on this line:\n %s\n\n", chCard );
250 fprintf(
ioQQQ,
" See Hazy for details.\n" );
long nMatch(const char *chKey, const char *chCard)
#define DEBUG_ENTRY(funcname)
fu_bits p_InternalFluxUnitNoCheck(const string &unit, size_t &len) const
void p_set(Energy e, double value, fu_bits bits)
double p_get(fu_bits bits) const
fu_bits p_InternalFluxUnit(const string &unit) const
bool p_ValidFluxUnit(fu_bits) const
string StandardFluxUnit(const char *chCard)
bool ValidFluxUnit(const string &unit)
UNUSED const double SQAS_SKY