I'm trying to export Sentinel-2 vegetation indices and texture features sampled at points using Google Earth Engine. I have a large number of points and features, so instead of exporting all the features from all points at once, I am exporting features from one point at a time inside a loop.
For each point, I run the following export task:
python
Copy
Edit
task = ee.batch.Export.table.toDrive(
collection=sampled_data,
description=f'S2_{point_number}',
fileNamePrefix=f'S2_{point_number}',
folder='S2_textures',
fileFormat='CSV'
)
task.start()
The Problem: Even though I set folder='S2_textures' in Export.table.toDrive, Earth Engine is creating a new folder called S2_textures each time in my Google Drive.
I expected all the CSV files to be saved into one single S2_textures folder.
Question: How can I ensure that all the exported CSVs go into a single folder without creating multiple "S2_textures" folders?