#!/bin/csh

# mchw  10 sep 2003

echo Calculate CARMA sensitivity

# typical winter conditions expected at CARMA site

obstau altitude=2.4 freq=100 mmh2o=4
obstau altitude=2.4 freq=230 mmh2o=4
obstau altitude=2.4 freq=100 mmh2o=4 airmass=2
obstau altitude=2.4 freq=230 mmh2o=4 airmass=2

# Get average diameter from total collecting area of 15 antenna CARMA array

calc 'sqrt((6*10.4**2+9*6.1**2)/15)'

# Use aperture efficiency of 78% calculated for BIMA antennas
# Is close to measured values in use at Hat creek.

# Continuum sensitivity
obsrms tsys=126 antdiam=8.1,.78 bw=4000 nants=15
obsrms tsys=367 antdiam=8.1,.78 bw=4000 nants=15 freq=230
obsrms tsys=1110 antdiam=8.1,.70 bw=4000 nants=15 freq=345

# Spectral Line Sensitivity (1 km/s)
obsrms tsys=126 antdiam=8.1,.78 deltav=1 nants=15
obsrms tsys=367 antdiam=8.1,.78 deltav=1 nants=15 freq=230
obsrms tsys=1110 antdiam=8.1,.70 deltav=1 nants=15 freq=345


# Get average diameter from total collecting area of 23 antenna CARMA array

calc 'sqrt((6*10.4**2+9*6.1**2+8*3.5**2)/23)'
# = 6.858349

# Continuum sensitivity
obsrms tsys=126 antdiam=6.858,.78 bw=4000 nants=23
obsrms tsys=367 antdiam=6.858,.78 bw=4000 nants=23 freq=230
obsrms tsys=1110 antdiam=6.858,.70 bw=4000 nants=23 freq=345

# Spectral Line Sensitivity (1 km/s)
obsrms tsys=126 antdiam=6.858,.78 deltav=1 nants=23
obsrms tsys=367 antdiam=6.858,.78 deltav=1 nants=23 freq=230
obsrms tsys=1110 antdiam=6.858,.70 deltav=1 nants=23 freq=345


