Code Monkey home page Code Monkey logo

Comments (3)

dugalh avatar dugalh commented on August 20, 2024

q-mosaic will not give good results in all situations, but this does look a bit odd. Please could you provide code, or a command line to re-create this image.

from geedim.

orbitfold avatar orbitfold commented on August 20, 2024

GeoJSON

{
  "type": "FeatureCollection",
  "features": [
    {
      "type": "Feature",
      "properties": {},
      "geometry": {
        "coordinates": [
          [
            [
              3.2320803252100063,
              6.60534144003347
            ],
            [
              3.2320803252100063,
              6.317907838094598
            ],
            [
              3.5334997324700907,
              6.317907838094598
            ],
            [
              3.5334997324700907,
              6.60534144003347
            ],
            [
              3.2320803252100063,
              6.60534144003347
            ]
          ]
        ],
        "type": "Polygon"
      }
    }
  ]
}

Code:

    polygon = data["features"][0]["geometry"]
    coll = gd.MaskedCollection.from_name('COPERNICUS/S2_SR_HARMONIZED')
    coll = coll.search(start_date="2019-01-01", end_date="2020-01-01", region=polygon, cloudless_portion=0.0)
    comp_im = coll.composite(method='q-mosaic', region=polygon)
    comp_im.download(output_path, region=polygon, crs='EPSG:32735', scale=10, max_tile_size=8)

from geedim.

dugalh avatar dugalh commented on August 20, 2024

q-mosaic is working correctly for your example from what I can tell. The component images span a range of wet/dry conditions, and the composite consists of parts of these different images where they happened to have the largest distance to cloud.

from geedim.

Related Issues (17)

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.