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

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

?? parsetnc.m

?? matlacb程序包
?? 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 problematic for times before October 15 1582, when%    the Gregorian calendar was adopted, since datenum is proleptic gregorian%    and so not what you might expect.%%        Notes:% In a COARDS standard netcdf file time is specified 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.% This function calls: get_calendar_date.m, get_julian_day.m% This function is called by: get_serial_time.m, timenc.m% $Id: parsetnc.m Mon, 03 Jul 2006 17:16:40 $% 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)) = ' ';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)) = ' ';endstr = char(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 some strings whose meaning we understand and also any trailing% blanks from remainder.string_list = {'UTC', 'utc', 'UT', 'ut'};for ii = 1:length(string_list)  xx = findstr(remainder, string_list{ii});  if ~isempty(xx)    remainder = remainder(1:(xx-1));    break  endendremainder = 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  % Convert 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.  serial_base = serial_base - time_extra;  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一区二区三区免费野_久草精品视频
日韩电影免费一区| 国内精品久久久久影院一蜜桃| 日韩一区精品视频| 国产剧情一区二区| 5566中文字幕一区二区电影 | 激情综合色丁香一区二区| 99re这里只有精品首页| 精品奇米国产一区二区三区| 亚洲精品成人悠悠色影视| 国产福利91精品一区| 337p亚洲精品色噜噜噜| 一区二区三区久久久| 国产成人自拍网| 欧美精品久久久久久久多人混战 | 亚洲美女一区二区三区| 国产一区二区在线观看视频| 欧美疯狂性受xxxxx喷水图片| √…a在线天堂一区| 国产乱妇无码大片在线观看| 欧美精品一区二区三区在线| 日日摸夜夜添夜夜添精品视频| 色久优优欧美色久优优| 亚洲色图欧美偷拍| 成人午夜在线播放| 中日韩av电影| 国产精品亚洲专一区二区三区| 3751色影院一区二区三区| 亚洲大尺度视频在线观看| 在线中文字幕一区| 一区二区三区蜜桃| 欧美日韩国产免费一区二区| 亚洲一二三区不卡| 欧美日韩亚洲高清一区二区| 亚洲风情在线资源站| 国产亚洲欧美日韩在线一区| 亚洲一二三四区不卡| 色狠狠色狠狠综合| 午夜精品一区二区三区电影天堂 | 欧美日韩一区二区在线视频| 亚洲欧美日韩国产成人精品影院| 91视频免费看| 亚洲国产成人porn| 欧美一区二区精品| 蜜桃av噜噜一区| 精品少妇一区二区三区 | 99精品国产视频| 成人欧美一区二区三区视频网页 | 激情综合五月婷婷| 国产日韩欧美综合一区| av成人免费在线| 亚洲美女屁股眼交| 欧美一区二区三区小说| 国产在线国偷精品产拍免费yy| 久久精品视频在线免费观看 | 国产成人精品亚洲午夜麻豆| 国产精品不卡一区| 在线视频综合导航| 麻豆精品国产91久久久久久| 久久久久国产精品麻豆| 91在线免费看| 日本成人在线不卡视频| 国产亚洲欧美日韩在线一区| 91成人在线精品| 九九九精品视频| 欧美国产日韩亚洲一区| 欧美午夜片在线看| 国产一区二区伦理片| 亚洲免费观看高清完整版在线 | 久久久噜噜噜久噜久久综合| 97精品久久久久中文字幕| 天天色综合成人网| 国产欧美日本一区二区三区| 欧美日韩三级一区| 高清视频一区二区| 久久精品国产亚洲一区二区三区| 中文字幕人成不卡一区| 欧美一区午夜精品| 成人99免费视频| 污片在线观看一区二区| 中文字幕中文字幕中文字幕亚洲无线| 欧美日韩中字一区| 国产精品国模大尺度视频| av色综合久久天堂av综合| 蜜桃传媒麻豆第一区在线观看| 国产精品高潮呻吟久久| 日韩一本二本av| 日本大香伊一区二区三区| 国产福利一区二区三区在线视频| 亚洲国产日韩综合久久精品| 国产精品美女www爽爽爽| 日韩色视频在线观看| 欧美日韩精品专区| a亚洲天堂av| 国产精品77777竹菊影视小说| 亚洲一区二区精品久久av| 国产精品乱码妇女bbbb| 久久综合狠狠综合久久综合88 | 亚洲精品在线观| 欧美性做爰猛烈叫床潮| 成人午夜av在线| 国产精品资源在线| 韩国成人在线视频| 看片网站欧美日韩| 日本不卡视频一二三区| 午夜久久久久久久久久一区二区| 亚洲精品亚洲人成人网在线播放| 欧美激情在线看| 精品欧美一区二区久久| 精品日韩在线观看| 日韩亚洲欧美一区二区三区| 欧美精品视频www在线观看| 欧美三级中文字幕在线观看| 91麻豆swag| 在线视频国产一区| 欧洲一区在线观看| 欧美性欧美巨大黑白大战| 色婷婷综合久久久久中文| 972aa.com艺术欧美| 在线观看成人小视频| 色偷偷久久一区二区三区| 91国在线观看| 欧美色综合影院| 欧美日韩精品专区| 欧美一级片在线看| 欧美精品一区二区三区很污很色的 | 91精品国产综合久久久蜜臀粉嫩| 欧美高清视频一二三区 | 国产精品99久久久久久似苏梦涵| 国产一区二区免费视频| 懂色一区二区三区免费观看| 成人av午夜影院| 国模一区二区三区白浆| 国产亲近乱来精品视频| 中文字幕一区二区5566日韩| 国产精品美女久久福利网站| 亚洲日本中文字幕区| 一区二区在线观看免费| 亚洲成人动漫精品| 美女被吸乳得到大胸91| 国产毛片一区二区| 色偷偷成人一区二区三区91| 日韩一级片网站| 国产日韩视频一区二区三区| 伊人夜夜躁av伊人久久| 亚洲成人午夜影院| 国产精品1区2区| 91啦中文在线观看| 日韩精品一区二区三区蜜臀| 国产欧美日韩久久| 亚洲影院免费观看| 国产精品系列在线观看| 91久久香蕉国产日韩欧美9色| 欧美成人一区二区三区片免费| 国产人伦精品一区二区| 亚洲成a天堂v人片| 国产成人综合在线| 欧美日韩高清一区| 欧美激情一区二区三区不卡| 日韩在线一区二区| 波多野结衣精品在线| 91精品国产欧美一区二区成人| 欧美国产1区2区| 日韩电影在线观看电影| av不卡一区二区三区| 日韩欧美成人午夜| 亚洲一区电影777| 国产不卡免费视频| 欧美电影免费观看高清完整版在线观看 | 国产91丝袜在线18| 91精选在线观看| 欧美国产日韩在线观看| 久久精品国产网站| 欧美色区777第一页| 成人欧美一区二区三区| 极品尤物av久久免费看| 欧美美女一区二区在线观看| 国产精品久久毛片a| 韩国精品主播一区二区在线观看 | 久久久美女毛片| 亚洲成精国产精品女| 99精品久久只有精品| 久久综合精品国产一区二区三区| 日韩和欧美一区二区| 欧美亚洲免费在线一区| 亚洲精品久久7777| 成人av在线影院| 久久精品在线观看| 免费一级欧美片在线观看| 欧美在线观看禁18| 亚洲人成网站在线| 99久久99久久免费精品蜜臀| 欧美高清在线视频| 国产成人自拍网| 久久嫩草精品久久久精品| 蜜桃91丨九色丨蝌蚪91桃色| 日韩一区二区三| 日本v片在线高清不卡在线观看| 欧美日韩在线不卡| 午夜精品免费在线| 4438亚洲最大|