Commit d9a9cd50 authored by Gaetano Raffaele's avatar Gaetano Raffaele
Browse files

ENH: started coding S2 planetary fetch.

No related merge requests found
Showing with 15 additions and 0 deletions
+15 -0
import planetary_computer
from pystac_client import Client
import planetary_computer as PC
import rasterio
from osgeo import ogr
from pyproj import Transformer as T
def get_s2_from_planetary(shp, datetime):
ds = ogr.Open(shp)
ly = ds.GetLayer(0)
xt = ly.GetExtent()
shp_srs = int(ly.GetSpatialRef().GetAuthorityCode(None))
api = Client('https://planetarycomputer.microsoft.com/api/stac/v1', modifier=planetary_computer.sign_inplace)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment