function tykw_mvalid_int,timej,d0pa ;+ ; NAME: ; TYKW_MVALID_INT ; ; PURPOSE: ; This function is to get the information if the data is valid or not ; from the observation interuption info ; ; CALLING SEQUENCE: ; mvalid=tykw_mvalid_int(timej,d0pa) ; ; INPUTS: ; timej: structure array with 'time internal format'. ; d0pa: structure of the 0p0a data of the specified frequency ; ; OPTIONAL INPUT KEYWORDS: ; ; OUTPUTS: ; mvalid: 1-dimensional byte array ; if 1 the data is valid ; ; 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 ; ;- ; unset flag for interruption period mvalid=bytarr(n_elements(timej))+1b for m=0,4 do begin t_st=long(d0pa.intt(m,0)) t_ed=long(d0pa.intt(m,1)) if (t_st lt t_ed) then begin n_st=norp_t2i(timej.time,t_st*10) n_ed=norp_t2i(timej.time,t_ed*10) mvalid(n_st:n_ed)=0 endif endfor return,mvalid end