@@ -480,7 +480,10 @@ def download(self, basedir, bursts, polarization=None, frequency=None, bbox=None
480480 import os
481481
482482 # Normalize inputs
483- if isinstance (bursts , str ):
483+ import geopandas as gpd
484+ if isinstance (bursts , gpd .GeoDataFrame ):
485+ bursts = bursts ['sceneName' ].tolist ()
486+ elif isinstance (bursts , str ):
484487 bursts = list (filter (None , map (str .strip , bursts .split ('\n ' ))))
485488 pols = self ._normalize_polarization (polarization )
486489
@@ -3573,7 +3576,7 @@ def _write_nisar_pol_h5_from_bytes(self, downloaded_data, chunk_info, metadata,
35733576
35743577 @staticmethod
35753578 def search (geometry , startTime = None , stopTime = None , flightDirection = None ,
3576- platform = 'SENTINEL-1' , processingLevel = 'auto' , polarization = 'VV' , beamMode = 'IW' ):
3579+ platform = 'SENTINEL-1' , processingLevel = 'auto' , polarization = None , beamMode = 'IW' ):
35773580 import geopandas as gpd
35783581 import shapely
35793582
@@ -3613,7 +3616,10 @@ def search(geometry, startTime=None, stopTime=None, flightDirection=None,
36133616 polarization = polarization ,
36143617 beamMode = beamMode ,
36153618 )
3616- return gpd .GeoDataFrame .from_features ([product .geojson () for product in results ], crs = "EPSG:4326" )
3619+ gdf = gpd .GeoDataFrame .from_features ([product .geojson () for product in results ], crs = "EPSG:4326" )
3620+ if 'burst' in gdf .columns :
3621+ gdf ['fullBurstID' ] = gdf ['burst' ].apply (lambda b : b ['fullBurstID' ])
3622+ return gdf
36173623
36183624 @staticmethod
36193625 def plot (bursts , ax = None , figsize = None ):
0 commit comments