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

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

?? parsetnc.m

?? 讀取Network Common Data Form (netCDF)數據
?? M
字號:
function [gregorian_base, rescale_serial_rel, serial_base_jd, serial_base] = parsetnc(time_units_str)% PARSETNC: parses the COARDS string that specifies time units%%function [gregorian_base, rescale_serial_rel, serial_base_jd, ...%          serial_base] = parsetnc(time_units_str)%%        INPUT:% time_units_str: The string stored as the units attribute of the time%    variable in a COARDS standard netcdf file. It is like:%    'seconds since 1992-10-8 15:15:42.5 -6:00'%%        OUTPUT:% gregorian_base: a 6-vector giving the year, month, day, hour, minute,%    second of the base time as specified in time_units_str. This is in UT.% rescale_serial_rel: number used to convert the time vector in the netcdf%    file to days. For example if time_units_str is%    'seconds since 1992-10-8 15:15:42.5 -6:00' then rescale_serial_rel is%    1/(24*60*60).% serial_base_jd: the Julian day number of the base time, in UT, as%    determined by get_julian_day. Thus gregorian_base =%    get_calendar_date(serial_base_jd).% serial_base: the serial time of the base time, in UT, as determined by%    matlab's datenum function. Thus gregorian_base = datevec(serial_base).%    serial_base will be a NaN for times before October 15 1582, when the%    Gregorian calendar was adopted, since datenum is not meaningful in this%    case.%%        Notes:% In a COARDS standard netcdf file time is specfied relative to a standard% time by the time variable having a units attribute of the form:%      'seconds since 1992-10-8 15:15:42.5 -6:00'% This indicates seconds since October 8th, 1992 at 3 hours, 15% minutes and 42.5 seconds in the afternoon in the time zone% which is six hours to the west of Coordinated Universal Time% (i.e. Mountain Daylight Time). The time zone specification can% also be written without a colon using one or two-digits% (indicating hours) or three or four digits (indicating hours% and minutes).  Instead of 'seconds' the string may contain 'minutes',% 'hours', 'days' and 'weeks' and all of these may be singular or plural% and have capital first letters.  I also allow the letters 'UTC' or% 'UT' at the end of the string, but these are ignored.%% All calculations are done using the functions get_calendar_date and% get_julian_day which know about both the Julian and Gregorian calendars and% so work back to julian day 0 in the year -4712.% $Id: parsetnc.m,v 1.2 2000/07/03 04:11:06 mansbrid Exp $% Copyright J. V. Mansbridge, CSIRO, Thursday September 16 11:12:35 EST 1999%Note 1) I had trouble using strtok with ':' and '-' and so I converted%        the first 2 instances of each of them to spaces.  This leaves%        the correction to Universal time (if there is one) untouched.fm = find(time_units_str == '-');fc = find(time_units_str == ':');str = time_units_str;if length(fm) >= 2  str(fm(1:2)) = ' '*ones(size(fm(1:2)));else  error('The year-month-day string is wrongly specified in the base date')endif length(fc) == 1  str(fc(1)) = ' ';elseif length(fc) >= 2  str(fc(1:2)) = ' '*ones(size(fc(1:2)));endstr = setstr(str);%Convert the time vector to serial days since the base time.[str, remainder] = strtok(str);if ( strcmp('week', str) | strcmp('weeks', str) | ...      strcmp('Week', str) | strcmp('week', str) )  rescale_serial_rel = 7;elseif ( strcmp('day', str) | strcmp('days', str) | ...      strcmp('Day', str) | strcmp('day', str) )  rescale_serial_rel = 1;elseif ( strcmp('hour', str) | strcmp('hours', str) | ...      strcmp('Hour', str) | strcmp('Hours', str) )  rescale_serial_rel = 1/24;elseif ( strcmp('minute', str) | strcmp('minutes', str) | ...      strcmp('Minute', str) | strcmp('Minutes', str) )  rescale_serial_rel = 1/(24*60);elseif ( strcmp('second', str) | strcmp('seconds', str) | ...      strcmp('Second', str) | strcmp('Seconds', str) )  rescale_serial_rel = 1/(24*60*60);else  error(['bad time baseline string = ' time_units_str ])end%Find the serial base time (initially without paying attention to any%reference to Universal time).[str, remainder] = strtok(remainder);[str, remainder] = strtok(remainder);if isempty(str)  error('The base time has no string for the year')endyear_base = str2num(str);[str, remainder] = strtok(remainder);if isempty(str)  error('The base time has no string for the month')endmonth_base = str2num(str);[str, remainder] = strtok(remainder);if isempty(str)  error('The base time has no string for the day')endday_base = str2num(str);[str, remainder] = strtok(remainder);if isempty(str)  disp('The base time has no string for the hour, assume hour = min = sec = 0')  hour_base = 0;  minute_base = 0;  second_base = 0;else  hour_base = str2num(str);  [str, remainder] = strtok(remainder);  if isempty(str)    disp('The base time has no string for the minute, assume min = sec = 0')    minute_base = 0;    second_base = 0;  else    minute_base = str2num(str);    [str, remainder] = strtok(remainder);    if isempty(str)      disp('The base time has no string for the second, assume sec = 0')      second_base = 0;    else      second_base = str2num(str);    end  endendgregorian_base = [year_base month_base day_base hour_base ...        minute_base second_base];serial_base = datenum(year_base, month_base, day_base, hour_base, ...    minute_base, second_base);serial_base_jd = get_julian_day(gregorian_base);% Strip off the string 'UTC' or 'UT' and any trailing blanks from% remainder.xx = findstr(remainder, 'UTC');if ~isempty(xx)  remainder = remainder(1:(xx-1));endxx = findstr(remainder, 'UT');if ~isempty(xx)  remainder = remainder(1:(xx-1));endremainder = deblank(remainder);% If the remainder of the string is not empty (or filled with blanks)% then we assume that there is information about the conversion to% Universal time.  This is parsed and serial_base and gregorian_base are% then modified appropriately.if ~isempty(remainder)  % Find the number of hours and minutes that the time is offset from  % Coordinated Universal Time.    fc = find(remainder == ':');  if length(fc) == 0    intxx = str2num(remainder);    if ( (-99 < intxx) & ( intxx < 99) )      hour_extra = intxx;      min_extra = 0;    elseif ( (-9999 < intxx) & ( intxx < 9999) )      hour_extra = fix(0.01*intxx);      min_extra = intxx - 100*hour_extra;    else      error(['1:Universal time offset is faulty in ' time_units_str])    end  elseif length(fc) == 1    [str, remainder] = strtok(remainder, ':');    hour_extra = str2num(str);    [str, remainder] = strtok(remainder, ':');    min_extra = sign(hour_extra)*str2num(str);  else    error(['2:Universal time offset is faulty in ' time_units_str])  end   % Error checks    if ((hour_extra < -12) | (hour_extra > 12))    error(['3:Universal time offset is faulty in ' time_units_str])  end  if ((min_extra < -59) | (min_extra > 59))    error(['4:Universal time offset is faulty in ' time_units_str])  end  % Covert the Universal time correction to days.    time_extra = (hour_extra + min_extra/60)/24;  % Correct serial_base from the local time, as specified in the early  % part of the string, to Universal time.  Thus in the example  % 'seconds since 1992-10-8 15:15:42.5 -6:00' we will have  % time_extra = -6/24 days and this value must be subtracted from  % serial_base.  gregorian_limit = datenum(1582, 10, 15);  serial_base = serial_base - time_extra;  if serial_base < gregorian_limit    serial_base = NaN;  end  serial_base_jd = serial_base_jd - time_extra;  gregorian_base = get_calendar_date(serial_base_jd);end

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产清纯在线一区二区www| 欧美一区二区三区男人的天堂| 99精品国产视频| 欧美日本高清视频在线观看| 国产精品网友自拍| 麻豆成人在线观看| 欧洲av在线精品| 国产欧美日韩综合精品一区二区| 婷婷夜色潮精品综合在线| 粉嫩aⅴ一区二区三区四区| 91精品免费在线| 亚洲与欧洲av电影| 一本大道久久a久久综合婷婷| 欧美精品一区二区三区很污很色的 | 欧美色爱综合网| 日韩有码一区二区三区| 国产日韩精品一区二区三区| 久久免费精品国产久精品久久久久 | 亚洲天堂2014| 国产成人精品免费| 国产亚洲1区2区3区| 极品少妇一区二区三区精品视频| 欧美日韩亚洲高清一区二区| 亚洲精品成人在线| 在线看日韩精品电影| 成人免费一区二区三区在线观看| 国产**成人网毛片九色| 国产日产亚洲精品系列| 大美女一区二区三区| 久久天堂av综合合色蜜桃网| 久久99国产精品免费网站| 日韩美女一区二区三区| 精品一区在线看| 精品福利一二区| 国产精品一区在线观看乱码 | 94-欧美-setu| 一级特黄大欧美久久久| 欧美又粗又大又爽| 午夜精品视频一区| 成人高清伦理免费影院在线观看| 《视频一区视频二区| 成人网页在线观看| 国产精品久久久久久久久免费桃花| 成人午夜激情视频| 亚洲欧美日韩中文播放| 色婷婷一区二区| 一区二区三区在线观看国产| 欧美美女喷水视频| 国产一区在线观看视频| 国产精品乱人伦| 欧美中文字幕一区二区三区亚洲| 亚洲图片有声小说| 精品国产亚洲在线| 99久久国产综合精品女不卡| 亚洲成人综合视频| 精品粉嫩超白一线天av| 99国产精品久久久久久久久久 | 久久久久久久国产精品影院| 成人短视频下载| 丝袜诱惑亚洲看片| 国产情人综合久久777777| 欧美在线观看视频一区二区三区| 日本中文在线一区| 免费成人小视频| 日韩黄色在线观看| 精品欧美黑人一区二区三区| 成人中文字幕在线| 亚洲高清不卡在线| 国产精品少妇自拍| 欧美蜜桃一区二区三区| 成人午夜短视频| 天堂va蜜桃一区二区三区漫画版| 国产午夜精品久久久久久久| 欧洲一区在线观看| 国产成人av电影在线| 午夜一区二区三区视频| 中文在线资源观看网站视频免费不卡| 欧美日韩激情一区二区三区| 成人av动漫网站| 麻豆精品精品国产自在97香蕉 | 一区二区三区毛片| 久久精品人人做人人综合| 精品影院一区二区久久久| 亚洲丝袜另类动漫二区| 日韩欧美一区二区免费| 欧美一二三区在线| 欧美日韩亚洲综合一区二区三区| 激情欧美一区二区| 亚洲高清免费观看高清完整版在线观看 | 91免费精品国自产拍在线不卡| 国精产品一区一区三区mba视频| 亚洲香肠在线观看| 中文字幕一区二区日韩精品绯色| 精品国产一区二区三区久久久蜜月 | 色综合天天在线| 国产高清精品网站| 精品一区二区三区在线播放视频| 9191成人精品久久| 欧美综合一区二区| 成人免费毛片片v| 欧美日韩成人在线| 欧美欧美欧美欧美首页| 粉嫩欧美一区二区三区高清影视| 亚洲小说欧美激情另类| 亚洲精品视频免费观看| 中文一区在线播放| 欧美激情综合网| 国产三级三级三级精品8ⅰ区| 2022国产精品视频| 欧美岛国在线观看| 337p粉嫩大胆色噜噜噜噜亚洲| 欧美一区二区三区日韩视频| 7777精品久久久大香线蕉| 欧美精品久久99| 欧美人妖巨大在线| 日韩精品中文字幕在线不卡尤物| 欧美一区二区久久| 日韩一级免费一区| 日韩欧美激情一区| 久久久久久久电影| 中文字幕精品一区二区精品绿巨人 | 99久久精品免费看国产| 国产成人午夜视频| 丁香婷婷综合激情五月色| 东方欧美亚洲色图在线| av成人免费在线观看| 色噜噜偷拍精品综合在线| 色网综合在线观看| 欧美日韩一级视频| 精品国产sm最大网站| 久久青草欧美一区二区三区| 中文字幕成人av| 亚洲视频电影在线| 午夜激情综合网| 韩国理伦片一区二区三区在线播放| 国产一区视频导航| 91免费看`日韩一区二区| 欧美日韩亚洲综合在线| 久久久午夜精品理论片中文字幕| 国产精品青草久久| 肉色丝袜一区二区| 国产精品一区二区久久精品爱涩| 91丨九色丨国产丨porny| 欧美老年两性高潮| 精品日韩一区二区三区| 国产女主播视频一区二区| 亚洲日本成人在线观看| 日本中文字幕一区二区有限公司| 激情综合色综合久久| 99久久精品国产一区二区三区 | 91麻豆国产香蕉久久精品| 欧美一区二区三区精品| 国产欧美一区二区精品性色 | 99精品在线免费| 欧美一区二区免费观在线| 国产精品国产三级国产普通话蜜臀 | 日本不卡不码高清免费观看| 成人黄色电影在线| 日韩一级精品视频在线观看| 亚洲欧美日韩国产一区二区三区 | 国产精品伦理在线| 蜜桃精品视频在线| 欧洲精品视频在线观看| 国产色产综合色产在线视频 | 这里只有精品免费| 曰韩精品一区二区| 国产91精品一区二区麻豆亚洲| 欧美综合在线视频| 国产精品高清亚洲| 国产一区不卡在线| 日韩一级高清毛片| 亚洲va国产天堂va久久en| 97se亚洲国产综合自在线| 国产亚洲欧美日韩日本| 蜜桃视频在线一区| 欧美日韩欧美一区二区| 亚洲精品免费电影| 9i看片成人免费高清| 99精品欧美一区| 欧美精品自拍偷拍| 久久久精品黄色| 蜜臀av性久久久久av蜜臀妖精| 欧美午夜片在线看| 亚洲免费视频成人| 99久久99久久久精品齐齐| 国产午夜精品美女毛片视频| 国内精品嫩模私拍在线| 日韩欧美色综合| 蜜芽一区二区三区| 91精品综合久久久久久| 香港成人在线视频| 欧美日韩视频不卡| 日韩福利电影在线| 日韩一区二区三区免费看| 日韩精品国产欧美| 欧美高清dvd| 免费成人av资源网| 337p日本欧洲亚洲大胆色噜噜| 久久99精品国产麻豆婷婷洗澡| 日韩久久精品一区|