openforis / sepal

Geographical Data Processing in the Cloud
https://sepal.io/
MIT License
203 stars 45 forks source link

export an aoi from a classification #271

Open aurelgrooves opened 1 year ago

aurelgrooves commented 1 year ago

I have a very large classification that takes very long to render (and redraws anytime I move or zoom in the map), so I only want to export a piece of it to visualize.

It is not currently possible to create a subset of a classification, as it would require subsetting the original imagery as well as the training data - which would create a whole new classification and not provide the same results as a subset.

Would it be possible to have an aoi option in the classification recipe? To export results by country, province or drawn box - same as the AOI options in the optical mosaic and other recipes?

12rambau commented 1 year ago

Should the classification continue to use all the training data or restrict itself to the one specifically inluded in the AOI ?

aurelgrooves commented 1 year ago

the export would be a subset of the full classification and use all the training data - basically, including the 'region' option on the export.

The ability to clip training and input data would be great but that's another issue.

cdanielw commented 1 year ago

You can create an asset (or a recipe, but that would presumably run out of memory during classification) with the part of the input imagery you're interested in visualizing. Then create a new classification, for training data select Saved Sepal Recipe and pick your full classification recipe. Then export the resulting classification as an asset. That way, you will use the same classifier, but on a subset of your AOI.

cdanielw commented 1 year ago

And sure - it senses to be allow to export only a part of your classification, or whichever recipe you're working on. But at least you should have an immediate workaround.