图像特征 可视化_使用卫星图像可视化建筑区域

图像特征 可视化

地理可视化/菲律宾/遥感 (GEOVISUALIZATION / PHILIPPINES / REMOTE-SENSING)

Big data is incredible! The way Big Data manages to bring sciences and business domains to new levels is almost sort of magical. It allows us to tap into a variety of avenues to access the information we normally do not access in order to gain fresh insights.

大数据令人难以置信! 大数据设法将科学和商业领域提升到新的水平几乎是一种神奇的方法。 它使我们能够利用各种途径来访问我们通常不访问的信息,以获得新的见解。

Satellite images are an amazing unconventional source to tap into for these fresh insights. Urban planners, environmentalists, and geospatial data scientists usually turn to satellite images for a big picture perspective and find insights from this exercise that brings their intended solutions to a whole new level.

卫星图像是令人惊叹的非常规资源,可用于获取这些新见解。 城市规划人员,环境保护主义者和地理空间数据科学家通常将卫星图像用于全局视角,并从此练习中找到见解,从而将其预期的解决方案提高到一个全新的水平。

Crash Course in Satellite Image Analysis a.k.a. Remote Sensing

卫星图像分析又名遥感速成班

If you ever came across the term “remote-sensing” in online articles, more likely this refers to the process of observing the earth using satellites. They’re called as such because they have the ability to make measurements remotely.

如果您在在线文章中遇到过“遥感”一词,则更可能是指使用卫星观测地球的过程。 之所以这样称呼它们是因为它们具有远程进行测量的能力。

What do these remote-sensing instruments sense? The short answer is radiation. To be more technical, these instruments sense electromagnetic radiation.

这些遥感仪器有什么意义? 简短的答案是辐射。 从技术上讲,这些仪器可感应电磁辐射。

These electromagnetic radiations vary in wavelength and frequencies and along this spectrum, there is a tiny portion our eyes can see known as the “visible spectrum”.

这些电磁辐射的波长和频率各不相同,并且沿着该光谱,我们的眼睛可以看到的一小部分称为“可见光谱”。

Image for post
Electromagnetic Spectrum. From Bob — EDU Astronomy
电磁频谱。 来自Bob — EDU天文学

This is where satellites come into play. Satellites that are orbiting the earth have lenses that can not only detect visible light but infrared wavelengths (nearest one to the visible spectrum) and microwaves.

这就是卫星发挥作用的地方。 环绕地球运行的卫星具有不仅可以检测可见光,而且可以检测红外波长( 最接近可见光谱的波长 )和微波的透镜。

When the light coming from the sun reaches the surface of the earth, every object reflects, absorbs, or transmits this energy differently. For example, green plants absorb all colors but reflect the green color. This is why green is the one visible to us when looking at plants. In some cases, the same type of plant may not be equally hydrated, and while this tiny difference will not be seen by the naked eye, the way these two plants reflect light will be different.

当来自太阳的光到达地球表面时,每个物体都会以不同的方式反射,吸收或传输该能量。 例如,绿色植物吸收所有颜色但反射绿色。 这就是为什么绿色是我们看植物时可见的一种原因。 在某些情况下,同一种植物的水合程度可能不同,虽然肉眼看不到这种微小差异,但两种植物反射光的方式却有所不同。

And as you know it, not all light reflected is visible.

如您所知,并不是所有反射的光都是可见的。

Because surfaces reflect light differently, satellites have been used in studying vegetation, flood-prone areas and even analyzing the built-up areas of a place across the years.

由于表面反射光线的方式不同,多年来,人造卫星已用于研究植被,易发生洪水的地区,甚至分析某个地方的建筑面积。

While anyone can go and look up and download satellite images, they may not contain the data coming from the reflection which produces so many insights at once.

尽管任何人都可以查找并下载卫星图像,但它们可能不包含来自反射的数据,而反射会立即产生很多洞察力。

This is the data that we’re after. In the visualization that we will be doing later, the difference in color represents the difference in radiation being reflected. Since this is a multitemporal visualization (multiple time periods), the colors will represent surface of the built-up area across different time series for a place.

