def _build_graph(cls, catID, polarization="VH", proj=None, **kwargs): sentinel1 = rda.Sentinel1Template(sentinelId=catID, sentinel1Polarization=polarization, nodeId="Sentinel1Read") if proj is not None: sentinel1 = sentinel1(nodeId="Reproject", **reproject_params(proj)) return sentinel1
def _build_graph(cls, prefix, spec="10m", proj=None, **kwargs): sentinel2 = rda.Sentinel2Template(sentinelId=prefix, sentinelProductSpec=spec, nodeId="Sentinel2Read") if proj is not None: sentinel2 = sentinel2(nodeId="Reproject", **reproject_params(proj)) return sentinel2
def _build_graph(cls, _id, band_type="MS", proj=None, **kwargs): spec = band_types[band_type] pansharpen = kwargs.get('pansharpen', False) if spec == "thermal" and pansharpen: raise IncompatibleOptions( 'Cannot generate a pansharpened thermal Landsat image') if pansharpen is True: landsat = rda.LandsatPanSharpenTemplate(catalogIdMultispectral=_id, catalogIdPanchromatic=_id) else: landsat = rda.LandsatTemplate(catalogId=_id, productSpec=spec) if proj is not None: landsat = landsat(nodeId="Reproject", **reproject_params(proj)) return landsat
def _build_graph(cls, _id, band_type="MS", proj=None, **kwargs): spec = band_types[band_type] pansharpen = kwargs.get('pansharpen', False) if spec == "thermal" and pansharpen: raise IncompatibleOptions( 'Cannot generate a pansharpened thermal Landsat image') if pansharpen == True: landsat_ms = rda.LandsatRead(landsatId=_id, productSpec='multispectral') landsat_pan = rda.LandsatRead(landsatId=_id, productSpec='panchromatic') landsat = rda.LocallyProjectivePanSharpen(landsat_ms, landsat_pan) else: landsat = rda.LandsatRead(landsatId=_id, productSpec=spec) if proj is not None: landsat = rda.Reproject(landsat, **reproject_params(proj)) return landsat
def _build_graph(cls, catID, polarization="VH", proj=None, **kwargs): sentinel = rda.Sentinel1Read(SentinelId=catID, sentinel1Polarization=polarization) if proj is not None: sentinel = rda.Reproject(sentinel, **reproject_params(proj)) return sentinel
def _build_graph(cls, prefix, spec="10m", proj=None, **kwargs): sentinel = rda.SentinelRead(SentinelId=prefix, sentinelProductSpec=spec) if proj is not None: sentinel = rda.Reproject(sentinel, **reproject_params(proj)) return sentinel
def _build_graph(cls, cat_id, proj=None, **kwargs): modis = rda.ModisRead(modisId=cat_id) if proj is not None: modis = rda.Reproject(modis, **reproject_params(proj)) return modis
def _build_graph(cls, _id, spec="multispectral", proj=None, **kwargs): landsat = rda.LandsatRead(landsatId=_id, productSpec=spec) if proj is not None: landsat = rda.Reproject(landsat, **reproject_params(proj)) return landsat
def _build_graph(cls, cat_id, proj=None, **kwargs): modis = rda.ModisTemplate(modisId=cat_id) if proj is not None: modis = modis(nodeId="Reproject", **reproject_params(proj)) return modis