Giter Site home page Giter Site logo

feature_extractor's Introduction

Feature Extractor Script

The purpose of the CLI script is to automate the process of downloading specified images from https://eol.jsc.nasa.gov/SearchPhotos/

Installing

Step 1. Install Conda:

A powerful package manager and environment manager that you use with command line commands at the Anaconda Prompt for Windows, or in a Terminal window for macOS or Linux.

https://docs.anaconda.com/anaconda/install/

Step 2. Get Conda Running:

Follow the sections 'Before you start', 'Contents' and 'Starting conda' on Conda's offical user guide site.

https://conda.io/docs/user-guide/getting-started.html

Step 3. Set Up the Environment:

Create a new environment with a Python version of 3.4 or greater.

Requests should be the only non-built-in Python library imported into the script. If you don't already have requests installed as a package, open your anacondona prompt and type:

pip3 install requests 

Downlading the repository to your local machine

Step 1. Follow the link below and confirm you are in the 'master' branch.

https://github.com/txgisci/feature_extractor

Step 2. Click the green drop down option titled 'Clone or download'.

Step 3. Download the zip file, open your command prompt and navigate to the newly downloaded 'feature extractor' repository

To get the script running

NOTE: All available feature files are already present in the 'inputs' folder. You can also create a custom list of image ids you want to download and place the csv file in the inputs folder.

The script takes 1 argument: The name of the file you want to read in

An example command would be something like
python feature_extractor.py basin.csv

Optional arguments

  1. By default, the script downloads the high resolution version of the image. To download the low resolution version include the flag '--small'
python feature_extractor.py basin.csv --small
  1. By default, the script downloads images without crosshairs. To download the images with crosshairs include the flag '--with_crosshairs'
python feature_extractor.py basin.csv --with_crosshairs

The crosshairs image only comes in the high-resolution option. Including the '--small' flag won't affect the default output.

Expected output

The script will display progress messages, alerting the user everytime an image is successfully processed.

All images will populate in a folder named the same name of the csv file the user typed in.

This new folder will appear in the 'outputs' folder.

feature_extractor's People

Contributors

j-ann-c avatar jessica-cruz-dev avatar chikaj avatar bradley-johnson avatar

Watchers

James Cloos avatar  avatar AaronH avatar  avatar  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.