LAURA GLASTRA
  • Home
  • Education
  • Science Communication
  • Research Experience
  • Extracurriculars
  • Contact

Science Communication

How to install ccplot on MacOS (BigSur 11.0.1)

4/12/2020

0 Comments

 
I found ccplot extremely difficult to properly install. I believe this method allows you to do so, though I still find errors when running ccplot command-line prompts as well as when running Python files with a ccplot.hdf import.  The order below is what allowed me to install the toolkit in a virtual environment. See the previous post on installing basemap for how to create a virtual environment as well as how to install basemap. 

Proceed below if you have Python >= 3.8 and Anaconda installed, and you are working in an activated virtual environment. 
  1. Install numpy, matplotlib, cython, and basemap in this order as directed in previous post.
  2. Install pytz
    1. conda install -c anaconda pytz
  3. Download ccplot-1.5.4 from ccplot webpage and add to your virtual environment directory
  4. In your command line, run the following
    1. cd ccplot-1.5.4
    2. python setup.py build
    3. python setup.py install
  5. Check that ccplot successfully installed by running the following (it should print out the working version and license information for ccplot)
    1. ccplot -V
0 Comments

How to install basemap on MacOS (BigSur 11.0.1)

1/12/2020

0 Comments

 
Below is a brief summary on how to install basemap. I have not been successful in installing it globally. When installed in a virtual environment, there are no issues. Below are instructions for how to do so; make sure to follow and install dependencies to your virtual environment in the sequence provided. 

Note: This assumes you already have Python >= 3.8 and Anaconda installed.
  1. Create a virtual environment:
    1. conda create --name myenv
  2. Activate your virtual environment and cd into it
  3. Install numpy
    1. conda install numpy
  4. Install matplotlib
    1. conda install matplotlib
  5. Install cython
    1. conda install cython
  6. Install basemap
    1. conda install -c conda-forge basemap

Basemap should successfully install this way. You will be able to access it in your virtual environment only through this method. 
0 Comments

    Author

    Write something about yourself. No need to be fancy, just an overview.

    Archives

    December 2020
    November 2020

    Categories

    All

    RSS Feed

Powered by Create your own unique website with customizable templates.
  • Home
  • Education
  • Science Communication
  • Research Experience
  • Extracurriculars
  • Contact