这是我们需要的数据。 在我们稍后将要进行的可视化中,颜色的差异表示所反射的辐射的差异。 由于这是一个多时间可视化( 多个时间段 ),因此颜色将代表一个地点在不同时间序列上的建筑区域的表面。

Preliminaries

初赛

To continue with this tutorial, make sure the following is done first:

要继续本教程,请确保首先完成以下操作:

  1. Create an account with Google Earth Engine. This is free and will be authenticated in your Jupyter Notebook.

    使用Google Earth Engine创建一个帐户。 这是免费的,将在您的Jupyter Notebook中进行身份验证。

  2. Install Google Maps (pip install geemap) and Earth Engine (pip install ee).

    安装Google Maps(pip install geemap )和Earth Engine(pip install ee )。

  3. Initialize earth engine using ee.Initialize()

    使用ee.Initialize()初始化地球引擎

Dataset

数据集

For this exercise, we will access the “GHSL: Global Human Settlement Layers” dataset from the Google Earth Engine database.

在本练习中,我们将从Google Earth Engine数据库访问“ GHSL:全球人类住区图层”数据集。

The Global Human Settlement (GHS) framework produces global spatial information about the human presence on the planet over time. This includes physical settlement so this captures built-up area over time.

全球人类住区 (GHS)框架会随着时间的推移生成有关地球上人类活动的全球空间信息。 这包括物理沉降,以便随着时间的推移捕获建筑面积。

Let’s Code!

让我们编码!

#Preliminaries
import geemap
import ee#After importing, it is important to initialize this.
ee.Initialize()

Initalize the folium map:

初始化大叶贴图:

Map = geemap.Map(center=[15.222871,120.574440], zoom=7)
Map
Image for post

Load the dataset and store it as an object.

加载数据集并将其存储为对象。

#Note that ee.Image and ee.ImageCollection can both access datasets but you need to check which one is applicable for your intended datasetimage = ee.Image('JRC/GHSL/P2016/BUILT_LDSMT_GLOBE_V1')

Select “built” band as we want the built-up area.

选择“内置”频段,因为我们需要内置区域。

builtUp = image.select('built')

Define the Vis Parameters.

定义可见参数。

visParams = {
'min': 1.0,
'max': 6.0,
'palette': ['0c1d60', '000000', '448564', '70daa4', '83ffbf', 'ffffff'],
}

For this to make sense, let’s refer to what these min and max refer to:

为了使这有意义,让我们参考这些最小和最大所指:

Image for post
Taken from Earth Engine Data Catalog
摘自地球引擎数据目录

The min and max refer to the value column in the built Class Table above. For best viewing, you should choose min=1 and max=6. You do not want to leave out the water and land values as your visualization may not have a legible form for some readers that are not experts in reading maps.

最小值和最大值是指上面构建的类表中的value列。 为了获得最佳观看效果,您应该选择min = 1和max = 6。 您不希望遗漏水和土地的价值,因为对于某些不是阅读地图专家的读者来说,可视化可能没有清晰的形式。

The palette simply assigns a color to the class value. The suggested colors are seen in the built Class table. You can use hex codes but leave the “#’ out.

调色板只是将颜色分配给类值。 建议的颜色显示在内置的“类”表中。 您可以使用十六进制代码,但不要使用“#”。

#.addLayer method adds this on top of your initialized Map above
Map.addLayer(builtUp, visParams, 'Built-Up Multitemporal')

This is how it will appear for the suggested colors.

这就是建议颜色的显示方式。

Image for post
Examining the Built-up Land Areas for the Philippines
检查菲律宾的已建成土地面积
Image for post
Legend for the suggested colors
说明颜色的图例

Alternatively, you can use color names directly for the palette. Make sure to arrange it so the first color matches Value 1 for the built Class table.

或者,您可以直接将颜色名称用于调色板。 确保对其进行排列,以使第一种颜色与构建的Class表的Value 1相匹配。

visParams = {
'min': 1.0,
'max': 6.0,
'palette': ['0c1d60', 'black', 'yellow', 'green', 'blue', 'white'],
}

