Git Product home page Git Product logo

cmsc6950_project's Introduction

CMSC6950_Project

Course Project for CMSC6950 Spring 2021

Ruixin Song


Software setup

Install conda

Though the latest Python version is already 3.9.x when writing this document, conda with Python-3.8.x environment is more recommanded in terms of to be compatible with the Visualization Toolkit (VTK), which will be introduced later.

Install Capytaine

After setting up conda, install the Capytaine module by:

conda install -c conda-forge capytaine

Visualization dependencies

After setting up capytaine module, we need to install the visualization dependencies that were not inlusive in the capytaine: matplotlib and VTK (Visualization Toolkit).

According to the Capytaine installation, we can simply execute:

conda install matplotlib
- conda install vtk
+ pip install vtk

However, the conda installing VTK part is not working on my machine, with an error like "vtk is incompatible with your python environment", since the VTK version accessed by conda can only support to Python 3.7.x.

From the developers, the latest VTK wheel has been published supports Python-3.8, which can be reached by PyPl. Therefore, using pip instead of conda while installing VTK.

netCDF and xarray

For loading the intermediate netCDF files generated by computational scripts, please make sure you have netCDF module in your machine. If you don't have one, simply run:

- conda install netCDF4
+ pip install netCDF4

Both might work for you! But I would recommend using PyPl since Conda failed to install netCDF module on my machine with some package conflicts happened.

xarray module should have been installed within capytaine. You may check by running python in command-line and trying import xarray. If it goes wrong, execute:

pip install xarray

If all work fine, the environment is set up!


About the repository

  • Folder examples: I played with some instances in the capytaine documentation and backup the code and results here.

  • Script radiation.py and wave.py: computational tasks

  • Script plot_radiation.py and plot_wave.py: visualizing the computaitonal tasks

  • Folder img: storage of the visualization results

  • Project report files and bibliography

  • Makefile:

    • Command make deepclean will remove the report.pdf and the figures in directory img.
    • Command make will re-generalize all the files removed by make deepclean and delete the intermidiate data files.

Workflow

The workflow of the project can be described as following:

Project workflow

cmsc6950_project's People

Contributors

tsuzzy avatar

Watchers

 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.