예제 #1
0
 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
예제 #2
0
 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
예제 #3
0
    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
예제 #4
0
    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
예제 #5
0
 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
예제 #6
0
 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
예제 #7
0
 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
예제 #8
0
 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
예제 #9
0
파일: modis.py 프로젝트: yxqd/gbdxtools
 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
예제 #10
0
 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
예제 #11
0
 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
예제 #12
0
 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