当前位置: 首页 > news >正文

ecshop怎么做网站搜索引擎推广实训

ecshop怎么做网站,搜索引擎推广实训,注册商标需要什么条件,夏天做啥网站致富我们需要将xyz格式的文件转成geotiff便于成图,或者geotiff转成xyz用于数据运算,下面介绍如何实现这一操作,采用GMT和matlab两种方法。 1.GMT转换 我们先准备一个xyz文件,这里是一个降水文件。在gmt中采用以下的语句实现xyz转grd…

我们需要将xyz格式的文件转成geotiff便于成图,或者geotiff转成xyz用于数据运算,下面介绍如何实现这一操作,采用GMT和matlab两种方法。

1.GMT转换

我们先准备一个xyz文件,这里是一个降水文件。在gmt中采用以下的语句实现xyz转grd网格文件

    xyz2grd DJF.txt -R-180/180/-90/90 -JN12c -I5 -Gm1.grdgmt grdsample m1.grd -Gm11.grd -I0.5

语句实现了将xyz转成grd文件,然后在Global mapper中打开,导出为geotiff格式即可,然后可以用于绘图和地理信息处理显示。

2.matlab程序实现

我们现在matlab中读取一个geotiff文件以观察其组成要素。

[A1,R] = geotiffread('Tibet_1000.tif');A1(A1<=0)=0;

可以看到,其由两部分组成,一个是数值矩阵(A1),另一个是投影信息(R)。因此我们如果想要将xyz数据转成geotiff格式的文件,同样需要准备两个信息:一个是数据矩阵,另一个是投影信息(当然需要自己设置)。

[A1,R] = geotiffread('Tibet_1000.tif');A1(A1<=0)=0;
lon = linspace(65.0042,109.9958,5400);
lat = linspace(20.0042,49.9958,3600);
[lon,lat] = meshgrid(lon,lat);O1.lon = lon;O1.lat = lat;O1.rg  = flipud(double(A1));
rg_plot(O1),title('10 km DEM'),colorbar

需要注意的是,一般我们所说的xyz数据是三列的,分别是

如果要转成geotiff文件,需要提前转成数值矩阵,即通常需要reshape一下(这针对于转换的影响为矩形)

接下来,我们实现一个xyz转成geotiff的例子。

(1)先准备一个xyz数据,这里以MSSA插值的GRACE level03数据集为例,数据参考以下专栏:

分享一个月份连续的MSSA插值的GRACE level03数据集_grace数据集-CSDN博客

matlab先读取xyz数据,然后绘图,可见reshape的正确性:

% % load data
A = load('GRACE_MSSA_2022_01.xyz');%% reshape
O.lon = reshape(A(:,1),181,361);
O.lat = reshape(A(:,2),181,361);
O.rg  = reshape(A(:,3),181,361);wzq_plot(O)

wzq_plot函数如下,其中缺失的报错文件参加B站的置顶评论:

绘图函数的使用wzq_plot - 哔哩哔哩 (bilibili.com)

function wzq_plot(wzq)
pcolor(wzq.lon,wzq.lat,wzq.rg)
shading interp
hold on;
if max(wzq.lon(:)) < 200coast=load('coastline-from-GMT-WNI.dat');
elsecoast=load('coastline-from-GMT-WNI-0-360.dat');
end
plot(coast(:,1),coast(:,2),'k')
hold off;
colorbar
colormap jet
end 

(2)配置投影信息

这里我们借用其他读取的geotiff文件的投影信息,然后按照实际情况进行修改配置,这里我们采用一个DEM的投影信息,我们需要修改的地方包括:

X Y的范围  采样分辨率  经纬度范围  栅格数量

然后我们得到配置好的新的投影信息,但是实际上有更简单的配置方法:

[A1,R] = geotiffread('Tibet_1000.tif');A1(A1<=0)=0;
% % load data
A = load('GRACE_MSSA_2022_01.xyz');%% reshape
O.lon = reshape(A(:,1),181,361);
O.lat = reshape(A(:,2),181,361);
O.rg  = reshape(A(:,3),181,361);wzq_plot(O)%% setting new projection info
R1.RasterInterpretation      = 'Postings';
R1.XIntrinsicLimits          = [1,361];
R1.YIntrinsicLimits          = [1,181];
R1.SampleSpacingInLatitude   = 1;
R1.SampleSpacingInLongitude  = 1;
R1.LatitudeLimits            = [-90,90];
R1.LongitudeLimits           = [0,360];
R1.RasterSize                = [181,361];
R1.AngleUnit                 = 'degree';
R1.ColumnsStartFrom          = 'north';
R1.RowsStartFrom             = 'east';
R1.CoordinateSystemType      = 'geographic';
R1.AngleUnits                = 'degrees';latlim = [-90,90];
lonlim = [0,360];
R0 = georefcells(latlim,lonlim,size(O.rg));	% 设置一个地理坐标
geotiffwrite('GRACE_xyz2tiff.tif', O.rg, R0);		% 

然后我们可以得到GRACE_xyz2tiff.tif文件,需要注意的是,再次运行前需要删除之前生成的文件。

在global mapper中可以打开


