#!/bin/csh

# mchw  10 sep 2003

echo Calculate SMA sensitivity

# typical winter conditions expected at SMA site

obstau altitude=4 freq=100 mmh2o=1
obstau altitude=4 freq=230 mmh2o=1
obstau altitude=4 freq=345 mmh2o=1

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

calc 'sqrt((1*15**2+9*6.1**2)/10)'

# Use aperture efficiency of 78% assumed for SMA antennas

# Continuum sensitivity
obsrms tsys=98  antdiam=6.1,.78  bw=2000 nants=8 freq=100
obsrms tsys=202 antdiam=6.1,.78  bw=2000 nants=8 freq=230
obsrms tsys=300 antdiam=6.1,.7  bw=2000 nants=8 freq=345

# Spectral Line Sensitivity (1 km/s)
obsrms tsys=98  antdiam=6.1,.78  deltav=1 nants=8 freq=100
obsrms tsys=202 antdiam=6.1,.78  deltav=1 nants=8 freq=230
obsrms tsys=300 antdiam=6.1,.7  deltav=1 nants=8 freq=345

# + JCMT + 1 extra 6.1 !!

#Continuum sensitivity
obsrms tsys=98  antdiam=7.48,.78  bw=2000 nants=10 freq=100
obsrms tsys=202 antdiam=7.48,.78  bw=2000 nants=10 freq=230
obsrms tsys=300 antdiam=7.48,.7  bw=2000 nants=10 freq=345
 
# Spectral Line Sensitivity (1 km/s)
obsrms tsys=98  antdiam=7.48,.78  deltav=1 nants=10 freq=100
obsrms tsys=202 antdiam=7.48,.78  deltav=1 nants=10 freq=230
obsrms tsys=300 antdiam=7.48,.7  deltav=1 nants=10 freq=345

