fileid = tekal('open', 'Str7001r.sscprof.tek');   
           
            for i=1:length(fileid.Field)
            fileid.Field(1,i).Data(fileid.Field(1,i).Data == 99999.9) = nan;
            ssc_mgL(i) = nanmean(fileid.Field(1,i).Data(:,2));
            end
            
             for i=1:length(fileid.Field)
                 if i == 1;
                 datetime = fileid.Field(1,i).Comments{13,1};
                 [tok{1},datetime]  = strtok(datetime);
                 [tok{2},datetime]  = strtok(datetime);
                 [tok{3},datetime]  = strtok(datetime);
                 [tok{4},datetime]  = strtok(datetime);
                 [tok{5},datetime]  = strtok(datetime);
                 [tok{6},datetime]  = strtok(datetime);
                 datenum0        = datenum([tok{4} ' ' tok{5}],'yyyymmdd HHMMSS');
                 time(i) = datenum0;
                 else
                 datetime = fileid.Field(1,i).Comments{3,1}; 
                 [tok{1},datetime]  = strtok(datetime);
                 [tok{2},datetime]  = strtok(datetime);
                 [tok{3},datetime]  = strtok(datetime);
                 [tok{4},datetime]  = strtok(datetime);
                 [tok{5},datetime]  = strtok(datetime);
                 [tok{6},datetime]  = strtok(datetime);
                 datenum0        = datenum([tok{4} ' ' tok{5}],'yyyymmdd HHMMSS');
                 time(i) = datenum0;
                 end 
             end
            
            ssc_gL = ssc_mgL/1000;
             
             save Str7001_ssc
            
             
            
          
     
     
