Git Product home page Git Product logo

Comments (6)

zigaLuksic avatar zigaLuksic commented on June 24, 2024 1

Did a clean pip install eo-learn on Python 3.8 (on Ubuntu) and it worked with the code you posted above.

environment.txt

from eo-learn.

mlubej avatar mlubej commented on June 24, 2024

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.

zigaLuksic avatar zigaLuksic commented on June 24, 2024

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.

mlubej avatar mlubej commented on June 24, 2024

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.

sbrisson-sudo avatar sbrisson-sudo commented on June 24, 2024

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.

sbrisson-sudo avatar sbrisson-sudo commented on June 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.