GithubHelp home page GithubHelp logo

dhi-gras / majalicious Goto Github PK

View Code? Open in Web Editor NEW
0.0 8.0 0.0 37 KB

:lollipop: Orchestrate MAJA by creating a lot of symlinks

License: GNU General Public License v3.0

Python 91.24% Dockerfile 8.76%
remote-sensing french-bot atmosphere

majalicious's Introduction

majalicious

Run MAJA V1 on Sentinel 2 data by creating a lot of symlinks

Dead

NB: MAJA V1 does not work for data past 6 November 2018, where Copernicus changed L1C format. ๐Ÿ’ฅ

Purpose

This little script automates the processing of Sentinel 2 timeseries with MAJA V1. It indexes by date all L1C and MAJA-produced L2A products in the folders you provide and creates symlinks to the ones MAJA needs to run in L2NOMINAL or L2BACKWARD mode.

This way, you e.g. always have the most recent L2A product for the current L1C product you are processing and you do not need to move any files around when starting to process a new scene.

Don't worry, it's not malicious. It's majalicious!

Building

docker build -t maja

Running

To see the full interface, run

docker run maja

For an actual run, you need to mount the input and auxillary data into the docker container. The default is that you have, inside the container, a folder /maja-aux with the following contents:

/maja-aux
  userconf
  GIPP
  DTM/{tile}

If you follow this pattern, you can omit the --src-userconf, --src-gipp, and --src-dtm flags.

Furthermore, you need to provide a --src-input directory that contains your .SAFE input files and a --dst-output directory for the L2A output.

The --dst-work-root directory must be inside the container (i.e. not on a mounted resource) for the symlinking to work.

A full example command is the following:

docker run -v /my/maja/aux:/maja-aux -v /my/maja/data:/maja-data maja --src-input /maja-data/input --dst-output /maja-data/output --tile 32UNG

Docs

This script is a re-implementation of the recipes at https://github.com/olivierhagolle/Start_maja

Please consult that repo for more information on why things are done this way.

majalicious's People

Contributors

j08lue avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

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.