Notice you can use the inspector function to check the value of a point:

注意,您可以使用检查器功能检查点的值:

Image for post
Using color names for the palette. Use Inspector to show the value of the point
使用调色板的颜色名称。 使用检查器显示该点的值

So from this exercise, you can see that most built-up areas are found on the capital of the Philippines and areas near it like Region III and Region IV-A. And you can likewise trace a pattern and answer the question “Where does development occur for a particular period?”.

因此,通过此练习,您可以看到在菲律宾首都及其附近地区,如第三区和第四区-A区,发现了大多数建成区。 同样,您可以跟踪模式并回答“在特定时期内哪里发生发展?”的问题。

There are other modifications that we can do for this such as limiting the visualization to simply one city or province.

我们可以为此进行其他修改,例如将可视化范围限制为一个城市或省份。

With Google Earth Engine, you can access other datasets as well.

使用Google Earth Engine,您还可以访问其他数据集。

Feel free to explore the other datasets. Happy coding!

随意探索其他数据集。 编码愉快!

Click here to view the Jupyter Notebook for this one on Github.

单击此处 ,在Github上查看此书的Jupyter笔记本。

翻译自: https://towardsdatascience.com/visualizing-built-up-areas-using-satellite-images-18d43f34f0b3

图像特征 可视化

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/389807.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

ELK入门01—Elasticsearch安装

1. 安装 首先从官网下载安装包此处我们选择2.4.6这个版本,然后下载tar压缩包下载以后直接解压,就算安装完成了 tar zxvf elasticsearch-2.4.6.tar.gz 2. 配置 编辑elasticsearch配置文件 # 进入安装目录 cd elasticsearch-2.4.6 # 编辑配置文件 vi ./config/elastic…

375. 猜数字大小 II

375. 猜数字大小 II 我们正在玩一个猜数游戏,游戏规则如下: 我从 1 到 n 之间选择一个数字。你来猜我选了哪个数字。如果你猜到正确的数字,就会 赢得游戏 。如果你猜错了,那么我会告诉你,我选的数字比你的 更大或者更…

hdu_2048 错排问题

错排问题本质上就是一个动态规划问题,其状态转移方程为: 记d[n]为n个人错排情况的总数。 那么策略可以描述为:分析第n个人错排的可能情况: 1)前n-1个人满足错排的情况,那么第n个人加入后还要错排意味着第n个…

海量数据寻找最频繁的数据_在数据中寻找什么

海量数据寻找最频繁的数据Some activities are instinctive. A baby doesn’t need to be taught how to suckle. Most people can use an escalator, operate an elevator, and open a door instinctively. The same isn’t true of playing a guitar, driving a car, or anal…

OSChina 周四乱弹 —— 要成立复仇者联盟了,来报名

