亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? inqnc.m

?? 讀取Network Common Data Form (netCDF)數據
?? M
字號:
function inqnc(file)% INQNC returns information about a netcdf file%--------------------------------------------------------------------%     Copyright (C) J. V. Mansbridge, CSIRO, january 24 1992%     Revision $Revision: 1.6 $%%  function inqnc(file)%% DESCRIPTION:%  inqnc('file') is an interactive function that returns information%  about the NetCDF file 'file.cdf' or 'file.nc'.  If the file is in%  compressed form then the user will be given an option for automatic%  uncompression.% % INPUT:%  file is the name of a netCDF file with or without the .cdf or .nc extent.%% OUTPUT:%  information is written to the user's terminal.%% CALLER:   general purpose% CALLEE:   check_nc.m, ncmex.mex, netcdf toolbox%% AUTHOR:   J. V. Mansbridge, CSIRO%---------------------------------------------------------------------%     Copyright (C), J.V. Mansbridge, %     Commonwealth Scientific and Industrial Research Organisation%     Revision $Revision: 1.6 $%     Author   $Author: man133 $%     Date     $Date: 2004/11/16 04:50:30 $%     RCSfile  $RCSfile: inqnc.m,v $% @(#)inqnc.m   1.5   92/05/26% % Note that the netcdf functions are accessed by reference to the mex% function ncmex which in turn uses the netcdf toolbox.%--------------------------------------------------------------------% In November 1998 some code was added to deal better with byte type data. Note% that any values greater than 127 will have 256 subtracted from them. This is% because on some machines (an SGI running irix6.2 is an example) values are% returned in the range 0 to 255. Note that in the fix the values less than 128% are unaltered and so we do not have to know whether the particular problem has% occurred or not; for machines where there is no problem no values will be% altered. This is applied to byte type attributes (like _FillValue) as well as% the variable values.% Check the number of arguments.if nargin < 1   help inqnc   returnend% Do some initialisation.blank = abs(' ');% I make ncmex calls to find the integers that specify the attribute% typesnc_byte = ncmex('parameter', 'nc_byte'); %1nc_char = ncmex('parameter', 'nc_char'); %2nc_short = ncmex('parameter', 'nc_short'); %3nc_long = ncmex('parameter', 'nc_long'); %4nc_float = ncmex('parameter', 'nc_float'); %5nc_double = ncmex('parameter', 'nc_double'); %6% Check that the file is accessible.  If it is then its full name will% be stored in the variable cdf.  The file may have the extent .cdf or% .nc and be in the current directory or the common data set (whose% path can be found by a call to pos_cds.m.  If a compressed form% of the file is in the current directory then the user is prompted to% uncompress it.  If, after all this, the netcdf file is not accessible% then the m file is exited with an error message.cdf_list = { '' '.nc' '.cdf'};ilim = length(cdf_list);for i = 1:ilim   cdf = [ file cdf_list{i} ];  err = check_nc(cdf);  if (err == 0) | (err == 4)    break;  elseif err == 1    if i == ilim      error([ file ' could not be found' ])    end  elseif err == 2    path_name = pos_cds;    cdf = [ path_name cdf ];    break;  elseif err == 3    err1 = uncmp_nc(cdf);    if err1 == 0      break;    elseif err1 == 1      disp([ 'exiting because you chose not to uncompress ' cdf ])      return;    elseif err1 == 2      error([ 'exiting because ' cdf ' could not be uncompressed' ])    end  endend% Open the netcdf file.  [cdfid, rcode] = ncmex('ncopen', cdf, 'nowrite');% don't print out netcdf warning messagesncmex('setopts',0);if rcode == -1  error([ 'ncmex: ncopen: rcode = ' int2str(rcode) ])end% Collect information about the cdf file.[ndims, nvars, ngatts, recdim, rcode] =  ncmex('ncinquire', cdfid);if rcode == -1   error([ 'ncmex: ncinquire: rcode = ' int2str(rcode) ])end% Find and print out the global attributes of the cdf file.if ngatts > 0   disp('                ---  Global attributes  ---')   for i = 0:ngatts-1     [attnam, rcode] = ncmex('attname', cdfid, 'global', i);     [attype, attlen, rcode] = ncmex('ncattinq', cdfid, 'global', attnam);     [values, rcode] = ncmex('ncattget', cdfid, 'global', attnam);     %keyboard        % Write each attribute into the string s.  Note that if     % the attribute is already a string then we replace any     % control characters with a # to avoid messing up the     % display - null characters make a major mess. There may     % also be a correction for faulty handling of byte type.	             if attype == nc_byte	ff = find(values > 127);	if ~isempty(ff)	  values(ff) = values(ff) - 256;	end	s = int2str(values);      elseif attype == nc_char	s = abs(values);	fff = find(s < 32);	s(fff) = 35*ones(size(fff));	s = setstr(s);      elseif attype == nc_short | attype == nc_long         s = [];         for i = 1:length(values)            s = [ s int2str(values(i)) '  ' ];         end      elseif attype == nc_float | attype == nc_double         s = [];         for i = 1:length(values)            s = [ s num2str(values(i)) '  ' ];         end      end      s = [ attnam ': ' s ];      disp(s)   endelse   disp('   ---  There are no Global attributes  ---')end% Get and print out information about the dimensions.disp(' ')s = [ 'The ' int2str(ndims) ' dimensions are' ];for i = 0:ndims-1  [dimnam, dimsiz, rcode] = ncmex('ncdiminq', cdfid, i);  s = [ s '  ' int2str(i+1) ') ' dimnam ' = ' int2str(dimsiz) ];ends = [ s '.'];disp(s)if isempty(recdim)  disp('It is not possible to access an unlimited dimension')else  if recdim == -1    disp('None of the dimensions is unlimited')  else    [dimnam, dimsiz, rcode] = ncmex('ncdiminq', cdfid, recdim);    s = [ dimnam ' is unlimited in length'];    disp(s)  endend% Print out the names of all of the variables so that the user may% choose to 1) finish the inquiry, 2) print out information about all% variables or 3) print out information about only one of them.infinite = 1;while infinite   k = -2;   while k <-1 | k > nvars      disp(' ')      s = [ '----- Get further information about the following variables -----'];      disp(s)      disp(' ')      s = [ '  -1) None of them (no further information)' ];      disp(s)      s = [ '   0) All of the variables' ];      disp(s)      for i = 0:3:nvars-1         stri = int2str(i+1);         if length(stri) == 1            stri = [ ' ' stri];         end         [varnam, vartyp, nvdims, vdims, nvatts, rcode] = ...         ncmex('ncvarinq', cdfid, i);         s = [ '  ' stri ') ' varnam ];         addit = 26 - length(s);         for j =1:addit            s = [ s ' '];         end            if i < nvars-1            stri = int2str(i+2);            if length(stri) == 1               stri = [ ' ' stri];            end            [varnam, vartyp, nvdims, vdims, nvatts, rcode] = ...            ncmex('ncvarinq', cdfid, i+1);            s = [ s '  ' stri ') ' varnam ];            addit = 52 - length(s);            for j =1:addit               s = [ s ' '];            end         end             if i < nvars - 2            stri = int2str(i+3);            if length(stri) == 1               stri = [ ' ' stri];            end            [varnam, vartyp, nvdims, vdims, nvatts, rcode] = ...            ncmex('ncvarinq', cdfid, i+2);            s = [ s '  ' stri ') ' varnam ];         end          disp(s)      end      disp(' ')      s = [ 'Select a menu number: '];      k = input(s);   end   % Get and print out information about as many variables as necessary.% If k == - 1 close the netcdf file and return.      if k == -1      [rcode] = ncmex('ncclose', cdfid);      if rcode == -1	error(['** ERROR ** ncclose: rcode = ' num2str(rcode)])      end      return   elseif k == 0      klow = 0;      kup = nvars - 1;   else      klow = k - 1;      kup = k - 1;   end      if nvars > 0      for k = klow:kup         [varnam, vartyp, nvdims, vdims, nvatts, rcode] = ...                  ncmex('ncvarinq', cdfid, k);    % Write out a message containing the dimensions of the variable.         s = [ '   ---  Information about ' varnam '(' ];         for j = 1:nvdims	   [dimnam, dimsiz, rcode] = ncmex('ncdiminq', cdfid, vdims(j));	   s = [ s dimnam ' ' ];         end         s = [ s ')  ---' ];         disp(' ')         disp(s)   % Find and print out the attributes of the variable.            if nvatts > 0            disp(' ')            s = [ '   ---  ' varnam ' attributes  ---' ];            left_side = 1;	    for j = 0:nvatts-1	       [attnam, rcode] = ncmex('ncattname', cdfid, k, j); 	       [attype, attlen, rcode] = ncmex('ncattinq', cdfid, ...		        k, attnam); 	       [values, rcode] = ncmex('ncattget', cdfid, k, attnam);	       % Write each attribute into the string s.  Note that if	       % the attribute is already a string then we replace any	       % control characters with a # to avoid messing up the	       % display - null characters make a major mess. There may	       % also be a correction for faulty handling of byte type.               if attype == nc_byte		 ff = find(values > 127);		 if ~isempty(ff)		   values(ff) = values(ff) - 256;		 end		 s = int2str(values);               elseif attype == nc_char                  s = abs(values);		  fff = find(s < 32);		  s(fff) = 35*ones(size(fff));		  s = setstr(s);               elseif attype == nc_short | attype == nc_long                  s = [];                  for ii = 1:length(values)                     s = [ s int2str(values(ii)) '  ' ];                  end               elseif attype == nc_float | attype == nc_double                  s = [];                  for ii = 1:length(values)                     s = [ s num2str(values(ii)) '  ' ];                   end		end   % Go through convolutions to try to fit information about two attributes onto% one line.                  le_att = length(attnam);               le_s = length(s);               le_sum = le_att + le_s;               st = [ '*' attnam ': ' s ];               if left_side == 1                  if le_sum > 37                     disp(st)                  else                     n_blanks = 37 - le_sum;                     if n_blanks > 1                        for ii = 1:n_blanks                           st = [ st ' ' ];                        end                     end                     temp = st;                     left_side = 0;                  end               else                  if le_sum > 37                     disp(temp)                  else                     st = [ temp st ];                  end                  disp(st)                  left_side = 1;               end            end            if left_side == 0               disp(temp)            end         else            s = [ '*  ' varnam ' has no attributes' ];            disp(s)         end      end   else      disp(' ')      disp('   ---  There are no variables  ---')   endend

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
麻豆高清免费国产一区| 在线看国产一区二区| 91麻豆产精品久久久久久| 制服丝袜av成人在线看| 欧美国产激情一区二区三区蜜月| 亚洲欧洲精品一区二区精品久久久| 美女诱惑一区二区| 欧美中文字幕久久| 中文字幕一区二区日韩精品绯色| 久久精品国产澳门| 在线电影院国产精品| 亚洲动漫第一页| 色婷婷激情综合| 国产精品看片你懂得| 国产精品91一区二区| 91精品国产一区二区| 一区二区在线观看免费视频播放| 国产成人在线视频免费播放| 日韩精品一区二区三区四区| 日韩不卡一区二区三区| 欧美日韩国产不卡| 亚洲美女在线一区| 亚洲大片一区二区三区| 国产高清在线精品| 久久―日本道色综合久久| 麻豆久久久久久久| 日韩午夜精品视频| 日本午夜精品一区二区三区电影 | 亚洲国产精品黑人久久久| 久久9热精品视频| 欧美一区二区三级| 天堂在线一区二区| 欧美日韩一区二区三区在线看| 亚洲人成网站在线| 一本到高清视频免费精品| 亚洲图片你懂的| 色综合久久66| 亚洲成在线观看| 欧美一级在线免费| 国产一区二区在线观看免费| 久久久综合激的五月天| 国产成人精品免费一区二区| 中文字幕免费一区| 色视频一区二区| 亚洲18女电影在线观看| 4438x亚洲最大成人网| 蜜臀精品一区二区三区在线观看| 日韩精品在线一区二区| 国产精品综合av一区二区国产馆| 国产日韩欧美精品综合| 91片黄在线观看| 亚洲影院免费观看| 欧美一区二区三区在线视频 | 久久蜜臀精品av| 成人va在线观看| 亚洲欧美日韩国产成人精品影院| 在线免费不卡视频| 久久丁香综合五月国产三级网站| 久久久国产精华| 一本到三区不卡视频| 五月婷婷久久丁香| 久久久精品日韩欧美| 91毛片在线观看| 欧美aaaaaa午夜精品| 国产精品天美传媒| 欧美美女bb生活片| 国产福利精品导航| 性做久久久久久免费观看欧美| 久久免费午夜影院| 在线视频观看一区| 韩日av一区二区| 亚洲一区二区三区影院| 久久婷婷综合激情| 日本大香伊一区二区三区| 久久99精品久久久久久| 亚洲人被黑人高潮完整版| 91麻豆精品国产无毒不卡在线观看| 国产精选一区二区三区| 爽好久久久欧美精品| 欧美国产激情二区三区| 欧美人狂配大交3d怪物一区| eeuss鲁一区二区三区| 美洲天堂一区二卡三卡四卡视频| 国产精品进线69影院| 日韩欧美123| 欧美日韩第一区日日骚| 99re热视频这里只精品| 国产河南妇女毛片精品久久久 | av亚洲精华国产精华精| 久久精品一区二区三区不卡牛牛| 久久精品国产免费| 国产成人精品午夜视频免费 | 一区二区三区日韩在线观看| 日韩毛片高清在线播放| 亚洲天堂2014| 亚洲午夜电影在线观看| 日韩av高清在线观看| 韩国欧美国产一区| 成人国产精品免费观看| 在线观看91视频| 欧美一级日韩一级| 国产午夜精品一区二区三区嫩草 | 中文欧美字幕免费| 中文字幕日本乱码精品影院| 亚洲电影激情视频网站| 久久国产欧美日韩精品| av资源网一区| 日韩三级中文字幕| 日本免费在线视频不卡一不卡二| 青青草国产成人99久久| 韩国成人福利片在线播放| 国产一区二区三区久久久 | 日韩亚洲欧美综合| 国产亚洲欧美日韩日本| 一区二区三区成人在线视频| 久久99精品国产91久久来源| 91最新地址在线播放| 欧美一区二区观看视频| 国产精品乱人伦一区二区| 午夜电影网亚洲视频| 国产成人在线看| 91精品国产欧美一区二区18| 国产精品色眯眯| 久久99热99| 在线精品国精品国产尤物884a| 精品国产麻豆免费人成网站| 亚洲精品国产a| 国产91精品一区二区麻豆网站| 欧美理论电影在线| 中文字幕乱码亚洲精品一区| 青娱乐精品视频| 91国模大尺度私拍在线视频| 国产婷婷精品av在线| 五月激情六月综合| 91热门视频在线观看| 国产欧美日本一区视频| 日本不卡免费在线视频| 在线中文字幕一区二区| 亚洲专区一二三| 不卡视频在线看| 欧美成人一区二区三区片免费| 一区二区三区自拍| 国产剧情一区在线| 日韩一区二区三免费高清| 亚洲一区二区三区免费视频| av在线这里只有精品| 久久精品在这里| 激情综合色播五月| 91精品国产欧美一区二区 | 日韩vs国产vs欧美| 欧美在线一区二区三区| 最新国产精品久久精品| 国产精品资源在线观看| 精品国产乱码久久久久久蜜臀| 婷婷久久综合九色综合绿巨人 | 日韩av午夜在线观看| 欧美日韩中文字幕一区| 亚洲综合区在线| 在线区一区二视频| 亚洲国产综合人成综合网站| 色屁屁一区二区| 一区二区三区四区在线免费观看| 99re成人精品视频| 亚洲欧美日韩中文播放| 91国产精品成人| 亚洲成人av电影在线| 欧美日韩在线播放三区| 香蕉av福利精品导航| 欧美精品久久久久久久久老牛影院 | 亚洲精品视频免费看| av在线播放一区二区三区| 国产精品国产三级国产aⅴ原创 | 一级做a爱片久久| 欧美三级日韩三级国产三级| 日韩中文字幕一区二区三区| 日韩午夜激情电影| 韩国一区二区三区| 中文字幕精品—区二区四季| 99国产精品国产精品久久| 亚洲乱码精品一二三四区日韩在线| 色综合欧美在线| 日韩精品每日更新| 精品久久免费看| 成人精品小蝌蚪| 亚洲图片欧美色图| 日韩欧美黄色影院| 国产成人免费av在线| 中文字幕中文字幕在线一区| 91黄色小视频| 亚洲欧美一区二区久久| 91在线播放网址| 亚洲大片精品永久免费| 欧美电影免费观看完整版| 国产精品888| 一区av在线播放| 精品少妇一区二区三区视频免付费 | 欧美日韩激情一区| 久久99国内精品| 亚洲视频 欧洲视频| 欧美日韩精品一区二区三区|