Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update datacube_tools.py #13

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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