Giter Club home page Giter Club logo

pyhat_qgis's Introduction

Installation

1. Install Anaconda (Miniconda) from: https://conda.io/miniconda.html.

  • NOTE: If you are using a windows machine, you will need to open the anaconda terminal to execute the commands below.

  

2. Create and activate a conda environment:

  • conda create -n qgis_pyhat
  • conda activate qgis_pyhat
  • NOTE: If you want to restart installation, you should remove the qgis_pyhat environment and create a new one.
    • conda deactivate
    • conda env remove -n qgis_pyhat

  

3. To install the PyHAT library and dependencies:

  • conda config --add channels conda-forge
  • conda config --add channels usgs-astrogeology
  • conda install -c usgs-astrogeology pyhat

  

4. To install QGIS:

  • On windows: conda install -c conda-forge qgis
  • On linux: conda install -c conda-forge qgis
  • On OSX: conda install -c conda-forge qgis

  

5. Download the PyHAT QGIS plugin repo: https://github.com/USGS-Astrogeology/pyhat_qgis.git

  • Click on the green "Clone or Download" button
  • Click "Download Zip"

  

6. Finish installation through QGIS:

  • Run QGIS: $ qgis

  • On the bar at the top, click "Plugins > Manage and Install Plugins..."

  • On the left, select "Install from ZIP" Example of plugin menu

  • Select the ZIP file downloaded in Step 5, hit "Install Plugin"

  • On the left, select "Installed" Enable plugin install

  • You should see PyHAT listed as one of the plugins.

  

Running the plugin

  • On the bar at the top in QGIS you should now see 'PyHAT'
  • Click on it to see the two different menus for algorithms: M3, CRISM
  • Make sure to have a layer (image) selected, and then click on any algorithm name
  • You should now be able to view your new image in QGIS

  

NOTE: The images are saved on your computer, to change the path to somewhere you can find follow these steps:

  1. Click on PyHAT on the top menu
  2. Click on 'Setup Outpath', a pop-up window should have appeared. Example of plugin menu
  3. Enter the FULL path of where you want to store your images i.e. /home/your_username/Desktop/
  4. Click okay and start going!

  

Example Use Case

1. Download this .tif to use as sample data: M3_4030seg_L2_aristcrater.tif

  

2. In QGIS, open the sample tif file as a layer

Input Layer

  

3. Select from the PyHAT option at the top:

  • PyHAT > M3 > Pipe > bd1050

    

4. A new layer will have been placed in your view

Output Layer

pyhat_qgis's People

Contributors

tgiroux avatar austinsanders avatar thareusgs avatar jlaura 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.