Giter Site home page Giter Site logo

isos's Introduction

Isos

In search of sentinel is intended for data management of Sentinel-1 and 2 scenes. Isos relies on a postgresql server running with postgis extension within a Singularity container, and a secondary container with the python module installed. Data of known Sensors are detected via file search and ingested into a metadata table that can be addressed via pyroSAR.

General usage:

The main process is running at a two-day interval at 11PM via crontab:

#-----------------------------------------------------------------------------
#Min     Hour    Day     Month   Weekday Command
#-----------------------------------------------------------------------------
0       23      */2     *       *       /usr/local/bin/singularity exec -e -c --bind /.../isos_scripts:/tmp,/search_dir:/search_dir /.../isos_py.sif bash /tmp/exec_script.sh /search_dir/ dbname user 1234 8888

connect with pyroSAR:

This requires the below stated branch of pyroSAR.

# access from pyroSAR just as normal, with table statement..
# oh, this will create tables data and duplicates.. oh well...
from pyroSAR import Archive

with Archive('isos_db', postgres=True, 
             user='user', password='password', 
             port=8888, add_geometry=True) as db:
    # define normal search parameter, but change table to 'sentinel1data'!
    db.select(vectorobject=None, mindate=None, 
              maxdate=None, processdir=None,
              recursive=False, polarizations=None, 
              use_geometry=False, table='sentinel1data')

installation and setup:

Place the provided environment at /aux/testsingenv.yml in the same folder with the .def files, create folders isos_scripts, pg_run, and pg_data. Then run following to create the singularity containers:

$ singularity build (--sandbox) isos_py.sif isos_py.def
$ singularity build (--sandbox) isos_postgres.sif isos_postgres.def

Run the containers:

$ nohup singularity run  -c --bind pg_data:/var/lib/postgresql/data,pg_run:/run/postgresql/ isos_postgres.sif &
$ singularity exec -e -c --bind /isos_scripts:/tmp,/search_dir:/search_dir /isos_py.sif bash /tmp/exec_script.sh /search_dir/ dbname user 1234 8888

Manual Installation via pip:

$ pip install git+https://github.com/MarkusZehner/isos.git
$ pip install git+https://github.com/MarkusZehner/pyroSAR.git@add_geometry

isos's People

Contributors

markuszehner avatar

Stargazers

 avatar

Watchers

 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.