Skip to content

Commit

Permalink
Update datacube_tools.py
Browse files Browse the repository at this point in the history
Check line number 191 to 196
  • Loading branch information
itstalmeez committed Mar 11, 2024
1 parent 558db0b commit 48ae04d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions notebooks/datacube_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import logging
# for timing data access
import time

import numpy as np
import pyproj
import s3fs as s3
Expand Down Expand Up @@ -88,6 +87,7 @@ def find_datacube_catalog_entry_for_point(self, point_xy, point_epsg_str):

# create Shapely point object for inclusion test
point = geometry.Point(*pointll) # point.coords.xy


# find datacube outline that contains this point in geojson index file
cubefeature = None
Expand Down Expand Up @@ -185,7 +185,13 @@ def find_datacube_catalog_entry_for_point(self, point_xy, point_epsg_str):
)
newpointll = cubePROJtoLL.transform(*newpoint_cubexy)

# create Shapely point object for inclusion test
# # create Shapely point object for inclusion test
# newpoint = geometry.Point(*newpointll)

# Coordinates for the new point
newpointll = (40.7128, 74.0060) # Replace with actual latitude and longitude values

# Create Shapely point object
newpoint = geometry.Point(*newpointll)

# find datacube outline that contains this point in geojson index file
Expand Down

0 comments on commit 48ae04d

Please sign in to comment.