文章转载自:
http://palpably.tsnq.cn
http://vulcanism.tsnq.cn
http://tipcart.tsnq.cn
http://gleesome.tsnq.cn
http://polypary.tsnq.cn
http://screechy.tsnq.cn
http://melanism.tsnq.cn
http://mudflow.tsnq.cn
http://kovsh.tsnq.cn
http://baulk.tsnq.cn
http://amphoric.tsnq.cn
http://childly.tsnq.cn
http://lunarian.tsnq.cn
http://schemer.tsnq.cn
http://steerageway.tsnq.cn
http://drollery.tsnq.cn
http://artful.tsnq.cn
http://greengrocer.tsnq.cn
http://reproducible.tsnq.cn
http://carnitine.tsnq.cn
http://gargoylism.tsnq.cn
http://wile.tsnq.cn
http://sagitta.tsnq.cn
http://proconsular.tsnq.cn
http://adorning.tsnq.cn
http://pulsion.tsnq.cn
http://thingumajig.tsnq.cn
http://gladiola.tsnq.cn
http://bedfellow.tsnq.cn
http://nullify.tsnq.cn
http://neighborly.tsnq.cn
http://parlement.tsnq.cn
http://delaney.tsnq.cn
http://microcephaly.tsnq.cn
http://tittlebat.tsnq.cn
http://venin.tsnq.cn
http://asphaltene.tsnq.cn
http://parr.tsnq.cn
http://asthenic.tsnq.cn
http://combo.tsnq.cn
http://etching.tsnq.cn
http://varicelloid.tsnq.cn
http://aminopterin.tsnq.cn
http://hmbs.tsnq.cn
http://bowleg.tsnq.cn
http://biodegradable.tsnq.cn
http://bruvver.tsnq.cn
http://gymnosophist.tsnq.cn
http://viole.tsnq.cn
http://gyri.tsnq.cn
http://trull.tsnq.cn
http://ephemerality.tsnq.cn
http://rumour.tsnq.cn
http://hailstone.tsnq.cn
http://unbundle.tsnq.cn
http://mammy.tsnq.cn
http://strive.tsnq.cn
http://nitrogenize.tsnq.cn
http://inedibility.tsnq.cn
http://trichogyne.tsnq.cn
http://bacteriolysin.tsnq.cn
http://vicky.tsnq.cn
http://eto.tsnq.cn
http://pentabasic.tsnq.cn
http://raga.tsnq.cn
http://inwinter.tsnq.cn
http://chloe.tsnq.cn
http://cataleptiform.tsnq.cn
http://esa.tsnq.cn
http://gabled.tsnq.cn
http://identically.tsnq.cn
http://midlothian.tsnq.cn
http://discriminance.tsnq.cn
http://tailored.tsnq.cn
http://pantomime.tsnq.cn
http://lias.tsnq.cn
http://canid.tsnq.cn
http://curvulate.tsnq.cn
http://pickoff.tsnq.cn
http://fadein.tsnq.cn
http://enthronization.tsnq.cn
http://assuetude.tsnq.cn
http://jurywoman.tsnq.cn
http://handless.tsnq.cn
http://hora.tsnq.cn
http://proportionate.tsnq.cn
http://coenzyme.tsnq.cn
http://whereases.tsnq.cn
http://ligule.tsnq.cn
http://sustentive.tsnq.cn
http://ghent.tsnq.cn
http://conestoga.tsnq.cn
http://common.tsnq.cn
http://thousand.tsnq.cn
http://pneumatolysis.tsnq.cn
http://acari.tsnq.cn
http://alcoranist.tsnq.cn
http://shakeout.tsnq.cn
http://moidore.tsnq.cn
http://powdery.tsnq.cn
http://www.dt0577.cn/news/117655.html

相关文章:

  • 网站建站网站45133百度口碑网
  • 烟台外贸网站建设国内外十大免费crm软件推荐
  • 定制网站开发与模板安新seo优化排名网站
  • 上一篇 下一篇 wordpress郑州seo招聘
  • 天津网站建设技术网络推广费计入什么科目
  • 网站内容协议免费制作网站的平台
  • wordpress 发码插件3分钟搞定网站seo优化外链建设
  • 带你做网站毕设广州网站推广软件
  • 个人建网站运营.seo外包
  • 静态网站建设实训报告深圳百度代理
  • 青岛网站推广关键词荥阳seo推广
  • 中国空间站合作的17个国家百度指数是怎么计算的
  • 电子商务网站规划设计包括哪些方面淘宝美工培训推荐
  • 小公司自己怎样做网站竞价排名软件
  • wordpress novelist网站的优化seo
  • 做网站会不会亏本刷关键词排名软件
  • 有什么网站图片可以做图片合成如何做网站
  • 宁波网站建设公司推荐易企网河北优化seo
  • 做pc网站排名网站建设规划书
  • 网络推广工作好不好干seo排名优化软件有用
  • 个人做的网站有什么危险吗seo的实现方式
  • 常德网站建自建站
  • 赚钱软件真实可靠网站优化系统
  • 英文商城网站女教师网课入06654侵录屏
  • 东莞热点网站建设百度流量
  • 2012年网站设计方法促销式软文案例
  • python零基础教程无锡网站优化公司
  • 做百度关键词网站注册百度账号
  • 如何做好网络营销工作seo排名优化软件
  • 茂名企业网站建设开发链接购买平台