美文网首页@EZ翻译计划
EZ | Image information and metad

EZ | Image information and metad

作者: 杜若飞er | 来源:发表于2019-07-27 15:02 被阅读0次

Image\ information\ and\ metadata


图像信息以及元数据

想要在代码编辑器中得到图像波段和其他属性信息,可以使用print()函数,然后信息就会显示在控制台上。也可以通过完全coding的方式访问这些信息。例如,下面的例子就显示了如何访问有关波段、投影法以及其他元数据:

// Load an image.
var image = ee.Image('LANDSAT/LC08/C01/T1/LC08_044034_20140318');

// Get information about the bands as a list.
var bandNames = image.bandNames();
print('Band names: ', bandNames); // ee.List of band names

// Get projection information from band 1.
var b1proj = image.select('B1').projection();
print('Band 1 projection: ', b1proj); // ee.Projection object

// Get scale (in meters) information from band 1.
var b1scale = image.select('B1').projection().nominalScale();
print('Band 1 scale: ', b1scale); // ee.Number

// Note that different bands can have different projections and scale.
var b8scale = image.select('B8').projection().nominalScale();
print('Band 8 scale: ', b8scale); // ee.Number

// Get a list of all metadata properties.
var properties = image.propertyNames();
print('Metadata properties: ', properties); // ee.List of metadata properties

// Get a specific metadata property.
var cloudiness = image.get('CLOUD_COVER');
print('CLOUD_COVER: ', cloudiness); // ee.Number

// Get the timestamp and convert it to a date.
var date = ee.Date(image.get('system:time_start'));
print('Timestamp: ', date); // ee.Date

注意,这三个查询结果都是服务器端端对象,这就意味着当对它们使用print()时,得到的信息会从服务端传回客户端,然后,代码编辑器才会以一种对人类友好的方式进行显示。


\tag{此页面最后更新于2019年3月18日}

相关文章

  • EZ | Image information and metad

    图像信息以及元数据 想要在代码编辑器中得到图像波段和其他属性信息,可以使用print()函数,然后信息就会显示在控...

  • EZ | Image Visualization | GEE -

    图像可视化 前面的文档中已经介绍了如何使用map.addLayer()函数对image做可视化,如果你不加任何参数...

  • 10.9 Utility - Image Info 图片信息

    Access information about an image.访问图片的信息。 输入口Image 图片The...

  • ARFrame

    A video image, with position-tracking information, captur...

  • Talk less think more and do far

    The image is taken during the break time of Information R...

  • EZ | Image Overview | GEE - 07

    所谓Image 就像Get Started文档中所言,GEE中的光栅数据被表示为Image对象,Image们有一个...

  • Android串口操作库:EZ-SerialPort

    EZ-SerialPort EZ-SerialPort是基于Google android-serialport-a...

  • EZ come EZ go

    昨晚微信上有人问: “喜欢上一个什么样的人会很累?” 我想了想,第一个出现在脑海里的词就是「忽冷忽热」,也就是所谓...

  • EZ?是EZ吗?

  • EZ

    犀利的笔尖,针尖,书影,EZ,也可以中心有梦,在由白和黑组成的色彩背景中,愿它代表这个设计工作室的境界。没有压力,...

网友评论

    本文标题:EZ | Image information and metad

    本文链接:https://www.haomeiwen.com/subject/dnkerctx.html