GithubHelp home page GithubHelp logo

snap-contrib / vscode-remote-snap Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 1.0 30 KB

SNAP development container definition for the VS Code Remote - Containers extension

License: MIT License

Dockerfile 60.87% Shell 28.41% Python 10.71%
eo toolbox vscode docker

vscode-remote-snap's Introduction

vscode-remote-snap

Project Status: WIP โ€“ Initial development is in progress, but there has not yet been a stable, usable release suitable for the public.

A development container is a running Docker container with a well-defined tool/runtime stack and its prerequisites. The VS Code Remote - Containers extension allows you to clone a repository or open any folder mounted into (or already inside) a dev container and take advantage of VS Code's full development feature set.

The well-defined tool/runtime stack in this VS Code Remote container is:

  • ESA's SNAP EO Toolbox
  • SNAP snappy Python bindings
  • snapista, a SNAP Python thin layer on top of snappy for creating and running SNAP GPT processing graphs
  • Python development support tools such as flake8, black, mypy, etc.

Installation

To get started, follow these steps:

  1. Install and configure Docker for your operating system.

    Windows / macOS:

    1. Install Docker Desktop for Windows/Mac.

    2. Right-click on the Docker task bar item, select Settings / Preferences and update Resources > File Sharing with any locations your source code is kept. See tips and tricks for troubleshooting.

    3. If you are using WSL 2 on Windows, to enable the Windows WSL 2 back-end: Right-click on the Docker taskbar item and select Settings. Check Use the WSL 2 based engine and verify your distribution is enabled under Resources > WSL Integration.

    Linux:

    1. Follow the official install instructions for Docker CE/EE for your distribution. If you are using Docker Compose, follow the Docker Compose directions as well.

    2. Add your user to the docker group by using a terminal to run: sudo usermod -aG docker $USER

    3. Sign out and back in again so your changes take effect.

  2. On Windows set the environment variable HOME

  3. Under $HOME create two folders: data and results

  4. Install Visual Studio Code

  5. Install the Remote Development extension pack.

  6. Run Remote-Containers: Clone Repository in Container Volume... from the Command Palette (F1)

  7. Add the URL to this git repository: https://github.com/snap-contrib/vscode-remote-snap.git

  8. Select the Volume mode

  9. Wait a few minutes for the build to complete

Getting started with EO data

  1. Download and extract the Sentinel-1 product S1A_IW_GRDH_1SDV_20201228T170552_20201228T170617_035889_0433FB_D8C7 acquisition to $HOME/data

  2. Run the inspect_s1.py python script

Interactive Python

See https://code.visualstudio.com/docs/python/jupyter-support-py to learn about using interactive Python with Visual Studio Code

vscode-remote-snap's People

Contributors

fabricebrito avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

hypervineio

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.