Git Product home page Git Product logo

Comments (2)

lukasValentin avatar lukasValentin commented on July 23, 2024 1

I propose to add the information to the yaml that is created optionally summarizing the main configurations for the mapper.
I would differentiate between:

  • local archive as data source
  • STAC archive as data source
    • in this case I'd provide the name of the STAC catalog (including its API version)

from eodal.

lukasValentin avatar lukasValentin commented on July 23, 2024

A new attribute data_source has been added to the MapperConfigs class. The logic behind is

data_source = f'STAC ({settings.STAC_BACKEND.URL})' if  settings.USE_STAC else 'local'

Thus, a yaml-file created from the MapperConfigs now looks like:

collection: sentinel2-msi
created_at: 2023-05-26 14:58:46.499058
created_by: graflu
data_source: STAC (https://planetarycomputer.microsoft.com/api/stac/v1)
eodal_version: 0.2.0
feature:
  attributes: {}
  epsg: 4326
  geometry: POLYGON ((8.243751434656897 46.93733845009315, 8.236481171106442 47.07964926539655,
    8.477574762024535 47.08246032864037, 8.48254288262916 46.943352951710885, 8.243751434656897
    46.93733845009315))
  name: geometry
metadata_filters:
- cloudy_pixel_percentage < 25
- processing_level == Level-2A
time_end: 2022-06-30 00:00:00
time_start: 2022-06-01 00:00:00

In this example, the STAC backend was used to read data from Microsoft Planetary Computer (data_source: STAC (https://planetarycomputer.microsoft.com/api/stac/v1)).

To provide backwards-compatibility with older versions, data_source is set to UNKNOWN when reading a yaml file generated with EOdal version <=0.2.0.

from eodal.

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.