Giter VIP home page Giter VIP logo

Comments (3)

aTnT avatar aTnT commented on May 27, 2024 1

FYI, i was able to run Sen2Cor with Docker (i have created my own Sen2Cor docker image) with the output of getSentinel_data() and run prepSentinel(). The output of running Sen2Cor on Sentinel-2 L1C imagery + running prepSentinel() is equivalent to getting L2A imagery with getSentinel_data() + running `prepSentinel(). Note that L2A seems to be only available in the servers in Europe, so outside Europe one has to run Sen2Cor to generate L2A imagery. The steps i do to generate L2A imagery from L1C are:

  1. use getSentinel_data() to download L1C imagery
  2. unzip the .zip file to make the .SAFE folder available
  3. use the Docker image atavares\sen2cor to convert L1C to L2A imagery. An example usage command is docker run --rm -ti -v {/host/machine/mapped/folder/where/the/.SAFE/folder/is/located}:/data atavares/sen2cor /data/{name_of_SAFE_folder.SAFE}
  4. zip the generated output L2A .SAFE folder
  5. Run prepSentinel() on the L2A .zip file

Maybe some improvements to add to prepSentinel() are:

  • add somehow the names of the bands to the output .tif files. The L2A outputs are available with the names below in the original .SAFE data, but with prepSentinel() the band names get lost:

band.order <- list("aux" = c("AOT", "CLD", "SCL", "TCI", "WVP", "SNW"), "refl" = c("B01", "B02", "B03", "B04", "B05", "B06", "B07", "B08", "B8A", "B09", "B10", "B11", "B12"))

  • add a function input variable SAFE = true to avoid step 4 above (create a .zip file)

from getspatialdata.

16EAGLE avatar 16EAGLE commented on May 27, 2024

Good idea, will do so as soon as I find time to continue with the prep functions. Will include a function that binds to a present sen2cor installation.

from getspatialdata.

hfisser avatar hfisser commented on May 27, 2024

In the sen2r package is a Sentinel-2 preprocessing function accessing the Sen2Cor
software.
It also installs the software if not yet on the machine.

https://github.com/ranghetti/sen2r/blob/master/R/sen2cor.R

from getspatialdata.

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.