Git Product home page Git Product logo

slepian's Introduction

DOI

Supported by the National Science Foundation under grant EAR-1550732.

Welcome to the Slepian installation instructions!

This repository contains installation and demo files for the Slepian software to install all prerequisites from the repository slepian_alpha, etc.

The software runs on Matlab and Octave, which you can obtain for free from https://www.gnu.org/software/octave/download.html

There is also a folder containing introductory texts: edu. Check out for example the tutorial to spherical harmonics.

Installation instructions

To be able to use the installation functions setup.m and, in case you are using Octave, the Octave prep function prep_octave.m, you will need to have Git installed:

https://git-scm.com/download/

Once git is installed, open a Command Prompt window, switch to the folder in which you would like to install the Slepian software, and run

git clone https://github.com/Slepian/Slepian.git

Once the repository is cloned start Matlab or Octave, change to your newly created directory Slepian and, in Octave or Matlab, run the setup function

setup()

Running in Octave

To finalize the instalation for Octave, run in Octave

prep_octave()

this is only necessary the first time you are using the software.

To initialize the software (set paths, etc), run in Octave

initialize_octave

The first time you run initialize_octave, the program will take a while to complete because it downloads and installs necessary additional octave packages. Once the packages are installed, octave will simply load them when running this script. This will be much faster.

To also load/install advanced packages that will only run if your system has the corresponding programs installed (NetCDF, GDAL), run

initialize_octave_adv

If the package installation for the advanced packages fails you will still be able to use most functions.
Some special functions such as export to GMT may not work but this can be fixed at a later time (install NetCDF and run initialize_octave_adv again).

You will need to run initialize_octave (and initialize_octave_adv, if required) every time you start Octave but it will only install the packages once, so it will be much faster the next time you run it.

After that you are ready to go. Try out

demos_slepian_golf(2)

orgra

demos_slepian_hotel(1)

etc.

If the figures look weird, close all figures, run

graphics_toolkit('gnuplot')

and try again.

Running in Matlab

After starting Matlab, switch into the Slepian folder and run in Matlab

initialize

After that you are ready to go. Try out

demos_slepian_golf(2)

or

demos_slepian_hotel(1)

etc.

If some of the demos run into problems you may be missing the Mapping Toolbox or other Matlab toolboxes. You can either purchase them from MathWorks or try out Octave (see above).

Keeping the software updated

This repository and all the slepian_alpha etc repositories are regularly updated. To keep your software up to date I included the Matlab/Octave function

update_all()

To avoid conflicts when updating I recommend that if you change any of provided files in your folder, that you rename them. This way, an update will simply overwrite the provided files and will ignore your new functions/files/scripts.

Please let us know if you run into any issues.

slepian's People

Contributors

alainplattner avatar harig00 avatar kyleejoford avatar maxvonhippel avatar sarahkroeker 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.