Zeel commited on
Commit
c976d1f
1 Parent(s): c39e0b3

upload version

Browse files
Bhankhara Df 11 he 5 2020-21.kml ADDED
@@ -0,0 +1,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2" xmlns:kml="http://www.opengis.net/kml/2.2" xmlns:atom="http://www.w3.org/2005/Atom">
3
+ <Document>
4
+ <name>Bhankhara Df 11 he 5 2020-21</name>
5
+ <gx:CascadingStyle kml:id="__managed_style_2ECD90080C332BDE40E2">
6
+ <Style>
7
+ <IconStyle>
8
+ <scale>1.2</scale>
9
+ <Icon>
10
+ <href>https://earth.google.com/earth/rpc/cc/icon?color=1976d2&amp;id=2000&amp;scale=4</href>
11
+ </Icon>
12
+ <hotSpot x="64" y="128" xunits="pixels" yunits="insetPixels"/>
13
+ </IconStyle>
14
+ <LabelStyle>
15
+ </LabelStyle>
16
+ <LineStyle>
17
+ <color>ff2dc0fb</color>
18
+ <width>2.4389</width>
19
+ </LineStyle>
20
+ <PolyStyle>
21
+ <color>00ffffff</color>
22
+ </PolyStyle>
23
+ <BalloonStyle>
24
+ <displayMode>hide</displayMode>
25
+ </BalloonStyle>
26
+ </Style>
27
+ </gx:CascadingStyle>
28
+ <gx:CascadingStyle kml:id="__managed_style_175A38A9FB332BDE40E2">
29
+ <Style>
30
+ <IconStyle>
31
+ <Icon>
32
+ <href>https://earth.google.com/earth/rpc/cc/icon?color=1976d2&amp;id=2000&amp;scale=4</href>
33
+ </Icon>
34
+ <hotSpot x="64" y="128" xunits="pixels" yunits="insetPixels"/>
35
+ </IconStyle>
36
+ <LabelStyle>
37
+ </LabelStyle>
38
+ <LineStyle>
39
+ <color>ff2dc0fb</color>
40
+ <width>1.62594</width>
41
+ </LineStyle>
42
+ <PolyStyle>
43
+ <color>00ffffff</color>
44
+ </PolyStyle>
45
+ <BalloonStyle>
46
+ <displayMode>hide</displayMode>
47
+ </BalloonStyle>
48
+ </Style>
49
+ </gx:CascadingStyle>
50
+ <StyleMap id="__managed_style_02B2DF3F10332BDE40E2">
51
+ <Pair>
52
+ <key>normal</key>
53
+ <styleUrl>#__managed_style_175A38A9FB332BDE40E2</styleUrl>
54
+ </Pair>
55
+ <Pair>
56
+ <key>highlight</key>
57
+ <styleUrl>#__managed_style_2ECD90080C332BDE40E2</styleUrl>
58
+ </Pair>
59
+ </StyleMap>
60
+ <Placemark id="0CB71842DC32C34FCCDC">
61
+ <name>bhankhara Df </name>
62
+ <LookAt>
63
+ <longitude>73.23288329025303</longitude>
64
+ <latitude>23.92934021215672</latitude>
65
+ <altitude>351.5436929053654</altitude>
66
+ <heading>22.18919554855782</heading>
67
+ <tilt>0</tilt>
68
+ <gx:fovy>30.00004101</gx:fovy>
69
+ <range>1627.012775921321</range>
70
+ <altitudeMode>absolute</altitudeMode>
71
+ </LookAt>
72
+ <styleUrl>#__managed_style_02B2DF3F10332BDE40E2</styleUrl>
73
+ <Polygon>
74
+ <outerBoundaryIs>
75
+ <LinearRing>
76
+ <coordinates>
77
+ 73.23288020595453,23.92934920152165,0 73.2320424558106,23.9295414782706,0 73.23177030588151,23.9290796121952,0 73.23049283479376,23.92975711242018,0 73.2296710069635,23.93046123326063,0 73.2287325848189,23.92942606846368,0 73.23001098215263,23.92845402165482,0 73.23132082595696,23.92741616938989,0 73.23174863262777,23.92774125965506,0 73.23240516734252,23.92789815610602,0 73.23288020595453,23.92934920152165,0
78
+ </coordinates>
79
+ </LinearRing>
80
+ </outerBoundaryIs>
81
+ </Polygon>
82
+ </Placemark>
83
+ </Document>
84
+ </kml>
Bhankhara_Df_11_he_5_2020-21.geojson ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "type": "FeatureCollection",
3
+ "name": "Bhankhara Df 11 he 5 2020-21",
4
+ "crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } },
5
+ "features": [
6
+ { "type": "Feature", "properties": { "Name": "bhankhara Df " }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 73.232880205954501, 23.9293492015216 ], [ 73.2320424558106, 23.9295414782706 ], [ 73.231770305881497, 23.929079612195199 ], [ 73.230492834793793, 23.929757112420202 ], [ 73.2296710069635, 23.930461233260601 ], [ 73.2287325848189, 23.929426068463702 ], [ 73.230010982152606, 23.928454021654801 ], [ 73.231320825956999, 23.9274161693899 ], [ 73.231748632627799, 23.9277412596551 ], [ 73.232405167342506, 23.927898156106 ], [ 73.232880205954501, 23.9293492015216 ] ] ] } }
7
+ ]
8
+ }
Modhari_he_10_2024-25_1.geojson ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "type": "FeatureCollection",
3
+ "name": "Modhari he 10 2024-25",
4
+ "crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } },
5
+ "features": [
6
+ { "type": "Feature", "properties": { "Name": "modhari he 10" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 73.250265303276194, 23.966359326208998 ], [ 73.250855032573199, 23.968707782595999 ], [ 73.247453331972395, 23.969165838990801 ], [ 73.247435107606506, 23.968375467193201 ], [ 73.247220557780807, 23.966814738438298 ], [ 73.246392375394095, 23.9666180097215 ], [ 73.246547470533201, 23.965548877276401 ], [ 73.247483724157505, 23.965794485630301 ], [ 73.248410656612407, 23.965902014876299 ], [ 73.249480011641097, 23.965260579178999 ], [ 73.250265303276194, 23.966359326208998 ] ] ] } }
7
+ ]
8
+ }
app.py ADDED
@@ -0,0 +1,146 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+ import ee
3
+ import geemap
4
+ import json
5
+ import geopandas as gpd
6
+ import streamlit as st
7
+ import pandas as pd
8
+ from fastkml import kml
9
+ import geojson
10
+
11
+ ee.Initialize()
12
+
13
+ def convert_3d_to_2d(geometry):
14
+ """
15
+ Recursively convert any 3D coordinates in a geometry to 2D.
16
+ """
17
+ if geometry.is_empty:
18
+ return geometry
19
+
20
+ if geometry.geom_type == 'Polygon':
21
+ return geojson.Polygon([[(x, y) for x, y, *_ in ring] for ring in geometry.coordinates])
22
+
23
+ elif geometry.geom_type == 'MultiPolygon':
24
+ return geojson.MultiPolygon([
25
+ [[(x, y) for x, y, *_ in ring] for ring in poly]
26
+ for poly in geometry.coordinates
27
+ ])
28
+
29
+ elif geometry.geom_type == 'LineString':
30
+ return geojson.LineString([(x, y) for x, y, *_ in geometry.coordinates])
31
+
32
+ elif geometry.geom_type == 'MultiLineString':
33
+ return geojson.MultiLineString([
34
+ [(x, y) for x, y, *_ in line]
35
+ for line in geometry.coordinates
36
+ ])
37
+
38
+ elif geometry.geom_type == 'Point':
39
+ x, y, *_ = geometry.coordinates
40
+ return geojson.Point((x, y))
41
+
42
+ elif geometry.geom_type == 'MultiPoint':
43
+ return geojson.MultiPoint([(x, y) for x, y, *_ in geometry.coordinates])
44
+
45
+ return geometry # Return unchanged if not a supported geometry type
46
+
47
+ def kml_to_geojson(kml_string):
48
+ k = kml.KML()
49
+ k.from_string(kml_string.encode('utf-8')) # Convert the string to bytes
50
+ features = list(k.features())
51
+
52
+ geojson_features = []
53
+ for feature in features:
54
+ geometry_2d = convert_3d_to_2d(feature.geometry)
55
+ geojson_features.append(geojson.Feature(geometry=geometry_2d))
56
+
57
+ geojson_data = geojson.FeatureCollection(geojson_features)
58
+ return geojson_data
59
+
60
+ def geojson_to_ee(geojson_data):
61
+ ee_object = geemap.geojson_to_ee(geojson_data)
62
+ return ee_object
63
+
64
+ # put title in center
65
+ st.markdown("""
66
+ <style>
67
+ h1 {
68
+ text-align: center;
69
+ }
70
+ </style>
71
+ """, unsafe_allow_html=True)
72
+
73
+ st.title("Mean NDVI Calculator")
74
+
75
+ # get the start and end date from the user
76
+ col = st.columns(2)
77
+ start_date = col[0].date_input("Start Date", value=pd.to_datetime('2021-01-01'))
78
+ end_date = col[1].date_input("End Date", value=pd.to_datetime('2021-01-30'))
79
+ start_date = start_date.strftime("%Y-%m-%d")
80
+ end_date = end_date.strftime("%Y-%m-%d")
81
+
82
+ max_cloud_cover = st.number_input("Max Cloud Cover", value=20)
83
+
84
+ # Get the geojson file from the user
85
+ uploaded_file = st.file_uploader("Upload KML/GeoJSON file", type=["geojson", "kml"])
86
+
87
+ # Read the KML file
88
+ if uploaded_file is None:
89
+ file_name = "Bhankhara_Df_11_he_5_2020-21.geojson"
90
+ st.write(f"Using default file: {file_name}")
91
+ data = gpd.read_file(file_name)
92
+ with open(file_name) as f:
93
+ str_data = f.read()
94
+ else:
95
+ st.write(f"Using uploaded file: {uploaded_file.name}")
96
+ file_name = uploaded_file.name
97
+ bytes_data = uploaded_file.getvalue()
98
+ str_data = bytes_data.decode("utf-8")
99
+
100
+
101
+ if file_name.endswith(".geojson"):
102
+ geojson_data = json.loads(str_data)
103
+ elif file_name.endswith(".kml"):
104
+ geojson_data = kml_to_geojson(str_data)
105
+ print(geojson_data)
106
+
107
+ # Read Geojson File
108
+ ee_object = geojson_to_ee(geojson_data)
109
+
110
+ # Filter data based on the date, bounds, cloud coverage and select NIR and Red Band
111
+ collection = ee.ImageCollection("COPERNICUS/S2_SR_HARMONIZED").filterBounds(ee_object).filter(ee.Filter.lt('CLOUDY_PIXEL_PERCENTAGE', max_cloud_cover)).filter(ee.Filter.date(start_date, end_date)).select(['B4', 'B8'])
112
+
113
+ # Print Number of Images in collection
114
+ # print("Number of images", collection.size().getInfo())
115
+ st.write(f"Number of images: {collection.size().getInfo()}")
116
+
117
+ # Calculate NDVI as Normalized Index
118
+ def calculate_ndvi(image):
119
+ ndvi = image.normalizedDifference(['B8', 'B4']).rename('NDVI')
120
+ return image.addBands(ndvi)
121
+
122
+ collection = collection.map(calculate_ndvi)
123
+
124
+ # Write Zonalstats into csv file
125
+ # out_dir = os.path.join("Output")
126
+ # out_NDVI_stats = os.path.join(out_dir, "tmp.csv")
127
+
128
+ # if not os.path.exists(out_dir):
129
+ # os.makedirs(out_dir)
130
+
131
+ geemap.zonal_stats(collection.select(["NDVI"]), ee_object, "tmp.csv", stat_type="mean", scale=10)
132
+
133
+ # Show the table
134
+ df = pd.read_csv("tmp.csv")
135
+ df = df.T
136
+ df = df.reset_index()
137
+ df = df.iloc[:-2]
138
+ df['index'] = pd.to_datetime(df['index'].apply(lambda x: x.split('_')[1].split('T')[0])).dt.strftime('%Y-%m-%d')
139
+ df.rename(columns={'index': 'Date', 0: 'Mean NDVI'}, inplace=True)
140
+ st.write(df)
141
+
142
+ # plot the time series
143
+ st.write("Time Series Plot")
144
+ st.line_chart(df.set_index('Date'))
145
+
146
+ st.write(f"Overall Mean NDVI: {df['Mean NDVI'].mean():.2f}")
credentials ADDED
@@ -0,0 +1 @@
 
 
1
+ {"client_id": "815228341823-nlgp8nt2hueogp4cgq0avu4p96286q9p.apps.googleusercontent.com", "client_secret": "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", "refresh_token": "1//0g0DefNLVVZCjCgYIARAAGBASNwF-L9IrOXqMvRqJ4vo9O5JN-3GXbzr0gaoqlWOWKIq56qLqYlLl-DU_2EoCd11TN-nZD1Us-4Y", "scopes": ["https://www.googleapis.com/auth/earthengine", "https://www.googleapis.com/auth/cloud-platform", "https://www.googleapis.com/auth/devstorage.full_control"]}
dezkvf.geojson ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "type": "FeatureCollection",
3
+ "name": "dezkvf",
4
+ "crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } },
5
+ "features": [
6
+ { "type": "Feature", "properties": { "Name": "kelava 25 he", "Description": "<div><b>kelava irrigation he 25&nbsp;</b><br></div><div><b>Year 2022-23</b><br></div>" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 73.197914709471448, 24.019776408586271, 0.0 ], [ 73.195116560943902, 24.017540941492609, 0.0 ], [ 73.195520536704294, 24.017383406835211, 0.0 ], [ 73.194800334002622, 24.015236193127709, 0.0 ], [ 73.194636950732615, 24.014403118717031, 0.0 ], [ 73.194542860108086, 24.0139003560814, 0.0 ], [ 73.194244339216496, 24.0126807914708, 0.0 ], [ 73.194234194479606, 24.0126863557728, 0.0 ], [ 73.196535112752471, 24.012520238854709, 0.0 ], [ 73.196484322109839, 24.01217871972386, 0.0 ], [ 73.197648612812372, 24.011999301879619, 0.0 ], [ 73.198172869309701, 24.014332547414551, 0.0 ], [ 73.198681981415604, 24.01611200638915, 0.0 ], [ 73.199597451332266, 24.01895266153662, 0.0 ], [ 73.197914709471448, 24.019776408586271, 0.0 ] ] ] } },
7
+ { "type": "Feature", "properties": { "Name": "golvada AAR he 10", "Description": "" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 73.261430193721736, 23.948423897273148, 0.0 ], [ 73.261454558343772, 23.94770292293428, 0.0 ], [ 73.261316183243395, 23.947303629454801, 0.0 ], [ 73.260996974055246, 23.947413576226051, 0.0 ], [ 73.261040167345797, 23.94789796349275, 0.0 ], [ 73.260683596689233, 23.948250089201601, 0.0 ], [ 73.259412433237358, 23.947635029970598, 0.0 ], [ 73.258444544316092, 23.947678147449921, 0.0 ], [ 73.25826068055234, 23.947345888900731, 0.0 ], [ 73.261022668996318, 23.946173705133479, 0.0 ], [ 73.261065680444318, 23.945581465762931, 0.0 ], [ 73.263064354844005, 23.944893769638622, 0.0 ], [ 73.263452135972344, 23.948939645127538, 0.0 ], [ 73.26215495742278, 23.94956954455791, 0.0 ], [ 73.261430193721736, 23.948423897273148, 0.0 ] ] ] } },
8
+ { "type": "Feature", "properties": { "Name": "Golvada he 10", "Description": "" }, "geometry": { "type": "Point", "coordinates": [ 73.262362465970142, 23.947286317747501, 348.096590272880121 ] } }
9
+ ]
10
+ }
golvada he 10 2023-24.kml ADDED
@@ -0,0 +1,235 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2" xmlns:kml="http://www.opengis.net/kml/2.2" xmlns:atom="http://www.w3.org/2005/Atom">
3
+ <Document>
4
+ <name>golvada he 10 2023-24</name>
5
+ <StyleMap id="__managed_style_689C019E91332BD1EC88">
6
+ <Pair>
7
+ <key>normal</key>
8
+ <styleUrl>#__managed_style_79BDFF2A5D332BD1EC88</styleUrl>
9
+ </Pair>
10
+ <Pair>
11
+ <key>highlight</key>
12
+ <styleUrl>#__managed_style_8DE467F478332BD1EC88</styleUrl>
13
+ </Pair>
14
+ </StyleMap>
15
+ <gx:CascadingStyle kml:id="__managed_style_550D7CA50D332BD1EC88">
16
+ <Style>
17
+ <IconStyle>
18
+ <scale>1.2</scale>
19
+ <Icon>
20
+ <href>https://earth.google.com/earth/rpc/cc/icon?color=1976d2&amp;id=2000&amp;scale=4</href>
21
+ </Icon>
22
+ <hotSpot x="64" y="128" xunits="pixels" yunits="insetPixels"/>
23
+ </IconStyle>
24
+ <LabelStyle>
25
+ </LabelStyle>
26
+ <LineStyle>
27
+ <color>ff2dc0fb</color>
28
+ <width>4.8772</width>
29
+ </LineStyle>
30
+ <PolyStyle>
31
+ <color>00ffffff</color>
32
+ </PolyStyle>
33
+ <BalloonStyle>
34
+ <displayMode>hide</displayMode>
35
+ </BalloonStyle>
36
+ </Style>
37
+ </gx:CascadingStyle>
38
+ <gx:CascadingStyle kml:id="__managed_style_490CBAF8C4332BD1EC88">
39
+ <Style>
40
+ <IconStyle>
41
+ <Icon>
42
+ <href>https://earth.google.com/earth/rpc/cc/icon?color=1976d2&amp;id=2000&amp;scale=4</href>
43
+ </Icon>
44
+ <hotSpot x="64" y="128" xunits="pixels" yunits="insetPixels"/>
45
+ </IconStyle>
46
+ <LabelStyle>
47
+ </LabelStyle>
48
+ <LineStyle>
49
+ <color>ff2dc0fb</color>
50
+ <width>3.25146</width>
51
+ </LineStyle>
52
+ <PolyStyle>
53
+ <color>00ffffff</color>
54
+ </PolyStyle>
55
+ <BalloonStyle>
56
+ <displayMode>hide</displayMode>
57
+ </BalloonStyle>
58
+ </Style>
59
+ </gx:CascadingStyle>
60
+ <gx:CascadingStyle kml:id="__managed_style_79BDFF2A5D332BD1EC88">
61
+ <Style>
62
+ <IconStyle>
63
+ <Icon>
64
+ <href>https://earth.google.com/earth/rpc/cc/icon?color=1976d2&amp;id=2000&amp;scale=4</href>
65
+ </Icon>
66
+ <hotSpot x="64" y="128" xunits="pixels" yunits="insetPixels"/>
67
+ </IconStyle>
68
+ <LabelStyle>
69
+ </LabelStyle>
70
+ <LineStyle>
71
+ <color>ff2dc0fb</color>
72
+ <width>1.62594</width>
73
+ </LineStyle>
74
+ <PolyStyle>
75
+ <color>40ffffff</color>
76
+ </PolyStyle>
77
+ <BalloonStyle>
78
+ <displayMode>hide</displayMode>
79
+ </BalloonStyle>
80
+ </Style>
81
+ </gx:CascadingStyle>
82
+ <StyleMap id="__managed_style_345C91A241332BD1EC88">
83
+ <Pair>
84
+ <key>normal</key>
85
+ <styleUrl>#__managed_style_490CBAF8C4332BD1EC88</styleUrl>
86
+ </Pair>
87
+ <Pair>
88
+ <key>highlight</key>
89
+ <styleUrl>#__managed_style_550D7CA50D332BD1EC88</styleUrl>
90
+ </Pair>
91
+ </StyleMap>
92
+ <gx:CascadingStyle kml:id="__managed_style_8DE467F478332BD1EC88">
93
+ <Style>
94
+ <IconStyle>
95
+ <scale>1.2</scale>
96
+ <Icon>
97
+ <href>https://earth.google.com/earth/rpc/cc/icon?color=1976d2&amp;id=2000&amp;scale=4</href>
98
+ </Icon>
99
+ <hotSpot x="64" y="128" xunits="pixels" yunits="insetPixels"/>
100
+ </IconStyle>
101
+ <LabelStyle>
102
+ </LabelStyle>
103
+ <LineStyle>
104
+ <color>ff2dc0fb</color>
105
+ <width>2.4389</width>
106
+ </LineStyle>
107
+ <PolyStyle>
108
+ <color>40ffffff</color>
109
+ </PolyStyle>
110
+ <BalloonStyle>
111
+ <displayMode>hide</displayMode>
112
+ </BalloonStyle>
113
+ </Style>
114
+ </gx:CascadingStyle>
115
+ <gx:CascadingStyle kml:id="__managed_style_19AFB589B7332BD1EC88">
116
+ <styleUrl>https://earth.google.com/balloon_components/base/1.0.26.0/card_template.kml#main</styleUrl>
117
+ <Style>
118
+ <IconStyle>
119
+ <Icon>
120
+ <href>https://earth.google.com/earth/rpc/cc/icon?color=1976d2&amp;id=2000&amp;scale=4</href>
121
+ </Icon>
122
+ <hotSpot x="64" y="128" xunits="pixels" yunits="insetPixels"/>
123
+ </IconStyle>
124
+ <LabelStyle>
125
+ </LabelStyle>
126
+ <LineStyle>
127
+ <color>ff2dc0fb</color>
128
+ <width>1.62594</width>
129
+ </LineStyle>
130
+ <PolyStyle>
131
+ <color>00ffffff</color>
132
+ </PolyStyle>
133
+ <BalloonStyle>
134
+ </BalloonStyle>
135
+ </Style>
136
+ </gx:CascadingStyle>
137
+ <gx:CascadingStyle kml:id="__managed_style_234F72CC13332BD1EC88">
138
+ <styleUrl>https://earth.google.com/balloon_components/base/1.0.26.0/card_template.kml#main</styleUrl>
139
+ <Style>
140
+ <IconStyle>
141
+ <scale>1.2</scale>
142
+ <Icon>
143
+ <href>https://earth.google.com/earth/rpc/cc/icon?color=1976d2&amp;id=2000&amp;scale=4</href>
144
+ </Icon>
145
+ <hotSpot x="64" y="128" xunits="pixels" yunits="insetPixels"/>
146
+ </IconStyle>
147
+ <LabelStyle>
148
+ </LabelStyle>
149
+ <LineStyle>
150
+ <color>ff2dc0fb</color>
151
+ <width>2.4389</width>
152
+ </LineStyle>
153
+ <PolyStyle>
154
+ <color>00ffffff</color>
155
+ </PolyStyle>
156
+ <BalloonStyle>
157
+ </BalloonStyle>
158
+ </Style>
159
+ </gx:CascadingStyle>
160
+ <StyleMap id="__managed_style_065B29A536332BD1EC88">
161
+ <Pair>
162
+ <key>normal</key>
163
+ <styleUrl>#__managed_style_19AFB589B7332BD1EC88</styleUrl>
164
+ </Pair>
165
+ <Pair>
166
+ <key>highlight</key>
167
+ <styleUrl>#__managed_style_234F72CC13332BD1EC88</styleUrl>
168
+ </Pair>
169
+ </StyleMap>
170
+ <Placemark id="07BC2552BA32C316F21E">
171
+ <name>kelava 25 he</name>
172
+ <description><![CDATA[<div><b>kelava irrigation he 25&nbsp;</b><br></div><div><b>Year 2022-23</b><br></div>]]></description>
173
+ <LookAt>
174
+ <longitude>73.19426839387742</longitude>
175
+ <latitude>24.01576379553443</latitude>
176
+ <altitude>280.5090231089874</altitude>
177
+ <heading>108.7976786328946</heading>
178
+ <tilt>0</tilt>
179
+ <gx:fovy>35</gx:fovy>
180
+ <range>3944.221455875086</range>
181
+ <altitudeMode>absolute</altitudeMode>
182
+ </LookAt>
183
+ <styleUrl>#__managed_style_065B29A536332BD1EC88</styleUrl>
184
+ <Polygon>
185
+ <outerBoundaryIs>
186
+ <LinearRing>
187
+ <coordinates>
188
+ 73.19791470947145,24.01977640858627,0 73.1951165609439,24.01754094149261,0 73.19552053670429,24.01738340683521,0 73.19480033400262,24.01523619312771,0 73.19463695073262,24.01440311871703,0 73.19454286010809,24.0139003560814,0 73.1942443392165,24.0126807914708,0 73.19423419447961,24.0126863557728,0 73.19653511275247,24.01252023885471,0 73.19648432210984,24.01217871972386,0 73.19764861281237,24.01199930187962,0 73.1981728693097,24.01433254741455,0 73.1986819814156,24.01611200638915,0 73.19959745133227,24.01895266153662,0 73.19791470947145,24.01977640858627,0
189
+ </coordinates>
190
+ </LinearRing>
191
+ </outerBoundaryIs>
192
+ </Polygon>
193
+ </Placemark>
194
+ <Placemark id="017E1C926F32C321384B">
195
+ <name>golvada AAR he 10</name>
196
+ <LookAt>
197
+ <longitude>73.26007898563958</longitude>
198
+ <latitude>23.94513383697879</latitude>
199
+ <altitude>344.9051226907054</altitude>
200
+ <heading>24.85025074686223</heading>
201
+ <tilt>0</tilt>
202
+ <gx:fovy>30.00004100868316</gx:fovy>
203
+ <range>3032.777194715746</range>
204
+ <altitudeMode>absolute</altitudeMode>
205
+ </LookAt>
206
+ <styleUrl>#__managed_style_345C91A241332BD1EC88</styleUrl>
207
+ <Polygon>
208
+ <outerBoundaryIs>
209
+ <LinearRing>
210
+ <coordinates>
211
+ 73.26143019372174,23.94842389727315,0 73.26145455834377,23.94770292293428,0 73.26131618324339,23.9473036294548,0 73.26099697405525,23.94741357622605,0 73.2610401673458,23.94789796349275,0 73.26068359668923,23.9482500892016,0 73.25941243323736,23.9476350299706,0 73.25844454431609,23.94767814744992,0 73.25826068055234,23.94734588890073,0 73.26102266899632,23.94617370513348,0 73.26106568044432,23.94558146576293,0 73.263064354844,23.94489376963862,0 73.26345213597234,23.94893964512754,0 73.26215495742278,23.94956954455791,0 73.26143019372174,23.94842389727315,0
212
+ </coordinates>
213
+ </LinearRing>
214
+ </outerBoundaryIs>
215
+ </Polygon>
216
+ </Placemark>
217
+ <Placemark id="0441639A5132C3256BE1">
218
+ <name>Golvada he 10</name>
219
+ <LookAt>
220
+ <longitude>73.26236246597014</longitude>
221
+ <latitude>23.9472863177475</latitude>
222
+ <altitude>348.0965902728801</altitude>
223
+ <heading>24.85117754611951</heading>
224
+ <tilt>0</tilt>
225
+ <gx:fovy>30.00004100868316</gx:fovy>
226
+ <range>3029.903914078313</range>
227
+ <altitudeMode>absolute</altitudeMode>
228
+ </LookAt>
229
+ <styleUrl>#__managed_style_689C019E91332BD1EC88</styleUrl>
230
+ <Point>
231
+ <coordinates>73.26236246597014,23.9472863177475,348.0965902728801</coordinates>
232
+ </Point>
233
+ </Placemark>
234
+ </Document>
235
+ </kml>
gzn.html ADDED
File without changes
jitewu.geojson ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "type": "FeatureCollection",
3
+ "name": "jitewu",
4
+ "crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } },
5
+ "features": [
6
+ { "type": "Feature", "properties": { "Name": "kelava 25 he", "Description": "<div><b>kelava irrigation he 25&nbsp;</b><br></div><div><b>Year 2022-23</b><br></div>" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 73.197914709471448, 24.019776408586271, 0.0 ], [ 73.195116560943902, 24.017540941492609, 0.0 ], [ 73.195520536704294, 24.017383406835211, 0.0 ], [ 73.194800334002622, 24.015236193127709, 0.0 ], [ 73.194636950732615, 24.014403118717031, 0.0 ], [ 73.194542860108086, 24.0139003560814, 0.0 ], [ 73.194244339216496, 24.0126807914708, 0.0 ], [ 73.194234194479606, 24.0126863557728, 0.0 ], [ 73.196535112752471, 24.012520238854709, 0.0 ], [ 73.196484322109839, 24.01217871972386, 0.0 ], [ 73.197648612812372, 24.011999301879619, 0.0 ], [ 73.198172869309701, 24.014332547414551, 0.0 ], [ 73.198681981415604, 24.01611200638915, 0.0 ], [ 73.199597451332266, 24.01895266153662, 0.0 ], [ 73.197914709471448, 24.019776408586271, 0.0 ] ] ] } }
7
+ ]
8
+ }
lybaeb.geojson ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "type": "FeatureCollection",
3
+ "name": "lybaeb",
4
+ "crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } },
5
+ "features": [
6
+ { "type": "Feature", "properties": { "Name": "kelava 25 he", "Description": "<div><b>kelava irrigation he 25&nbsp;</b><br></div><div><b>Year 2022-23</b><br></div>" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 73.197914709471448, 24.019776408586271, 0.0 ], [ 73.195116560943902, 24.017540941492609, 0.0 ], [ 73.195520536704294, 24.017383406835211, 0.0 ], [ 73.194800334002622, 24.015236193127709, 0.0 ], [ 73.194636950732615, 24.014403118717031, 0.0 ], [ 73.194542860108086, 24.0139003560814, 0.0 ], [ 73.194244339216496, 24.0126807914708, 0.0 ], [ 73.194234194479606, 24.0126863557728, 0.0 ], [ 73.196535112752471, 24.012520238854709, 0.0 ], [ 73.196484322109839, 24.01217871972386, 0.0 ], [ 73.197648612812372, 24.011999301879619, 0.0 ], [ 73.198172869309701, 24.014332547414551, 0.0 ], [ 73.198681981415604, 24.01611200638915, 0.0 ], [ 73.199597451332266, 24.01895266153662, 0.0 ], [ 73.197914709471448, 24.019776408586271, 0.0 ] ] ] } }
7
+ ]
8
+ }
rdnslj.geojson ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "type": "FeatureCollection",
3
+ "name": "rdnslj",
4
+ "crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } },
5
+ "features": [
6
+ { "type": "Feature", "properties": { "Name": "kelava 25 he", "Description": "<div><b>kelava irrigation he 25&nbsp;</b><br></div><div><b>Year 2022-23</b><br></div>" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 73.197914709471448, 24.019776408586271, 0.0 ], [ 73.195116560943902, 24.017540941492609, 0.0 ], [ 73.195520536704294, 24.017383406835211, 0.0 ], [ 73.194800334002622, 24.015236193127709, 0.0 ], [ 73.194636950732615, 24.014403118717031, 0.0 ], [ 73.194542860108086, 24.0139003560814, 0.0 ], [ 73.194244339216496, 24.0126807914708, 0.0 ], [ 73.194234194479606, 24.0126863557728, 0.0 ], [ 73.196535112752471, 24.012520238854709, 0.0 ], [ 73.196484322109839, 24.01217871972386, 0.0 ], [ 73.197648612812372, 24.011999301879619, 0.0 ], [ 73.198172869309701, 24.014332547414551, 0.0 ], [ 73.198681981415604, 24.01611200638915, 0.0 ], [ 73.199597451332266, 24.01895266153662, 0.0 ], [ 73.197914709471448, 24.019776408586271, 0.0 ] ] ] } }
7
+ ]
8
+ }
requirements.txt ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ fastkml
2
+ geopandas
3
+ geemap
4
+ pandas
sandbox.ipynb ADDED
File without changes
tmp.csv ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ 20210112T054211_20210112T054208_T43QCG_NDVI,20210117T054149_20210117T054151_T43QCG_NDVI,20210122T054131_20210122T054132_T43QCG_NDVI,20210127T054109_20210127T055157_T43QCG_NDVI,system:index,Name
2
+ 0.5412110887471273,0.49817145677100677,0.5045362449588447,0.4920719918276227,0,bhankhara Df
tmp.geojson ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "type": "FeatureCollection",
3
+ "name": "tmp",
4
+ "crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } },
5
+ "features": [
6
+ { "type": "Feature", "properties": { "Name": "bhankhara Df ", "Description": "" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 73.23288020595453, 23.929349201521649, 0.0 ], [ 73.2320424558106, 23.9295414782706, 0.0 ], [ 73.231770305881511, 23.929079612195199, 0.0 ], [ 73.230492834793765, 23.92975711242018, 0.0 ], [ 73.2296710069635, 23.93046123326063, 0.0 ], [ 73.2287325848189, 23.92942606846368, 0.0 ], [ 73.230010982152635, 23.928454021654819, 0.0 ], [ 73.231320825956956, 23.92741616938989, 0.0 ], [ 73.23174863262777, 23.927741259655061, 0.0 ], [ 73.23240516734252, 23.927898156106021, 0.0 ], [ 73.23288020595453, 23.929349201521649, 0.0 ] ] ] } }
7
+ ]
8
+ }