2019独角兽企业重金招聘Python工程师标准>>> Osc乱弹歌单(2018)请戳(这里) 【今日歌曲】 Devoes :分享吴若希的单曲《越难越爱 (Love Is Not Easy / TVB剧集《使徒行者》片尾曲)》: 《越难越爱 (Love Is No…

2023. 连接后等于目标字符串的字符串对

2023. 连接后等于目标字符串的字符串对 给你一个 数字 字符串数组 nums 和一个 数字 字符串 target ,请你返回 nums[i] nums[j] (两个字符串连接)结果等于 target 的下标 (i, j) (需满足 i ! j)的数目。 示例 1&…

webapi 找到了与请求匹配的多个操作(ajax报500,4的错误)

1、ajax报500,4的错误,然而多次验证自己的后台方法没错。然后跟踪到如下图的错误信息! 2、因为两个函数都是无参的,返回值也一样。如下图 3,我给第一个函数加了一个参数后,就不报错了,所以我想,…

可视化 nlp_使用nlp可视化尤利西斯

可视化 nlpMy data science experience has, thus far, been focused on natural language processing (NLP), and the following post is neither the first nor last which will include the novel Ulysses, by James Joyce, as its primary target for NLP and literary elu…

区分'方法'和'函数'

区分方法: 1在类中的叫方法,在类外面的叫函数 2在名字前加 对象名. 的叫方法, 在名字前加 类名. 或 只写名字的 叫函数 通过代码进行区分: 1 from types import MethodType,FunctionType 2 def check(arg): 3 if isinstance(arg,MethodType)#判断第一个参数是否是第二个参数…

520. 检测大写字母

520. 检测大写字母 我们定义,在以下情况时,单词的大写用法是正确的: 全部字母都是大写,比如 “USA” 。单词中所有字母都不是大写,比如 “leetcode” 。如果单词不只含有一个字母,只有首字母大写&#xf…

Java 打包 FatJar 方法小结

在函数计算(Aliyun FC)中发布一个 Java 函数,往往需要将函数打包成一个 all-in-one 的 zip 包或者 jar 包。Java 中这种打包 all-in-one 的技术常称之为 Fatjar 技术。本文小结一下 Java 里打包 FatJar 的若干种方法。 什么是 FatJar FatJar 又称作 uber-Jar&#x…

常见问题及解决方案(前端篇)

一、jquery validate 默认校验规则序号 规则 描述1 requiredtrue 必须输入的字段。2 remote "check.php" 使用 ajax 方法调用 check.php 验证输入值。3 emailtrue 必须输入正确格式的电子邮件。4 urltrue 必须输入正确格式的网址。5 datetrue 必须输入正确格式的日期…

本地搜索文件太慢怎么办?用Everything搜索秒出结果(附安装包)

每次用电脑本地的搜索都慢的一批,后来发现了一个搜索利器 基本上搜索任何文件都不用等待。 并且页面非常简洁,也没有任何广告,用起来非常舒服。 软件官网如下: voidtools 官网提供三个版本,用起来差别不大。 网盘链…

2024. 考试的最大困扰度

2024. 考试的最大困扰度 一位老师正在出一场由 n 道判断题构成的考试,每道题的答案为 true (用 ‘T’ 表示)或者 false (用 ‘F’ 表示)。老师想增加学生对自己做出答案的不确定性,方法是 最大化 有 连续相…

小程序入口传参:关于带参数的小程序扫码进入的方法

1.使用场景 1.医院场景:比如每个医生一个id,通过带参数二维码,扫码二维码就直接进入小程序医生页面 2.餐厅场景:比如每个菜一个二维码,通过扫码这个菜的二维码,进入小程序后,可以直接点这道菜&a…

python的power bi转换基础

I’ve been having a great time playing around with Power BI, one of the most incredible things in the tool is the array of possibilities you have to transform your data.我在玩Power BI方面玩得很开心,该工具中最令人难以置信的事情之一就是您必须转换数…

感想3-对于业务逻辑复用、模板复用的一些思考(未完)

内容概览: 业务逻辑复用的目的基于现有场景,如何抽象出初步可复用逻辑复用业务逻辑会不会产生过度设计的问题业务逻辑复用的目的 我对于业务逻辑复用的理解是忽略实际业务内容,从交互流程、交互逻辑的角度去归纳、总结,提出通用的…

Git的一些总结

.git 目录结构 |── HEAD|── branches // 分支|── config // 配置|── description // 项目的描述|── hooks // 钩子| |── pre-commit.sample| |── pre-push.sample| └── ...|── info| └── exclude // 类似.gitignore 用于排除文件|── objects // 存储了…

2025. 分割数组的最多方案数

2025. 分割数组的最多方案数 给你一个下标从 0 开始且长度为 n 的整数数组 nums 。分割 数组 nums 的方案数定义为符合以下两个条件的 pivot 数目&#xff1a; 1 < pivot < nnums[0] nums[1] … nums[pivot - 1] nums[pivot] nums[pivot 1] … nums[n -1] 同时…

您是六个主要数据角色中的哪一个

When you were growing up, did you ever play the name game? The modern data organization has something similar, and it’s called the “Bad Data Blame Game.” Unlike the name game, however, the Bad Data Blame Game is played when data downtime strikes and no…