#!/bin/csh
#---------------------------------------------------------------------------------------
# NAME: ssmi_tb_tigr.csh
#
# PURPOSE:  Uses RTTOVS 9.1 to create HIRS brightness temperature simulations for all
#           NOAA satellites and multiple angles
#
# EXTERNALS:  tigr_rttov.ksh
#
# CREATION HISTORY: Darren Jackson CIRES/ESRL January 2008
#---------------------------------------------------------------------------------------

set platform = "dmsp"
set inst     = "ssmi"
set satid    = (14)
set zenangle = (53.1)
set azangle  = 0.
set water_type = 1  # (0 = fresh, 1 = ocean)
set srf_type = 1    # (0 = land, 1 = sea, 2 = ice/snow)

foreach sat ($satid)
   foreach zangle ($zenangle)
      @ tigr_prof = 1
#      while ($tigr_prof <= 2311)
      while ($tigr_prof <= 1)
         tigr_rttov.ksh $platform $inst $sat $zangle $azangle $srf_type $water_type $tigr_prof
         @ tigr_prof ++
      end
   end
end
