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

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

?? attnc.m

?? 讀取Network Common Data Form (netCDF)數據
?? M
字號:
function [att_val, att_names] = attnc(file, var_name, att_name)%attnc returns selected attributes of the named netCDF file.%--------------------------------------------------------------------% DESCRIPTION:%%  [att_val, att_names] = attnc(file, var_name, att_name)%        INPUT%  file: the name of a netCDF file with or without the .cdf or .nc extent.%  var_name: a string containing the name of the variable whose%    attribute is required.  A global attribute may be specified by%    passing the string 'global'.%  att_name: a string containing the name of the attribute that is%    required.  If att_name is not specified then it is assumed that the%    user wants all of the attributes.%        OUTPUT%  att_val: If att_name is specified then its value is returned in att_val.%    If att_name is not specified then the values of all of the attributes%    are returned in the cell att_val.%%  att_names: If att_name is specified then the sane name is returned in%    att_names provided that the attribute is found (otherwise it is%    empty).  If att_name is not specified then the names of all of the%    attributes are returned in the cell att_names.%%  Note 1) If only 2 arguments are passed to attnc then all of the%    attributes and their names (for the specified variable) are returned.%  Note 2) If only 1 argument is passed to attnc then all of the global%    attributes and their names are returned.%  Note 3) If the file is in compressed form then the user will be%  given an option for automatic uncompression.%% 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.4 $%     Author   $Author: man133 $%     Date     $Date: 2004/12/22 05:49:48 $%     RCSfile  $RCSfile: attnc.m,v $% @(#)attnc.m   1.5   92/05/26% % Note that the netcdf functions are accessed by reference to the mex% function ncmex.%--------------------------------------------------------------------% Check the number of arguments.if ( nargin < 1 | nargin > 3 )   help attnc   returnend% Do some initialisation.blank = abs(' ');if nargin == 1  var_name = 'global';end% 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    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%According to the value of nargin either find and store all of the%global attributes of the cdf file or only one specific value.att_val = [];att_names = [];if strcmp(var_name, 'global')  %Collect information about the cdf file.  [ndims, nvars, ngatts, recdim, rcode] =  ncmex('ncinquire', cdfid);  if rcode == -1    error([ 'ncmex: ncinquire: rcode = ' int2str(rcode) ])  end  if nargin < 3    if ngatts > 0      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);	att_val{i+1} = values;	att_names{i+1} = attnam;      end    else      disp('   ---  There are no Global attributes  ---')    end  else    if ngatts > 0      found_it = 0;      for i = 0:ngatts-1	[attnam, rcode] = ncmex('attname', cdfid, 'global', i);	if strcmp(attnam, att_name)	  found_it = 1;	  [attype, attlen, rcode] = ncmex('ncattinq', cdfid, 'global', attnam);	  [values, rcode] = ncmex('ncattget', cdfid, 'global', attnam);	  att_val = values;	  att_names = attnam;	  break	end      end      if found_it == 0	warning([ 'the attribute ' att_name ' was not found'])      end    else      warning([ 'the attribute ' att_name ' was not found'])    end  endelse  varid = ncmex('VARID', cdfid, var_name);  if varid == -1    error([ 'ncmex: varid: ' var_name ' is not a variable' ])  end  [varname, datatype, ndims, dim, natts, rcode] = ...      ncmex('VARINQ', cdfid, varid);  if nargin < 3    if natts > 0      for i = 0:natts-1	[attnam, rcode] = ncmex('attname', cdfid, varid, i);	[attype, attlen, rcode] = ncmex('ncattinq', cdfid, varid, attnam);	[values, rcode] = ncmex('ncattget', cdfid, varid, attnam);	att_val{i+1} = values;	att_names{i+1} = attnam;      end    else      disp(['   ---   ' varid ' has no attributes  ---'])    end  else    if natts > 0      found_it = 0;      for i = 0:natts-1	[attnam, rcode] = ncmex('attname', cdfid, varid, i);	if strcmp(attnam, att_name)	  found_it = 1;	  [attype, attlen, rcode] = ncmex('ncattinq', cdfid, varid, attnam);	  [values, rcode] = ncmex('ncattget', cdfid, varid, attnam);	  att_val = values;	  att_names = attnam;	  break	end      end      if found_it == 0	warning([ 'the attribute ' att_name ' was not found'])      end    else      warning([ 'the attribute ' att_name ' was not found'])    end  endend% Close the netcdf file.[rcode] = ncmex('ncclose', cdfid);if rcode == -1  error(['** ERROR ** ncclose: rcode = ' num2str(rcode)])end

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
激情都市一区二区| 日韩高清国产一区在线| 欧美一三区三区四区免费在线看| 日韩二区在线观看| 国产精品美女一区二区在线观看| 色综合天天综合在线视频| 亚洲黄一区二区三区| 亚洲精品在线三区| 日本乱人伦aⅴ精品| 国产精品一区二区x88av| 一区二区三区欧美久久| 国产肉丝袜一区二区| 欧美日韩免费视频| 99久久夜色精品国产网站| 青青青爽久久午夜综合久久午夜| 中文字幕一区日韩精品欧美| 日韩欧美视频在线| 欧美自拍丝袜亚洲| 在线观看亚洲精品视频| 91亚洲国产成人精品一区二区三 | 日韩欧美一二区| 色综合天天性综合| 色婷婷av一区二区三区gif| 成人一区二区三区视频在线观看| 狂野欧美性猛交blacked| 亚洲成人动漫在线观看| 亚洲乱码日产精品bd| 亚洲三级电影网站| 成人免费一区二区三区视频| 国产日本欧美一区二区| 国产精品免费aⅴ片在线观看| 国产精品久久一卡二卡| 综合久久久久久| 亚洲免费毛片网站| 亚洲成a人v欧美综合天堂| 午夜视频在线观看一区二区三区| 亚洲一区二区欧美日韩 | 亚洲福利电影网| 奇米影视一区二区三区| 精品一区二区三区在线观看国产 | 国产一区二区三区在线观看免费 | 欧美一级夜夜爽| 精品av久久707| 国产精品污污网站在线观看 | 亚洲猫色日本管| 蜜臀av亚洲一区中文字幕| 国产精品18久久久久久久网站| 国产高清不卡一区| 91传媒视频在线播放| 久久久久久久综合| 亚洲gay无套男同| 成人在线视频首页| 这里只有精品免费| 中文字幕一区二区三区蜜月| 亚洲成人手机在线| 成人国产电影网| 日韩美女主播在线视频一区二区三区 | 亚洲国产视频在线| 成人国产精品免费观看动漫| 欧美日韩一级黄| 国产精品久久99| 国产乱子伦一区二区三区国色天香| 99久免费精品视频在线观看| 欧美肥妇free| 亚洲一区二区三区三| 99久久伊人网影院| 欧美激情艳妇裸体舞| 国产真实乱子伦精品视频| 欧美午夜免费电影| 亚洲一区二区五区| 色婷婷av一区二区三区软件| 国产精品视频在线看| 国产乱对白刺激视频不卡| 91精品免费在线观看| 亚洲综合偷拍欧美一区色| 99精品视频一区| 亚洲精品免费在线观看| 91美女在线视频| 亚洲精品久久久蜜桃| 欧美亚洲综合另类| 亚洲午夜电影网| 5月丁香婷婷综合| 免费亚洲电影在线| 久久精品免费在线观看| 粉嫩久久99精品久久久久久夜| 久久久www免费人成精品| 国产不卡视频一区二区三区| 国产精品网站导航| 欧美性三三影院| 日日夜夜精品视频免费| 精品国产乱码久久| 韩国欧美一区二区| 中文字幕中文字幕一区| 欧美在线|欧美| 日韩av不卡在线观看| 久久一留热品黄| 色国产综合视频| 蜜桃久久精品一区二区| 欧美国产一区二区在线观看| 在线观看av一区| 国产毛片精品国产一区二区三区| 欧美一区二区成人| 五月婷婷综合网| 中文字幕精品三区| 欧美亚洲一区二区三区四区| 国产黄色精品网站| 亚洲妇熟xx妇色黄| 国产精品不卡在线观看| 91精品国产入口| 色噜噜狠狠成人中文综合| 国产麻豆视频一区| 日韩精品电影一区亚洲| 国产精品蜜臀在线观看| 久久久国际精品| 精品捆绑美女sm三区| 51精品视频一区二区三区| 91女神在线视频| jizz一区二区| aaa欧美色吧激情视频| 丁香婷婷综合网| 亚洲va欧美va天堂v国产综合| 99久久精品免费| 日本在线不卡视频一二三区| 中文字幕在线播放不卡一区| 国产精品全国免费观看高清 | 精品一区二区免费| 国产综合久久久久影院| 蜜臀精品久久久久久蜜臀| 肉色丝袜一区二区| 麻豆精品久久久| 国产激情一区二区三区| 黄色资源网久久资源365| 日韩va亚洲va欧美va久久| 蜜桃视频在线观看一区二区| 国产精品白丝av| 国产一区二区h| 成人一道本在线| 国产91精品免费| 福利91精品一区二区三区| 91亚洲男人天堂| 337p亚洲精品色噜噜噜| 日韩欧美黄色影院| 国产香蕉久久精品综合网| 国产精品久久毛片| 日本美女一区二区| 久久精品国产99| 不卡欧美aaaaa| 在线亚洲一区观看| 精品欧美乱码久久久久久| 国产女主播视频一区二区| 一二三四社区欧美黄| 麻豆精品久久精品色综合| 波多野结衣在线aⅴ中文字幕不卡| 欧美日韩另类一区| 国产精品美女www爽爽爽| 日韩电影在线观看网站| 国产精品亚洲第一| 欧美一区二区三区免费| 亚洲一区二区三区四区在线| 成人高清av在线| 精品国内二区三区| 日日噜噜夜夜狠狠视频欧美人| av在线免费不卡| 日韩视频一区在线观看| 亚洲视频免费在线| 91在线小视频| 亚洲国产高清不卡| 国产在线麻豆精品观看| 欧美高清视频在线高清观看mv色露露十八 | 亚洲免费在线播放| 波多野结衣中文字幕一区 | 一本久道中文字幕精品亚洲嫩| 精品国产亚洲在线| 蜜臀91精品一区二区三区| 日韩午夜av电影| 紧缚奴在线一区二区三区| 日韩免费福利电影在线观看| 日韩成人av影视| 精品处破学生在线二十三| 国产一区二区精品久久91| 精品对白一区国产伦| 国产麻豆视频一区二区| 国产精品―色哟哟| 一本一道久久a久久精品| 国产精品国产精品国产专区不蜜 | 日韩精品一区二区三区蜜臀 | 一区二区三区在线看| 欧美在线视频日韩| 日本美女视频一区二区| 欧美α欧美αv大片| 粉嫩aⅴ一区二区三区四区 | 国产精品国产三级国产aⅴ入口 | 久久久精品日韩欧美| 成人h动漫精品一区二| 亚洲精品中文字幕在线观看| 4hu四虎永久在线影院成人| 国产毛片精品视频| 亚洲欧美一区二区三区久本道91| 69久久99精品久久久久婷婷| www.av精品|