Code Monkey home page Code Monkey logo

sws_tools's Issues

Stereoplots: Wrong setup of Scientific colour maps by F. Crameri

First reported by @yvonnefroehlich in PR #4.

This issue focuses on an error in the function SWS_Analysis_BASIC_stereoplot.m regarding setting up the Scientific colour maps by F. Crameri.

By default, each MATLAB structure (one per colormap) contains 256 records or hues (.mat files available from Zenodo). Here, this is unchanged used to visualize the fast polarization direction (phi) with a value range of -90:1:90. As the colormap is not adjusted to fit to this different value range, the color-value assignment is wrong. Also, the related figures shown in the README are wrong.

One option is to use a MATLAB file exchange function (or https://github.com/chadagreene/crameri), as it is done in PR #4. However, this function is not updated promptly after a new release of the SCM. Of course, users can build the required mat structure by themselves (I do this). Despite this, I am currently thinking about finding another solution (thus I closed PR #4).

Example (using this function as provided, without any adjustments to make the plot look nice)
Stereo_crameri_color_value_assingement

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.