Code Monkey home page Code Monkey logo

hershey890 / ucla_marine_data_visual Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 1.0 7.26 MB

UCLA Marine Data Visualization application/GUI in development in python for the Marine Operations Program at UCLA. Used to depict Ocean temperature along with GPS data ovelayed on a map. Check out the Marine Operations Program at: https://dept.atmos.ucla.edu/marineops

Python 100.00%
python mapping mapping-tools data-visualization cartopy matplotlib oceanography ucla marine ocean-sciences

ucla_marine_data_visual's Introduction

logo

UCLA_Marine_Data_Visual

[Work in progress, works fully but will be expanded] Data visualization application/GUI in development in python for the Marine Operations Program at UCLA. Used to depict Ocean temperature along with GPS data ovelayed on a map. Check out the UCLA Marine Operations Program for which this was developed at: https://dept.atmos.ucla.edu/marineops

Setup

To setup your environment to run this program, you must first install the following python packages: matplotlib, and cartopy. If you already have any of these installed you can just skip this step. You can use whatever method you'd like to install these packages, but I'm just giving the method I used here. Be patient, as installing some of these packages can take some time. Everytime conda asks you to Proceed([y]/n)?, type in y (read the prompt it gives you and only follow this within reason). An internet connection is required for the setup.

  1. Make sure you have python installed first
  2. Install conda (specifically minoconda, although anaconda also works, it just takes longer to install and has unneeded packages) from https://conda.io/miniconda.html.
  3. Open anaconda (do not close any pop ups while anaconda is being installed as this can cause issues)
  4. Check that conda.exe and python.exe are installed. If the file locations are not returned, uninstall and reinstall anaconda.exe. In anaconda:
where conda
where python
  1. Set up your anaconda environment. If you aren't running python 3.6, use whatever version you have (although you may want to update it).
conda create -n name_of_environment python=3.5

It will ask you to active the environment, in which case you must input:

conda activate name_of_environment

(to deactive an active environment, type in: conda deactivate).

  1. Install cartopy
conda install -c conda-forge cartopy
  1. Install an updated version of numpy
conda install numpy
  1. You can now close anaconda.

Running the program

  1. Put main.py, DataMapper.py, and SampleData.txt in the same file
  2. Open up command prompt, powershell, or terminal and navigate to the folder all the above programs are located in (should work using the cd command)
  3. Make sure you have an internet connection. This application downloads map data from online servers.
  4. Run the code with:
py main.py

GUI (example displays GPS and salinity): example data mapping

Other Notes

At the present the code only works with the format used in SampleData.txt. I intend to make it more general purpose so that any combination of GPS data x any other data type can be used. This is a simple fixes that will be improved upon shortly.

Admittedly, there are a lot of steps involved with setting up your environment to run this program, but it allows for the most rapid development of this software.

Acknowledgements:

This program was built based on matplotlib: https://matplotlib.org/users/installing.html#install-requirements, and cartopy: https://scitools.org.uk/cartopy/docs/latest/index.html

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.