Skip to content

Exporting an ee.ImageCollection #430

@fitoprincipe

Description

@fitoprincipe

this Issue made me realize that the function to export an image collection has not been implemented in the same way as the older version of this package. The main difference, that I'd like to see "restored", is the ability to create the file names using the image properties (namePattern argument).

def toDrive(collection, folder, namePattern='{id}', scale=30,
dataType="float", region=None, datePattern=None,
extra=None, verbose=False, **kwargs):

Also, I think that this line

loc_id = locImage.get(index_property).getInfo()

forces the collection to be computed as a list, due to

imageList = imagecollection.toList(nb_images)

if the collection had an intense computation it might fail due to memory issues. Instead, I propose to loop over the system:index property, which by definition is always unique (this was not the way it was coded in the previous version)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions