Changeset 1726


Ignore:
Timestamp:
04/28/10 11:26:58 (14 years ago)
Author:
Malte Marquarding
Message:

fixed typos

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/opacity.py

    r1725 r1726  
    1919        """
    2020        This class implements opacity/atmospheric brightness temperature model
    21         equivalent to the model available in MIRIAD. The actual math is a 
     21        equivalent to the model available in MIRIAD. The actual math is a
    2222        convertion of the Fortran code written by Bob Sault for MIRIAD.
    23         It implements a simple model of the atmosphere and Liebe's model (1985) 
     23        It implements a simple model of the atmosphere and Liebe's model (1985)
    2424        of the complex refractive index of air.
    2525
    2626        The model of the atmosphere is one with an exponential fall-off in
    27         the water vapour content (scale height of 1540 m) and a temperature 
    28         lapse rate of 6.5 mK/m. Otherwise the atmosphere obeys the ideal gas 
     27        the water vapour content (scale height of 1540 m) and a temperature
     28        lapse rate of 6.5 mK/m. Otherwise the atmosphere obeys the ideal gas
    2929        equation and hydrostatic equilibrium.
    3030
    31         Note, the model includes atmospheric lines up to 800 GHz, but was not 
    32         rigorously tested above 100 GHz and for instruments located at 
     31        Note, the model includes atmospheric lines up to 800 GHz, but was not
     32        rigorously tested above 100 GHz and for instruments located at
    3333        a significant elevation. For high-elevation sites it may be necessary to
    3434        adjust scale height and lapse rate.
     
    3636        Parameters:
    3737            temperature:    air temperature at the observatory (K)
    38             pressure:       air pressure at the sea level if the observatory 
    39                             elevation is set to non-zero value (note, by 
     38            pressure:       air pressure at the sea level if the observatory
     39                            elevation is set to non-zero value (note, by
    4040                            default is set to 700m) or at the observatory
    41                             ground level if the elevation is set to 0. (The 
     41                            ground level if the elevation is set to 0. (The
    4242                            value is in Pascals or hPa, default 101325 Pa
    43             humidity:       air humidity at the observatory (fractional), 
     43            humidity:       air humidity at the observatory (fractional),
    4444                            default is 0.5
    4545            elevation:     observatory elevation about sea level (in meters)
    4646        """
    4747        self._atm = atmosphere(temp, self._to_pascals(pressure), humidity)
    48         self.set_observatory_elevation(elevation):
     48        self.set_observatory_elevation(elevation)
    4949
    5050    def get_opacities(self, freq, elevation=None):
     
    7979        Parameters:
    8080            temperature:    air temperature at the observatory (K)
    81             pressure:       air pressure at the sea level if the observatory 
    82                             elevation is set to non-zero value (note, by 
     81            pressure:       air pressure at the sea level if the observatory
     82                            elevation is set to non-zero value (note, by
    8383                            default is set to 700m) or at the observatory
    84                             ground level if the elevation is set to 0. (The 
     84                            ground level if the elevation is set to 0. (The
    8585                            value is in Pascals or hPa, default 101325 Pa
    86             humidity:       air humidity at the observatory (fractional), 
     86            humidity:       air humidity at the observatory (fractional),
    8787                            default is 0.5
    8888        """
     
    9090        self._atm.set_weather(temperature, pressure, humidity)
    9191
    92     def set_observatory_elevation(self, elevation:
     92    def set_observatory_elevation(self, elevation):
    9393        """Update the model using the given the observatory elevation
    9494        Parameters:
     
    211211                          r"$\tau_{model}=%0.2f$" % om.get_opacities(freq*1e9),
    212212                          color='grey')
    213            
     213
    214214            pylab.title("IF%d : %s" % (ino, freqstr))
    215215
Note: See TracChangeset for help on using the changeset viewer.