Comments (6)
Did a clean pip install eo-learn
on Python 3.8 (on Ubuntu) and it worked with the code you posted above.
from eo-learn.
Hi @sbrisson-sudo!
can you please provide also the test.tiff
file? You can zip it and drag&drop it here as well
nevermind, misread the task you're using
from eo-learn.
Could you perhaps give us the full stack-trace of the error? I ran your code locally and it works for me.
from eo-learn.
It also works for me, but I'm suspicious of folder='/home/test.tiff'
, are you sure this is correct? I feel like your username might be missing.
try saving it locally folder='./test.tiff'
from eo-learn.
Here is te full stack trace of the error :
stack_trace.txt
I guess something's wrong with my environment, I've already tried to reinstall the eo-learn / sentinelhub and rasterio packages. Could you send me your python environment info so I can compare ? @mlubej @zigaLuksic
@mlubej indeed that wasn't my first example, I took this one for replicatibility and didn't change the path. Also according to the doc the file name must be specified at execution. Here is the new version of the code, the error is still the same.
import sentinelhub
from eolearn.core import EOPatch, FeatureType
from eolearn.io import ExportToTiffTask
import numpy as np
eoptest = EOPatch()
eoptest.data_timeless['product'] = np.ones(shape=(100, 100, 1))
eoptest.bbox = sentinelhub.geometry.BBox(((706718.5069048709, 5054452.053308526), (715508.5069048709, 5064542.053308526)), crs='EPSG:25832')
export_tiff = ExportToTiffTask(feature=(FeatureType.DATA_TIMELESS, 'product'),
folder='data',
date_indices=None,
no_data_value=255,
image_dtype=np.uint8)
export_tiff.execute(eoptest, filename = 'test.tiff')
from eo-learn.
Ok did a cleaned fresh install on Python 3.8 and it's working (both on Ubuntu and Windows 10).
I've must have messed up when I first tried to do it, sorry for the bothering and thanks for your support.
from eo-learn.
Related Issues (20)
- [BUG] ImportError: cannot import name 'PointSamplingTask' from 'eolearn.geometry' HOT 5
- SI_LULC_pipeline notebook HOT 9
- readthedocs links not working HOT 1
- [FEAT] Enable timestamp filtering from interval end towards interval start HOT 5
- [BUG] SentinelHubInputTask downloads incorrect timestamps HOT 6
- [BUG] Issue with the SpatialResizeTask in ImportTiffPipeline when using the resolution approach HOT 5
- [BUG] eo-learn installation issue due to open-cv latest update on Dec 30, 2022. HOT 2
- Registration HOT 4
- [BUG] Failing tests on MacOS related to lock-related EOExecutor tests HOT 1
- [BUG] Reading EOPatches saved with eo-learn 0.10.1 with eolearn 1.4 HOT 2
- [HELP] Where has eopatch_to_dataset gone? HOT 6
- [FEAT] TDigestTask handle nans HOT 1
- [HELP] Error when I'm trying to run land-cover-map HOT 5
- [HELP] Perform sen2cor atmospheric correction on L1C EOPatch HOT 2
- [HELP] Using eo-learn for the classification of land surface types of Ukraine HOT 23
- Why I have problems with these imports? HOT 3
- ExecutableNotFound: failed to execute WindowsPath('dot'), make sure the Graphviz executables are on your systems' PATH HOT 3
- how do i fix this HOT 2
- `eo-learn` 1.5.0 migration guide
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eo-learn.