#!/bin/csh
#QSUB -q prem -lt 600 -lT 600 -lm 3Mw -lM 3Mw -eo
ja
batchname mkcdf_sut.$$
cd $TMPDIR
msread mkcdf.x /FOSTER/bin/mkcdf_sut
chmod u+x mkcdf.x
mkcdf.x << 'EOF'
 &input
 ;
 ; histvol: history volume (mss path) from which to make new
 ;   netCDF file (may be tigcm, tiegcm, or timesgcm volume)
 histvol = "/EMERY/TIE97/M96B33"
 mtimes =  19,20,20
 ;
 ; iden: species density conversion option
 ; iden=0 -> no conversion (most are mass mixing ratios)
 ; iden=1 -> convert to number densities (cm3)
 ; iden=2 -> convert to number density mixing ratios
 ; iden=3 -> convert to mass density (gm/cm3)
 iden =        1
 ;
 ; modelhts = 0 -> calculate heights using tn, mean mass, and variable gravity
 ; modelhts = 1 -> get heights from model history (model uses constant gravity)
 modelhts =        1
 ;
 ; ionvel = 1 -> get ExB ion drifts
 ; ionvel = 2 -> get ExB+neutral ion drifts
 ; (ionvel ignored if UI,VI,WI not selected)
 ionvel =        1
 ;
 ifields = 
 ;   TN     UN     VN     O2     OX    N4S    NOZ     CO
      1      1      1      0      0      0      0      0
 ;  CO2    H2O     H2    HOX     O+    CH4   O21D    NO2
      0      0      0      0      0      0      0      0
 ;   NO     O3     O1     OH    HO2      H    N2D     TI
      0      0      0      0      0      0      0      0
 ;   TE     NE     O2      W      Z
      0      0      0      0      1
 ;   POTEN  UI     VI     WI      N2
      0      0      0      0      0
 unixdir = "vishnu.hao:/d/foster/tigcmdat"
 &end
'EOF'
ja -st
