casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables
Classes | Functions | Variables
asap.opacity Namespace Reference

Classes

class  model

Functions

def _import_data
def skydip

Variables

list __all__

Function Documentation

def asap.opacity._import_data (   data) [private]

Definition at line 102 of file opacity.py.

References jupiter6cm_demo.merge, and asap.opacity.skydip().

Referenced by asap.opacity.skydip().

def asap.opacity.skydip (   data,
  averagepol = True,
  tsky = 300.,
  plot = False,
  temperature = 288,
  pressure = 101325.,
  humidity = 0.5 
)
Determine the opacity from a set of 'skydip' obervations.
This can be any set of observations over a range of elevations,
but will ususally be a dedicated (set of) scan(s).
Return a list of 'n' opacities for 'n' IFs. In case of averagepol
being 'False' a list of 'n*m' elements where 'm' is the number of
polarisations, e.g.
nIF = 3, nPol = 2 => [if0pol0, if0pol1, if1pol0, if1pol1, if2pol0, if2pol1]

The opacity is determined by fitting a first order polynomial to:


    Tsys(airmass) = p0 + airmass*p1

where

    airmass = 1/sin(elevation)

    tau =  p1/Tsky

Parameters:
    data:       a list of file names or scantables or a single
                file name or scantable.
    averagepol: Return the average of the opacities for the polarisations
                This might be useful to set to 'False' if one polarisation
                is corrupted (Mopra). If set to 'False', an opacity value
                per polarisation is returned.
    tsky:       The sky temperature (default 300.0K). This might
                be read from the data in the future.
    plot:       Plot each fit (airmass vs. Tsys). Default is 'False'

Definition at line 122 of file opacity.py.

References asap.opacity._import_data(), and irc_cs_task_regression.sum.

Referenced by asap.opacity._import_data().


Variable Documentation

Definition at line 1 of file opacity.py.