Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: module 'geetools' has no attribute 'batch' #256

Open
jitesh-seth opened this issue Mar 26, 2024 · 1 comment
Open

AttributeError: module 'geetools' has no attribute 'batch' #256

jitesh-seth opened this issue Mar 26, 2024 · 1 comment

Comments

@jitesh-seth
Copy link

jitesh-seth commented Mar 26, 2024

I want to export an ImageCollection using geetools.batch.Export.imagecollection.toDrive() but I am getting the error as mentioned in the title: AttributeError: module 'geetools' has no attribute 'batch'
I have tried with v1.1.0 and v1.3.0 and am getting the same result. This is the output of dir(geetools) in v1.1.0:

['Authenticate',
 'AuthenticateAccessor',
 'ComputedObject',
 'Date',
 'DateAccessor',
 'Dictionary',
 'DictionaryAccessor',
 'Feature',
 'FeatureAccessor',
 'FeatureCollection',
 'FeatureCollectionAccessor',
 'Filter',
 'FilterAccessor',
 'Geometry',
 'GeometryAccessor',
 'Image',
 'ImageAccessor',
 'ImageCollection',
 'ImageCollectionAccessor',
 'Initialize',
 'InitializeAccessor',
 'Join',
 'JoinAccessor',
 'List',
 'ListAccessor',
 'Number',
 'NumberAccessor',
 'String',
 'StringAccessor',
 '__author__',
 '__builtins__',
 '__cached__',
 '__copyright__',
 '__doc__',
 '__email__',
 '__file__',
 '__license__',
 '__loader__',
 '__name__',
 '__package__',
 '__path__',
 '__spec__',
 '__summary__',
 '__title__',
 '__uri__',
 '__version__',
 '_deprecated_decision_tree',
 '_deprecated_expressions',
 '_deprecated_filters',
 '_deprecated_indices',
 '_deprecated_manager',
 '_deprecated_oauth',
 '_deprecated_utils',
 '_deprecated_visualization',
 'accessors',
 'array',
 'collection',
 'date',
 'decision_tree',
 'dictionary',
 'ee',
 'element',
 'expressions',
 'feature',
 'featurecollection',
 'filters',
 'geometry',
 'imagecollection',
 'indices',
 'manager',
 'number',
 'oauth',
 'string',
 'tools',
 'types',
 'utils',
 'visualization']

I installed geetools using pip. Kindly help.

@12rambau
Copy link
Member

I think it's typically the use case presented in the documentation: https://geetools.readthedocs.io/en/stable/usage/migration.html

But even if you manage to sucessfully import it my guess is that it's not going to work as the batch module is not yet refactored (as per #241).

I don't know what you are doing with your imageCollection afterward but in case you analyse it with Xarray, be aware that v1 has a to_xarray method based on Xee package: https://geetools.readthedocs.io/en/stable/autoapi/geetools/ImageCollection/index.html#geetools.ImageCollection.ImageCollectionAccessor.to_xarray

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants