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

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

?? mat2roms_rps.m

?? 任意邊界結構正交曲線網格生成程序
?? M
?? 第 1 頁 / 共 2 頁
字號:
function mat2roms_rps(theMatFile, theROMSFile)
% mat2roms_rps -- Convert from Mat-file to ROMS file.
%  mat2roms('theMatFile', 'theROMSFile') converts
%   'theMatFile' (mostly RHO information) to 'theROMSFile'.
%
% NOTE: This is a modified version of Chuck Denham's mat2roms function.
% In this version the only requirements for the input mat file are: 
% s.rho.lon
% s.rho.lat
% s.rho.depth,  where (depth == nan) indicates land points
%
% The projected coordinate is calculated via the projection
% specified in this routine. This is *only* used to interpolate
% the grid to find the lon/lat values of the u,v and psi
% points and to write out x_rho, y_rho, x_u, y_u, etc, which
% are not used by ROMS, but could be useful for
% plotting.   The only important quantities for ROMS are the
% metric factors pm and pn and the angles, which 
% are calculated from the lon/lat values
% assuming a spherical earth, not from distances in the 
% projected coordinates.
%
% -Rich Signell (21-May-2003) rsignell@usgs.gov
%
% This routine calls m_proj from the m_map toolkit and
% also sw_dist and sw_f from the seawater toolkit (both
% available at http://sea-mat.whoi.edu
 
% Copyright (C) 2002 Dr. Charles R. Denham, ZYDECO.
%  All Rights Reserved.
%   Disclosure without explicit written consent from the
%    copyright owner does not constitute publication.
 
% Version of 22-May-2002 16:25:10.
% Updated    17-Jun-2002 16:49:32.
% Updated by RPS 21-May-2003

isMacintosh = ~isunix & any(findstr(lower(computer), 'mac'));

if nargin < 1, theMatFile = '*.mat'; end
if nargin < 2, theROMSFile = 'roms_model_grid.nc'; end

% Get the file names.

if any(theMatFile == '*')
	help(mfilename)
	theFilterSpec = theMatFile;
	thePrompt = 'Select a Mat-File';
	[theFile, thePath] = uigetfile(theFilterSpec, thePrompt);
	if ~any(theFile), return, end
	if thePath(end) ~= filesep, thePath(end+1) = filesep; end
	theMatFile = [thePath theFile];
end

if any(theROMSFile == '*')
	theFilterSpec = theROMSFile;
	thePrompt = 'Save As ROMS File';
	[theFile, thePath] = uiputfile(theFilterSpec, thePrompt);
	if ~any(theFile), return, end
	if thePath(end) ~= filesep, thePath(end+1) = filesep; end
	theROMSFile = [thePath theFile];
end

if isequal(theMatFile, theROMSFile)
	disp([' ## Must not select same file for input and output.'])
	return
end

% Load the Mat-File.

s = load(theMatFile);
if isempty(s)
	disp([' ## Mat-File is empty.'])
	return
end

% We need to pay attention to the (i, j) coordinates
%  stored in the file.  They are our only clue on the
%  actual orientation of the data.  The "i" index
%  goes left-to-right in the grid-world, while
%  the "j" index runs bottom-to-top.

% WetCDF on.

if isMacintosh
	eval('wetcdf on')
end

% Open the ROMS File.

nc = netcdf(theROMSFile, 'clobber');
if isempty(nc)
	disp([' ## Unable to open ROMS NetCDF output file.'])
	return
end

% Populate the ROMS File.
 
%% Global attributes:

disp(' ## Defining Global Attributes...')
 
nc.type = ncchar('Gridpak file');
theGridTitle = 'ROMS Model Grid';
nc.gridid = theGridTitle;
nc.history = ncchar(['Created by "' mfilename '" on ' datestr(now)]);

nc.CPP_options = ncchar('DCOMPLEX, DBLEPREC, NCARG_32, PLOTS,');
name(nc.CPP_options, 'CPP-options')

% Dimensions:


% mapping

[m, n] = size(s.rho.lon);

% The xi direction (left-right):

LP = n;   % The rho dimension.
L = LP-1; % The psi dimension.

% The eta direction (up-down):

MP = m;   % The rho dimension.
M = MP-1; % The psi dimension.

disp(' ## Defining Dimensions...')
 
nc('xi_psi') = L;
nc('xi_rho') = LP;
nc('xi_u') = L;
nc('xi_v') = LP;

nc('eta_psi') = M;
nc('eta_rho') = MP;
nc('eta_u') = MP;
nc('eta_v') = M;

nc('one') = 1;
nc('two') = 2;
nc('bath') = 0; %% (record dimension)
 
%% Variables and attributes:

disp(' ## Defining Variables and Attributes...')
 
nc{'xl'} = ncdouble('one'); %% 1 element.
nc{'xl'}.long_name = ncchar('domain length in the XI-direction');
nc{'xl'}.units = ncchar('meter');
 
nc{'el'} = ncdouble('one'); %% 1 element.
nc{'el'}.long_name = ncchar('domain length in the ETA-direction');
nc{'el'}.units = ncchar('meter');
 
nc{'JPRJ'} = ncchar('two'); %% 2 elements.
nc{'JPRJ'}.long_name = ncchar('Map projection type');

nc{'JPRJ'}.option_ME_ = ncchar('Mercator');
nc{'JPRJ'}.option_ST_ = ncchar('Stereographic');
nc{'JPRJ'}.option_LC_ = ncchar('Lambert conformal conic');
name(nc{'JPRJ'}.option_ME_, 'option(ME)')
name(nc{'JPRJ'}.option_ST_, 'option(ST)')
name(nc{'JPRJ'}.option_LC_, 'option(LC)')
 
nc{'PLAT'} = ncfloat('two'); %% 2 elements.
nc{'PLAT'}.long_name = ncchar('Reference latitude(s) for map projection');
nc{'PLAT'}.units = ncchar('degree_north');
 
nc{'PLONG'} = ncfloat('one'); %% 1 element.
nc{'PLONG'}.long_name = ncchar('Reference longitude for map projection');
nc{'PLONG'}.units = ncchar('degree_east');
 
nc{'ROTA'} = ncfloat('one'); %% 1 element.
nc{'ROTA'}.long_name = ncchar('Rotation angle for map projection');
nc{'ROTA'}.units = ncchar('degree');
 
nc{'JLTS'} = ncchar('two'); %% 2 elements.
nc{'JLTS'}.long_name = ncchar('How limits of map are chosen');

nc{'JLTS'}.option_CO_ = ncchar('P1, .. P4 define two opposite corners ');
nc{'JLTS'}.option_MA_ = ncchar('Maximum (whole world)');
nc{'JLTS'}.option_AN_ = ncchar('Angles - P1..P4 define angles to edge of domain');
nc{'JLTS'}.option_LI_ = ncchar('Limits - P1..P4 define limits in u,v space');
name(nc{'JLTS'}.option_CO_, 'option(CO)')
name(nc{'JLTS'}.option_MA_, 'option(MA)')
name(nc{'JLTS'}.option_AN_, 'option(AN)')
name(nc{'JLTS'}.option_LI_, 'option(LI)')
 
nc{'P1'} = ncfloat('one'); %% 1 element.
nc{'P1'}.long_name = ncchar('Map limit parameter number 1');
 
nc{'P2'} = ncfloat('one'); %% 1 element.
nc{'P2'}.long_name = ncchar('Map limit parameter number 2');
 
nc{'P3'} = ncfloat('one'); %% 1 element.
nc{'P3'}.long_name = ncchar('Map limit parameter number 3');
 
nc{'P4'} = ncfloat('one'); %% 1 element.
nc{'P4'}.long_name = ncchar('Map limit parameter number 4');
 
nc{'XOFF'} = ncfloat('one'); %% 1 element.
nc{'XOFF'}.long_name = ncchar('Offset in x direction');
nc{'XOFF'}.units = ncchar('meter');
 
nc{'YOFF'} = ncfloat('one'); %% 1 element.
nc{'YOFF'}.long_name = ncchar('Offset in y direction');
nc{'YOFF'}.units = ncchar('meter');
 
nc{'depthmin'} = ncshort('one'); %% 1 element.
nc{'depthmin'}.long_name = ncchar('Shallow bathymetry clipping depth');
nc{'depthmin'}.units = ncchar('meter');
 
nc{'depthmax'} = ncshort('one'); %% 1 element.
nc{'depthmax'}.long_name = ncchar('Deep bathymetry clipping depth');
nc{'depthmax'}.units = ncchar('meter');
 
nc{'spherical'} = ncchar('one'); %% 1 element.
nc{'spherical'}.long_name = ncchar('Grid type logical switch');
nc{'spherical'}.option_T_ = ncchar('spherical');
nc{'spherical'}.option_F_ = ncchar('Cartesian');
name(nc{'spherical'}.option_T_, 'option(T)')
name(nc{'spherical'}.option_F_, 'option(F)')
 
nc{'hraw'} = ncdouble('bath', 'eta_rho', 'xi_rho'); %% 0 elements.
nc{'hraw'}.long_name = ncchar('Working bathymetry at RHO-points');
nc{'hraw'}.units = ncchar('meter');
nc{'hraw'}.field = ncchar('bath, scalar');
 
nc{'h'} = ncdouble('eta_rho', 'xi_rho'); %% 16900 elements.
nc{'h'}.long_name = ncchar('Final bathymetry at RHO-points');
nc{'h'}.units = ncchar('meter');
nc{'h'}.field = ncchar('bath, scalar');
 
nc{'f'} = ncdouble('eta_rho', 'xi_rho'); %% 16900 elements.
nc{'f'}.long_name = ncchar('Coriolis parameter at RHO-points');
nc{'f'}.units = ncchar('second-1');
nc{'f'}.field = ncchar('Coriolis, scalar');
 
nc{'pm'} = ncdouble('eta_rho', 'xi_rho'); %% 16900 elements.
nc{'pm'}.long_name = ncchar('curvilinear coordinate metric in XI');
nc{'pm'}.units = ncchar('meter-1');
nc{'pm'}.field = ncchar('pm, scalar');
 
nc{'pn'} = ncdouble('eta_rho', 'xi_rho'); %% 16900 elements.
nc{'pn'}.long_name = ncchar('curvilinear coordinate metric in ETA');
nc{'pn'}.units = ncchar('meter-1');
nc{'pn'}.field = ncchar('pn, scalar');
 
nc{'dndx'} = ncdouble('eta_rho', 'xi_rho'); %% 16900 elements.
nc{'dndx'}.long_name = ncchar('xi derivative of inverse metric factor pn');
nc{'dndx'}.units = ncchar('meter');
nc{'dndx'}.field = ncchar('dndx, scalar');
 
nc{'dmde'} = ncdouble('eta_rho', 'xi_rho'); %% 16900 elements.
nc{'dmde'}.long_name = ncchar('eta derivative of inverse metric factor pm');
nc{'dmde'}.units = ncchar('meter');
nc{'dmde'}.field = ncchar('dmde, scalar');
 
nc{'x_rho'} = ncdouble('eta_rho', 'xi_rho'); %% 16900 elements.
nc{'x_rho'}.long_name = ncchar('x location of RHO-points');
nc{'x_rho'}.units = ncchar('meter');
 
nc{'y_rho'} = ncdouble('eta_rho', 'xi_rho'); %% 16900 elements.
nc{'y_rho'}.long_name = ncchar('y location of RHO-points');
nc{'y_rho'}.units = ncchar('meter');
 
nc{'x_psi'} = ncdouble('eta_psi', 'xi_psi'); %% 16641 elements.
nc{'x_psi'}.long_name = ncchar('x location of PSI-points');
nc{'x_psi'}.units = ncchar('meter');
 
nc{'y_psi'} = ncdouble('eta_psi', 'xi_psi'); %% 16641 elements.
nc{'y_psi'}.long_name = ncchar('y location of PSI-points');
nc{'y_psi'}.units = ncchar('meter');
 
nc{'x_u'} = ncdouble('eta_u', 'xi_u'); %% 16770 elements.
nc{'x_u'}.long_name = ncchar('x location of U-points');
nc{'x_u'}.units = ncchar('meter');
 
nc{'y_u'} = ncdouble('eta_u', 'xi_u'); %% 16770 elements.
nc{'y_u'}.long_name = ncchar('y location of U-points');
nc{'y_u'}.units = ncchar('meter');
 

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲午夜视频在线观看| 日本va欧美va欧美va精品| 一区二区三区毛片| 日本特黄久久久高潮| 国产成人av一区二区三区在线| 亚洲国产精品久久久久婷婷884 | 成人精品小蝌蚪| 欧美在线视频你懂得| 久久综合九色综合久久久精品综合| 国产蜜臀av在线一区二区三区| 亚洲美女电影在线| 蜜臀久久久99精品久久久久久| 风间由美一区二区三区在线观看| 色婷婷av久久久久久久| 日韩午夜激情视频| 中文字幕一区在线| 蜜桃久久av一区| 欧美综合视频在线观看| 久久久不卡网国产精品一区| 亚洲综合成人网| 国产精品一品二品| 欧美高清视频不卡网| 国产欧美一区二区精品性色| 亚洲成人av一区| 成人黄色综合网站| 欧美成人乱码一区二区三区| 亚洲精选免费视频| 国产精品综合视频| 51精品国自产在线| 亚洲免费观看在线观看| 精品影院一区二区久久久| 在线精品视频一区二区| 国产亚洲午夜高清国产拍精品 | 日韩亚洲电影在线| 亚洲欧洲国产日本综合| 久久99精品久久只有精品| 欧美色图片你懂的| 中文字幕中文字幕中文字幕亚洲无线| 琪琪久久久久日韩精品| 在线国产亚洲欧美| 国产精品欧美久久久久一区二区| 精品亚洲免费视频| 69堂成人精品免费视频| 一区二区在线观看不卡| 成人涩涩免费视频| 久久综合av免费| 美女在线观看视频一区二区| 欧美视频中文字幕| 日韩一区有码在线| 成人在线综合网| 久久久久久99精品| 久久成人av少妇免费| 7777精品伊人久久久大香线蕉经典版下载 | 国产精品乱码一区二三区小蝌蚪| 裸体一区二区三区| 91精品国产综合久久蜜臀| 一区二区三区在线视频播放| aaa国产一区| 欧美激情资源网| 国产一区二区三区综合| 日韩美女视频一区二区在线观看| 天堂蜜桃91精品| 欧美性猛交xxxxxx富婆| 亚洲精品亚洲人成人网 | 国产精品大尺度| 成人午夜私人影院| 国产欧美一区二区精品忘忧草| 韩国av一区二区三区| 2020国产精品自拍| 国产真实乱偷精品视频免| 精品福利一区二区三区| 狠狠色丁香婷婷综合| 欧美精品一区二区精品网| 精品在线视频一区| 久久久高清一区二区三区| 国产99久久久国产精品潘金网站| 国产亚洲综合在线| 成人av在线一区二区三区| 国产精品嫩草久久久久| 99视频在线精品| 亚洲免费在线看| 欧美在线观看你懂的| 亚洲mv在线观看| 欧美一区二区黄| 极品少妇一区二区三区精品视频| 精品播放一区二区| 国产成a人亚洲| 中文字幕日本乱码精品影院| 91女神在线视频| 亚洲综合免费观看高清完整版| 色狠狠一区二区| 日韩精品国产欧美| 精品国产乱码久久久久久牛牛| 国产一区二区成人久久免费影院| 国产欧美日韩综合精品一区二区| www.亚洲色图.com| 一区二区高清视频在线观看| 欧美日本韩国一区二区三区视频| 热久久免费视频| 久久久国产午夜精品| 91在线视频官网| 午夜精品一区二区三区三上悠亚| 欧美一区二区三区四区五区 | 国产精品水嫩水嫩| 91激情在线视频| 免费国产亚洲视频| 中日韩免费视频中文字幕| 91在线视频网址| 日本伊人色综合网| 国产欧美在线观看一区| 在线观看国产一区二区| 美女一区二区久久| 欧美国产一区在线| 欧美视频精品在线| 国产一区二三区| 亚洲黄色免费电影| 精品1区2区在线观看| 91免费看`日韩一区二区| 日韩av网站在线观看| 国产日韩av一区| 欧美三级电影精品| 国产激情91久久精品导航| 亚洲一区二区三区四区在线| 久久伊人中文字幕| 欧美日韩视频一区二区| 国产成人精品影视| 午夜激情一区二区三区| 国产欧美精品一区aⅴ影院 | 久久国产欧美日韩精品| 综合久久国产九一剧情麻豆| 日韩一区二区三| 91丝袜高跟美女视频| 欧美国产日本视频| 91精品国产黑色紧身裤美女| av一区二区三区黑人| 久久精品国产亚洲a| 一区二区三区丝袜| 国产欧美日韩在线看| 欧美一区二区三区在线观看 | 亚洲国产精品综合小说图片区| 久久亚洲精华国产精华液| 欧美日韩中文字幕一区| 成人激情开心网| 久久 天天综合| 日韩精品高清不卡| 亚洲欧美成人一区二区三区| 久久精品人人做人人综合 | 国产一区啦啦啦在线观看| 一区二区三区美女视频| 中文字幕色av一区二区三区| 26uuuu精品一区二区| 欧美剧在线免费观看网站| 91女人视频在线观看| 国产91精品露脸国语对白| 精品在线播放午夜| 日韩av中文字幕一区二区三区 | 欧美一级高清片| 欧美性一区二区| 91亚洲精品久久久蜜桃网站| 国产尤物一区二区在线| 卡一卡二国产精品| 日韩国产精品久久| 午夜欧美电影在线观看| 亚洲国产成人porn| 亚洲免费在线电影| 成人欧美一区二区三区黑人麻豆| 久久亚区不卡日本| 精品蜜桃在线看| 欧美成人r级一区二区三区| 5月丁香婷婷综合| 欧美欧美午夜aⅴ在线观看| 色狠狠色狠狠综合| 91成人在线精品| 色哦色哦哦色天天综合| 色综合网站在线| 91在线精品一区二区| 99re热这里只有精品视频| 成人开心网精品视频| 成人在线一区二区三区| 成人一区二区三区在线观看| 丁香婷婷综合色啪| thepron国产精品| 99精品欧美一区二区三区小说| 国产成人av电影免费在线观看| 国产成人激情av| a亚洲天堂av| 91社区在线播放| 欧美性色欧美a在线播放| 欧美精品亚洲一区二区在线播放| 欧美羞羞免费网站| 91精品国产日韩91久久久久久| 宅男噜噜噜66一区二区66| 欧美一级精品在线| 久久综合九色综合欧美就去吻 | 99久久精品免费精品国产| 99这里只有精品| 欧洲一区二区三区在线| 欧美猛男男办公室激情| 日韩亚洲欧美高清| 日本一区二区三区四区|