{ "cells": [ { "cell_type": "code", "execution_count": 13, "metadata": {}, "outputs": [], "source": [ "from io import StringIO, BytesIO\n", "import kml2geojson\n", "import requests\n", "import geopandas as gpd\n", "\n", "data = requests.get(\"https://drive.google.com/uc?id=1bN8lkSQkGZcSmZPLF8jm-AWTRA7FsEcr\")" ] }, { "cell_type": "code", "execution_count": 14, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", " | geometry | \n", "name | \n", "styleUrl | \n", "description | \n", "
---|---|---|---|---|
0 | \n", "POLYGON Z ((73.42161 21.55846 0, 73.42216 21.5... | \n", "Pingot-549 10=00 Hq Gree | \n", "#inline1 | \n", "NaN | \n", "
1 | \n", "POINT Z (73.41723 21.56071 0) | \n", "21°33'38.54\"N 73°25'2.03\"E | \n", "#0_0 | \n", "<style type='text/css'>*{font-family:Verdana,A... | \n", "
2 | \n", "POINT Z (73.41938 21.55855 0) | \n", "21°33'30.79\"N 73°25'9.76\"E | \n", "#0_0 | \n", "<style type='text/css'>*{font-family:Verdana,A... | \n", "
3 | \n", "POINT Z (73.42016 21.55905 0) | \n", "21°33'32.57\"N 73°25'12.58\"E | \n", "#0_0 | \n", "<style type='text/css'>*{font-family:Verdana,A... | \n", "
4 | \n", "POINT Z (73.42024 21.55862 0) | \n", "21°33'31.02\"N 73°25'12.85\"E | \n", "#0_0 | \n", "<style type='text/css'>*{font-family:Verdana,A... | \n", "
5 | \n", "POINT Z (73.4216 21.55846 0) | \n", "21°33'30.46\"N 73°25'17.77\"E | \n", "#0_0 | \n", "<style type='text/css'>*{font-family:Verdana,A... | \n", "
6 | \n", "POINT Z (73.42217 21.55951 0) | \n", "21°33'34.25\"N 73°25'19.82\"E | \n", "#0_0 | \n", "<style type='text/css'>*{font-family:Verdana,A... | \n", "
7 | \n", "POINT Z (73.42244 21.56044 0) | \n", "21°33'37.59\"N 73°25'20.79\"E | \n", "#0_0 | \n", "<style type='text/css'>*{font-family:Verdana,A... | \n", "
8 | \n", "POINT Z (73.42052 21.56026 0) | \n", "21°33'36.92\"N 73°25'13.86\"E | \n", "#0_0 | \n", "<style type='text/css'>*{font-family:Verdana,A... | \n", "
9 | \n", "POINT Z (73.41944 21.56159 0) | \n", "21°33'41.72\"N 73°25'10.00\"E | \n", "#0_0 | \n", "<style type='text/css'>*{font-family:Verdana,A... | \n", "
Sentinel-2 is a wide-swath, high-resolution, multi-spectral\n", "imaging mission supporting Copernicus Land Monitoring studies,\n", "including the monitoring of vegetation, soil and water cover,\n", "as well as observation of inland waterways and coastal areas.
The Sentinel-2 L2 data are downloaded from scihub. They were\n", "computed by running sen2cor. WARNING: ESA did not produce L2 data\n", "for all L1 assets, and earlier L2 coverage is not global.
The assets contain\n", "12 UINT16 spectral bands representing SR scaled by 10000 (unlike in L1 data,\n", "there is no B10). There are also several more L2-specific bands (see band\n", "list for details). See the\n", "Sentinel-2 User Handbook\n", "for details. In addition, three QA bands are present where one\n", "(QA60) is a bitmask band with cloud mask information. For more\n", "details, see the full explanation of how cloud masks are computed.
EE asset ids for Sentinel-2 L2 assets have the following format:\n", "COPERNICUS/S2_SR/20151128T002653_20151128T102149_T56MNN. Here the\n", "first numeric part represents the sensing date and time, the\n", "second numeric part represents the product generation date and\n", "time, and the final 6-character string is a unique granule identifier\n", "indicating its UTM grid reference (see MGRS).
Clouds can be removed by using\n", "COPERNICUS/S2_CLOUD_PROBABILITY.\n", "See\n", "this tutorial\n", "explaining how to apply the cloud mask.
For more details on Sentinel-2 radiometric resolution, see this page.
Provider: European Union/ESA/Copernicus
Revisit Interval
\n",
" 5 days\n",
"
Bands
Name | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
B1 | Aerosols | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
B2 | Blue | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
B3 | Green | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
B4 | Red | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
B5 | Red Edge 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
B6 | Red Edge 2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
B7 | Red Edge 3 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
B8 | NIR | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
B8A | Red Edge 4 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
B9 | Water vapor | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
B11 | SWIR 1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
B12 | SWIR 2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
AOT | Aerosol Optical Thickness | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
WVP | Water Vapor Pressure. The height the water would occupy if the vapor were condensed into\n", "liquid and spread evenly across the column. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SCL | Scene Classification Map (The "No Data" value of 0 is masked out) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TCI_R | True Color Image, Red channel | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TCI_G | True Color Image, Green channel | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TCI_B | True Color Image, Blue channel | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
MSK_CLDPRB | Cloud Probability Map (missing in some products) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
MSK_SNWPRB | Snow Probability Map (missing in some products) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
QA10 | Always empty | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
QA20 | Always empty | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
QA60 | Cloud mask | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
\n",
" Bitmask for QA60\n",
"
|
Image Properties
Name | Type | Description |
---|---|---|
AOT_RETRIEVAL_ACCURACY | DOUBLE | Accuracy of Aerosol Optical thickness model |
CLOUDY_PIXEL_PERCENTAGE | DOUBLE | Granule-specific cloudy pixel percentage taken from the original metadata |
CLOUD_COVERAGE_ASSESSMENT | DOUBLE | Cloudy pixel percentage for the whole archive that\n", "contains this granule. Taken from the original metadata |
CLOUDY_SHADOW_PERCENTAGE | DOUBLE | Percentage of pixels classified as cloud shadow |
DARK_FEATURES_PERCENTAGE | DOUBLE | Percentage of pixels classified as dark features or shadows |
DATASTRIP_ID | STRING | Unique identifier of the datastrip Product Data Item (PDI) |
DATATAKE_IDENTIFIER | STRING | Uniquely identifies a given Datatake. The ID contains\n", "the Sentinel-2 satellite, start date and time, absolute orbit\n", "number, and processing baseline. |
DATATAKE_TYPE | STRING | MSI operation mode |
DEGRADED_MSI_DATA_PERCENTAGE | DOUBLE | Percentage of degraded MSI and ancillary data |
FORMAT_CORRECTNESS | STRING | Synthesis of the On-Line Quality Control (OLQC) checks\n", "performed at granule (Product_Syntax) and datastrip (Product\n", "Syntax and DS_Consistency) levels |
GENERAL_QUALITY | STRING | Synthesis of the OLQC checks performed at the datastrip level (Relative_Orbit_Number) |
GENERATION_TIME | DOUBLE | Product generation time |
GEOMETRIC_QUALITY | STRING | Synthesis of the OLQC checks performed at the datastrip level (Attitude_Quality_Indicator) |
GRANULE_ID | STRING | Unique identifier of the granule PDI (PDI_ID) |
HIGH_PROBA_CLOUDS_PERCENTAGE | DOUBLE | Percentage of pixels classified as high probability clouds |
MEAN_INCIDENCE_AZIMUTH_ANGLE_B1 | DOUBLE | Mean value containing viewing incidence azimuth angle average for band B1 and for all detectors |
MEAN_INCIDENCE_AZIMUTH_ANGLE_B2 | DOUBLE | Mean value containing viewing incidence azimuth angle average for band B2 and for all detectors |
MEAN_INCIDENCE_AZIMUTH_ANGLE_B3 | DOUBLE | Mean value containing viewing incidence azimuth angle average for band B3 and for all detectors |
MEAN_INCIDENCE_AZIMUTH_ANGLE_B4 | DOUBLE | Mean value containing viewing incidence azimuth angle average for band B4 and for all detectors |
MEAN_INCIDENCE_AZIMUTH_ANGLE_B5 | DOUBLE | Mean value containing viewing incidence azimuth angle average for band B5 and for all detectors |
MEAN_INCIDENCE_AZIMUTH_ANGLE_B6 | DOUBLE | Mean value containing viewing incidence azimuth angle average for band B6 and for all detectors |
MEAN_INCIDENCE_AZIMUTH_ANGLE_B7 | DOUBLE | Mean value containing viewing incidence azimuth angle average for band B7 and for all detectors |
MEAN_INCIDENCE_AZIMUTH_ANGLE_B8 | DOUBLE | Mean value containing viewing incidence azimuth angle average for band B8 and for all detectors |
MEAN_INCIDENCE_AZIMUTH_ANGLE_B8A | DOUBLE | Mean value containing viewing incidence azimuth angle average for band B8a and for all detectors |
MEAN_INCIDENCE_AZIMUTH_ANGLE_B9 | DOUBLE | Mean value containing viewing incidence azimuth angle average for band B9 and for all detectors |
MEAN_INCIDENCE_AZIMUTH_ANGLE_B10 | DOUBLE | Mean value containing viewing incidence azimuth angle average for band B10 and for all detectors |
MEAN_INCIDENCE_AZIMUTH_ANGLE_B11 | DOUBLE | Mean value containing viewing incidence azimuth angle average for band B11 and for all detectors |
MEAN_INCIDENCE_AZIMUTH_ANGLE_B12 | DOUBLE | Mean value containing viewing incidence azimuth angle average for band B12 and for all detectors |
MEAN_INCIDENCE_ZENITH_ANGLE_B1 | DOUBLE | Mean value containing viewing incidence zenith angle average for band B1 and for all detectors |
MEAN_INCIDENCE_ZENITH_ANGLE_B2 | DOUBLE | Mean value containing viewing incidence zenith angle average for band B2 and for all detectors |
MEAN_INCIDENCE_ZENITH_ANGLE_B3 | DOUBLE | Mean value containing viewing incidence zenith angle average for band B3 and for all detectors |
MEAN_INCIDENCE_ZENITH_ANGLE_B4 | DOUBLE | Mean value containing viewing incidence zenith angle average for band B4 and for all detectors |
MEAN_INCIDENCE_ZENITH_ANGLE_B5 | DOUBLE | Mean value containing viewing incidence zenith angle average for band B5 and for all detectors |
MEAN_INCIDENCE_ZENITH_ANGLE_B6 | DOUBLE | Mean value containing viewing incidence zenith angle average for band B6 and for all detectors |
MEAN_INCIDENCE_ZENITH_ANGLE_B7 | DOUBLE | Mean value containing viewing incidence zenith angle average for band B7 and for all detectors |
MEAN_INCIDENCE_ZENITH_ANGLE_B8 | DOUBLE | Mean value containing viewing incidence zenith angle average for band B8 and for all detectors |
MEAN_INCIDENCE_ZENITH_ANGLE_B8A | DOUBLE | Mean value containing viewing incidence zenith angle average for band B8a and for all detectors |
MEAN_INCIDENCE_ZENITH_ANGLE_B9 | DOUBLE | Mean value containing viewing incidence zenith angle average for band B9 and for all detectors |
MEAN_INCIDENCE_ZENITH_ANGLE_B10 | DOUBLE | Mean value containing viewing incidence zenith angle average for band B10 and for all detectors |
MEAN_INCIDENCE_ZENITH_ANGLE_B11 | DOUBLE | Mean value containing viewing incidence zenith angle average for band B11 and for all detectors |
MEAN_INCIDENCE_ZENITH_ANGLE_B12 | DOUBLE | Mean value containing viewing incidence zenith angle average for band B12 and for all detectors |
MEAN_SOLAR_AZIMUTH_ANGLE | DOUBLE | Mean value containing sun azimuth angle average for all bands and detectors |
MEAN_SOLAR_ZENITH_ANGLE | DOUBLE | Mean value containing sun zenith angle average for all bands and detectors |
MEDIUM_PROBA_CLOUDS_PERCENTAGE | DOUBLE | Percentage of pixels classified as medium probability clouds |
MGRS_TILE | STRING | US-Military Grid Reference System (MGRS) tile |
NODATA_PIXEL_PERCENTAGE | DOUBLE | Percentage of No Data pixels |
NOT_VEGETATED_PERCENTAGE | DOUBLE | Percentage of pixels classified as non-vegetated |
PROCESSING_BASELINE | STRING | Configuration baseline used at the time of the product\n", "generation in terms of processor software version and major Ground\n", "Image Processing Parameters (GIPP) version |
PRODUCT_ID | STRING | The full id of the original Sentinel-2 product |
RADIATIVE_TRANSFER_ACCURACY | DOUBLE | Accuracy of radiative transfer model |
RADIOMETRIC_QUALITY | STRING | Based on the OLQC reports contained in the Datastrips/QI_DATA with RADIOMETRIC_QUALITY checklist name |
REFLECTANCE_CONVERSION_CORRECTION | DOUBLE | Earth-Sun distance correction factor |
SATURATED_DEFECTIVE_PIXEL_PERCENTAGE | DOUBLE | Percentage of saturated or defective pixels |
SENSING_ORBIT_DIRECTION | STRING | Imaging orbit direction |
SENSING_ORBIT_NUMBER | DOUBLE | Imaging orbit number |
SENSOR_QUALITY | STRING | Synthesis of the OLQC checks performed at granule\n", "(Missing_Lines, Corrupted_ISP, and Sensing_Time) and datastrip\n", "(Degraded_SAD and Datation_Model) levels |
SOLAR_IRRADIANCE_B1 | DOUBLE | Mean solar exoatmospheric irradiance for band B1 |
SOLAR_IRRADIANCE_B2 | DOUBLE | Mean solar exoatmospheric irradiance for band B2 |
SOLAR_IRRADIANCE_B3 | DOUBLE | Mean solar exoatmospheric irradiance for band B3 |
SOLAR_IRRADIANCE_B4 | DOUBLE | Mean solar exoatmospheric irradiance for band B4 |
SOLAR_IRRADIANCE_B5 | DOUBLE | Mean solar exoatmospheric irradiance for band B5 |
SOLAR_IRRADIANCE_B6 | DOUBLE | Mean solar exoatmospheric irradiance for band B6 |
SOLAR_IRRADIANCE_B7 | DOUBLE | Mean solar exoatmospheric irradiance for band B7 |
SOLAR_IRRADIANCE_B8 | DOUBLE | Mean solar exoatmospheric irradiance for band B8 |
SOLAR_IRRADIANCE_B8A | DOUBLE | Mean solar exoatmospheric irradiance for band B8a |
SOLAR_IRRADIANCE_B9 | DOUBLE | Mean solar exoatmospheric irradiance for band B9 |
SOLAR_IRRADIANCE_B10 | DOUBLE | Mean solar exoatmospheric irradiance for band B10 |
SOLAR_IRRADIANCE_B11 | DOUBLE | Mean solar exoatmospheric irradiance for band B11 |
SOLAR_IRRADIANCE_B12 | DOUBLE | Mean solar exoatmospheric irradiance for band B12 |
SNOW_ICE_PERCENTAGE | DOUBLE | Percentage of pixels classified as snow or ice |
SPACECRAFT_NAME | STRING | Sentinel-2 spacecraft name: Sentinel-2A, Sentinel-2B |
THIN_CIRRUS_PERCENTAGE | DOUBLE | Percentage of pixels classified as thin cirrus clouds |
UNCLASSIFIED_PERCENTAGE | DOUBLE | Percentage of unclassified pixels |
VEGETATION_PERCENTAGE | DOUBLE | Percentage of pixels classified as vegetation |
WATER_PERCENTAGE | DOUBLE | Percentage of pixels classified as water |
WATER_VAPOUR_RETRIEVAL_ACCURACY | DOUBLE | Declared accuracy of the Water Vapor model |
Terms of Use
The use of Sentinel data is governed by the Copernicus\n", "Sentinel Data Terms and Conditions.
<ee.image.Image object at 0x7fd10c62b820>" ], "text/plain": [ "