function tykw_gt_miv,rdata

;+
; NAME:
;       TYKW_GT_MIV
;
; PURPOSE:
;       This procedure is getting the Polarization information  from the
;       TYKW raw data
;
; CALLING SEQUENCE:
;       miv=tykw_gt_miv(rdata)
;
; INPUTS:
;       rdata: structure of the raw data
;
; OPTIONAL INPUT KEYWORDS:
;
; OUTPUTS:
;       miv: Polarization ID (0: I(R+L), 1: V(R-L))
;
;
; HISTORY:
;    4/6/79        ver.0.0 K. Shibasaki as fortran program
;    Sep. 09, 1994 ver.1.0 M. Nishio
;    Jan. 10, 1995 ver.2.0 M. Nishio
;    Apr. 13, 1995 ver.3.2 M. Nishio
;    Apr. 13, 1995 ver.4.0 M. Nishio
;    May. 23, 1995 ver.5.0 M. Nishio
;    May  01, 1995 ver.5.2 M. Nishio
;    Apr. 25, 1995 ver.5.0 M. Nishio
;
;    1999-01-12 ported to IDL by TY
;
;-

case rdata(0).channel of
  10 : miv=0 ; 0 GHz I
  11 : miv=1 ; 1 GHz V
  12 : miv=0 ; 0 GHz I
  13 : miv=1 ; 1 GHz V
  14 : miv=0 ; 0 GHz I
  15 : miv=1 ; 1 GHz V
  16 : miv=0 ; 0 GHz I
  17 : miv=1 ; 1 GHz V
endcase

return,miv
end
