Ignore:
Timestamp:
03/17/10 18:01:27 (14 years ago)
Author:
Max Voronkov
Message:

added method to calculate opacity including refraction effects + methods to work on a vector of frequencies

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/STAtmosphere.h

    r1712 r1713  
    119119  double zenithOpacity(double freq) const;
    120120
     121  /**
     122   * Calculate zenith opacity for the range of frequencies. Same as zenithOpacity, but
     123   * for a vector of frequencies.
     124   * @param[in] freqs vector of frequencies in Hz
     125   * @return vector of zenith opacities, one value per frequency (nepers, i.e. dimensionless)
     126   **/
     127  std::vector<double> zenithOpacities(const std::vector<double> &freqs) const;
     128 
     129  /**
     130   * Calculate opacity at the given frequency and elevation. This is a simplified
     131   * version of the routine implemented in MIRIAD, which calculates just the opacity and
     132   * nothing else. In contract to zenithOpacity, this method takes into account refraction
     133   * and is more accurate than if one assumes 1/sin(el) factor.
     134   * @param[in] freq frequency of interest in Hz
     135   * @param[in] el elevation in radians
     136   * @return zenith opacity (nepers, i.e. dimensionless)
     137   **/
     138   double opacity(double freq, double el) const;
     139
     140  /**
     141   * Calculate opacities for the range of frequencies at the given elevation. Same as
     142   * opacity, but for a vector of frequencies.
     143   * @param[in] freqs vector of frequencies in Hz
     144   * @param[in] el elevation in radians
     145   * @return vector of opacities, one value per frequency (nepers, i.e. dimensionless)
     146   **/
     147  std::vector<double> opacities(const std::vector<double> &freqs, double el) const;
     148         
    121149protected:
    122150  /**
Note: See TracChangeset for help on using the changeset viewer.