公告:所有在
2025 年 4 月 15 日之前注册使用 Earth Engine 的非商业项目都必须
验证是否符合非商业性质的资格条件,才能继续使用 Earth Engine。
简介
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
欢迎学习 Google Earth Engine 教程,了解如何使用全球地表水 (GSW) 数据集。该数据集在 Nature 信函
High-resolution mapping of global surface water and its long-term changes 中进行了说明。
本教程提供了一些示例,说明如何使用 Earth Engine 直观呈现 GSW 数据集中提供的数据层,并展示了一些典型的可视化效果和分析结果。
本教程分为多个部分。在每个部分中,代码将通过简短的代码段和说明性文字逐步构建。在每个部分结束时,系统会显示完整的有效脚本。
参考
受众群体
本教程假定您熟悉 Earth Engine 代码编辑器文档页面中介绍的概念,并且已完成 Earth Engine API 教程。
许可和署名
本教程中介绍的 GSW 数据是在 Copernicus 计划下生成的,免费提供,使用不受限制。如需了解完整的许可信息,请参阅《哥白尼计划法规》。
如果您在已发布的地图中将数据用作图层,请添加以下出处信息文字:
获取 Earth Engine 访问权限
您可以免费使用 Earth Engine,但需要注册。如需获取访问权限,请填写我们的 Earth Engine 注册表单,申请评估者账号。获得访问权限的用户将在几个工作日内收到一封电子邮件,其中包含进一步说明。
熟悉代码编辑器后,
开始学习本教程!
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eThis tutorial demonstrates how to use Google Earth Engine to work with the Global Surface Water (GSW) dataset, enabling visualization and analysis of surface water data.\u003c/p\u003e\n"],["\u003cp\u003eThe tutorial is structured in sections with gradual code snippets and explanations, culminating in complete working scripts for each section.\u003c/p\u003e\n"],["\u003cp\u003eUsers are expected to have prior experience with the Earth Engine Code Editor and API, as outlined in the prerequisites.\u003c/p\u003e\n"],["\u003cp\u003eThe GSW dataset, produced under the Copernicus Programme, is freely available with proper attribution to "Source: EC JRC/Google" when used in published maps.\u003c/p\u003e\n"],["\u003cp\u003eAccess to Earth Engine requires a free signup process through the provided form for an Evaluator account.\u003c/p\u003e\n"]]],["This tutorial demonstrates using Google Earth Engine to work with the global surface water (GSW) dataset. It provides examples for visualizing GSW data layers, and performing analyses, using code snippets and explanations in sections. The GSW data, created under the Copernicus Programme, is freely available. Users are instructed to use the Earth Engine Code Editor. Attribution \"Source: EC JRC/Google\" is required for published maps using the data. Access requires signup via the Earth Engine form.\n"],null,["# Introduction\n\nWelcome to the Google Earth Engine tutorial for working with the global surface water (GSW)\ndataset. This dataset is described in the Nature letter\n[High-resolution mapping of global surface water and its long-term changes](https://www.nature.com/articles/nature20584.epdf?author_access_token=C5JSvooRop4jWxyp_qRPLNRgN0jAjWel9jnR3ZoTv0MqBuzCNsmw_DFxRd7sX93nfPzcbm_xTiPLlZMl7XrUhadm6EiT9cGdDNgn1s6EWrPWH3IeadLUjApplBoaS6xH).\nThis tutorial provides examples of how to use Earth Engine to visualize data layers\navailable in the GSW dataset, and presents some typical visualizations and analyses.\n\nThe tutorial is broken up into sections. Within each section, code will be built up\ngradually with short code snippets and explanatory text. At the end of each section, the\ncomplete working script will be presented.\n\nReferences\n----------\n\n- [High-resolution mapping of global surface water and its\n long-term changes](http://rdcu.be/nDd2) (online viewer)\n- [Get water governance on the global agenda](http://www.nature.com/news/get-water-governance-on-the-global-agenda-1.21104) (Nature editorial)\n- [Global Surface Water Explorer](https://global-surface-water.appspot.com/) (web application)\n- [Data Users Guide (v2)](https://storage.googleapis.com/global-surface-water/downloads_ancillary/DataUsersGuidev2.pdf)\n\nAudience\n--------\n\nThis tutorial assumes you are familiar with concepts presented in the\n[Earth Engine Code Editor](/earth-engine/guides/playground)\ndocumentation pages and have worked through the [Earth Engine API tutorial](https://developers.google.com/earth-engine/tutorial_api_01).\n\nLicense and Attribution\n-----------------------\n\nThe GSW data described in this tutorial were produced under the\n[Copernicus Programme](http://www.copernicus.eu/) and\nare provided free of charge, without restriction of use. For the full license information\nsee the [Copernicus Regulation.](http://www.copernicus.eu/main/data-access/)\n\nIf you are using the data as a layer in a published map, please include the following\nattribution text:\n| **Attribution text:** \"Source: EC JRC/Google\"\n\nGet access to Earth Engine\n--------------------------\n\nAccess to Earth Engine is free, but requires signup. To get access, please fill out our\n[Earth Engine signup form](https://earthengine.google.com/signup)\nto apply for an Evaluator account. Those granted access will receive an email within\na few business days with further instructions.\n\nOnce you're familiar with the Code Editor, [get started on the tutorial](/earth-engine/tutorials/tutorial_global_surface_water_02)!"]]