Git Product home page Git Product logo

Comments (9)

zigaLuksic avatar zigaLuksic commented on June 24, 2024
  1. The description states that we took the shape from the Natural Earth (as a .shp), then loaded the shape, applied a 500m buffer and saved it. You can find it in the repo under example_data/svn_border.geojson
  2. In the cell where the selection is visualized you can also see which cell the corresponding ID belongs to. The ID 616 was chosen since the area contains all of the main landcover classes. I just re-rean the notebook and don't get an error, did you perhaps change something?

from eo-learn.

zigaLuksic avatar zigaLuksic commented on June 24, 2024

Also, feel free to report any oddities you find, we're always keen to improve the examples

from eo-learn.

mertensu avatar mertensu commented on June 24, 2024

Thanks for your quick reply! Ah, cool. I actually did not even come so far in the tutorial yet and hence did see the selection visualisation.

One more thing: If I apply the code to another country (e.g. Germany) what do I need to change? The selection visualisation displays all bboxes shifted to the right of the actual country borders. I guess it has to do with the crs?

Thanks again!

from eo-learn.

zigaLuksic avatar zigaLuksic commented on June 24, 2024

Sounds like you should double-check that the CRS match, yes

from eo-learn.

mertensu avatar mertensu commented on June 24, 2024

Actually the CRS matches. Did not change anything compared to the Slovenia example.

country = country.to_crs(epsg=32633).buffer(500)

Plotting the bbox_gdf looks weird...

image

country crs:

`Derived Projected CRS: EPSG:32633
Name: WGS 84 / UTM zone 33N
Axis Info [cartesian]:

  • E[east]: Easting (metre)
  • N[north]: Northing (metre)
    Area of Use:
  • name: Between 12°E and 18°E, northern hemisphere between equator and 84°N, onshore and offshore. Austria. Bosnia and Herzegovina. Cameroon. Central African Republic. Chad. Congo. Croatia. Czechia. Democratic Republic of the Congo (Zaire). Gabon. Germany. Hungary. Italy. Libya. Malta. Niger. Nigeria. Norway. Poland. San Marino. Slovakia. Slovenia. Svalbard. Sweden. Vatican City State.
  • bounds: (12.0, 0.0, 18.0, 84.0)
    Coordinate Operation:
  • name: UTM zone 33N
  • method: Transverse Mercator
    Datum: World Geodetic System 1984 ensemble
  • Ellipsoid: WGS 84
  • Prime Meridian: Greenwich`

Country plot looks good:

image

from eo-learn.

zigaLuksic avatar zigaLuksic commented on June 24, 2024

The notebook uses UtmZoneSplitter so for large countries you'll get the bboxes with different CRS (corresponding to the appropriate UTM zone, see here). The notebook assumes that all the BBoxes share the same CRS when the geodataframe is constructed.

from eo-learn.

mertensu avatar mertensu commented on June 24, 2024

Thanks! And is there an easy way to circumvent this problem of different CRS and still get the same result?

from eo-learn.

zigaLuksic avatar zigaLuksic commented on June 24, 2024

Working over multiple CRS brings a whole set of issues. However for this example I believe you should only have problems when displaying results (the bbox_gdf seems to only be used for plotting purposes).
Another angle is also that here we focus on only 9 EOPatches, partially to conserve data, and also because we the LGBM model for predictions we don't need to have an enormous amount of data. So you can just focus on a sub-area of Germany in order to run this notebook.

from eo-learn.

zigaLuksic avatar zigaLuksic commented on June 24, 2024

Assuming it was resolved due to inactivity

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.