Skip to content

datalogistics/libdlt

Repository files navigation

dlt tools

Introduction

The packaged version of this project generates two tools:

  • eodn_listener : Listen for and download new files using a subscription mechanism
  • eodn_download : Download tool for existing files stored in EODN-IDMS

Arguments

The tools have set of common arguments:

-s , --scenes  : A comma-separated list of scenes (matches against `metadata.scene` field)
-r , --regex   : A regular expression that matches against scene names.
-f , --filter  : A filename filter regular expresion, allowing for matches by file extension, for example.
-l , --list    : Only list files, do not perform download operation

Specifying a path to download folders (eodn_download only)

The above filters may be used in conjunction with the following directory options. The download tool will create local folders relative to the EODN path specified (i.e., within your current working directory).

-p , --path      : Specify an absolute path in the EODN-IDMS directory hierarchy from which to download files.
-R , --recursive : Recurse into subdirectories.
  • Example: download all PNG files within specified directory.
eodn_download -p /Landsat/LC8/006/040/2016 -f ".png"
  • Example: Recursively download all JPG files within the specified folder that match the scene regex.
eodn_download -p /Landsat/LC8/016 -R -f ".jpg" -r "LC8.*014.*"

General testing procedure [ Vagrant ]

Testing requires installation of lors-tools and python. Currently dlt-tools supported systems is restricted by the support for lors-tools and hence the following are supported :

  • Centos 6,7 - 32 or 64 bit
  • RHEL 6,7

Install vagrant from https://www.vagrantup.com/downloads.html All the various environments are present as vagrant file with an init script to install dlt-lors and dlt-tools from the yum repo. Additionaly the home folder has been shared as /e , so this can be used to directly install and try dlt-tools.

Run vagrant up && vagrant ssh on these images from their respective folder and use the shell to test it out.

lors_download -t 10 -b 5m -V 1 -f <Exnode selfRef>

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors