Git Product home page Git Product logo

snapgraphmassiveprocessing's Introduction

SNAPGraphMassiveProcessing

This is a script used for massive processing of images using Graphs from SNAP. It takes as input, (1) an input directory with an undefined number of image. The directory may contain subdirectories with images and the images within the subdirectories are also processed, (2) an output directory, where the processed images will be exported and inside that directory it creates the same subdirectories as the input directory, (3) the directory with name of the SNAP graph to be used for processing the images, (4) the extension of the input images (e.g. ".tif"), (5) the extension of the output images Notes: (a) Do not forget the "." while defining the extension of the images e.g. ".tif" is a valid extension to be inserted. (b) Make sure that inputs and outputs of the graph files are changed to allow definition from the Command prompt. Use ${in} for input and ${out} for output. Se example of graph included in the repository.

compursory arguments: -inImgDir Input directory of images -outImgDir Output directory for exporting pre-processed images -graph Directory of the SNAP graph to use in massive processing -inExt Extension of input image -outExt Extension of output image

for help use the following arguments: -h, --help show this help message and exit

How to run the script: python automated1.py -inImgDir -outImgDir -inExt -outExt -graph <graph.xml> > "commands.bat"

Example on how to run the script: python automated1.py -inImgDir "D:\ASTARTE_Data\Level2_discardedData\ERS-1" -outImgDir "D:\ASTARTE_Data\Level2\ERS-1" -inExt .tif -outExt .tif -graph "D:\Scripts\Feb2020\myGraph.xml" > "D:\Scripts\Feb2020\reprojectERS1_1.bat"

The ">" writes the generated commands into the ".bat" file. Once the executable ".bat" file is created, you may run it to execute the commands.

Additional Notes: (a) Make sure that Python is added to the Path during installation of SNAP, alternatively add it manually in the Path Variables so tha you can run the command "gpt" from command prompt.

Acknoledgements: These scripts were developed as part of the "ASTARTE" project (EXCELLENCE/0918/0341), which is co-financed by the European Regional Development Fund and the Republic of Cyprus through the Research Innovation Foundation.

This video tutorial will help you use it efficiently: https://www.youtube.com/watch?v=iEEMn7h35nU

snapgraphmassiveprocessing's People

Contributors

art-n-maths avatar

Stargazers

Abhishek Mhamane avatar

Watchers

James Cloos avatar  avatar

Forkers

aimunirawi

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.