Demo entry 6683791

python

   

Submitted by anonymous on Dec 13, 2017 at 15:47
Language: Python. Code size: 946 Bytes.

for area in areas:

    area_name = area.get_glacier_name()
    
    print('\nSelected Area:', area_name)
    
    p1 = ee.Geometry.Point(area.get_corners()[0])
    p2 = ee.Geometry.Point(area.get_corners()[1])
    p3 = ee.Geometry.Point(area.get_corners()[2])
    p4 = ee.Geometry.Point(area.get_corners()[3])
    rectangle = ee.Geometry.Rectangle([p3,p2])
    #print(area, p1, p2, p3 ,p4)
    
    #sys.exit()

    for passing in passings:
        
        createAngleBand = lambda image: image.addBands(image.metadata('relativeOrbitNumber_start'))
        print('\n\tSelected passing: '+passing)
        

        sentinel1 = ee.ImageCollection('COPERNICUS/S1_GRD').filter(ee.Filter.eq('orbitProperties_pass', passing)) \
                                                           .filterDate('2015-01-01', today) \
                                                           .filterBounds(ee.Geometry.Rectangle([p3,p2]))

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).