Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor colormap creation #117

Merged
merged 11 commits into from
Jan 11, 2023
Merged

Commits on Dec 6, 2022

  1. Refactor colormap creation

    Started work on refactoring colormap creation.  Move some functionality
    from Satpy to here.  Deprecate passing a string containing a CSV to
    ``Colormap.from_file``, this should now use ``Colormap.from_string``
    instead.
    gerritholl committed Dec 6, 2022
    Configuration menu
    Copy the full SHA
    8fac754 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    95ca14d View commit details
    Browse the repository at this point in the history

Commits on Dec 7, 2022

  1. Configuration menu
    Copy the full SHA
    8636ca5 View commit details
    Browse the repository at this point in the history

Commits on Dec 8, 2022

  1. Configuration menu
    Copy the full SHA
    6852678 View commit details
    Browse the repository at this point in the history
  2. typos

    gerritholl committed Dec 8, 2022
    Configuration menu
    Copy the full SHA
    d15ce61 View commit details
    Browse the repository at this point in the history

Commits on Dec 9, 2022

  1. Rewrite from_sequence_of_colors

    Improve documentation in colormap class and rewrite
    from_sequence_of_colors in terms of other methods available.
    gerritholl committed Dec 9, 2022
    Configuration menu
    Copy the full SHA
    96a4a2a View commit details
    Browse the repository at this point in the history
  2. refactor and rename method

    Refactor from_xrda and rename it from_array_with_metadata.  This is the
    method with somewhat funny behaviour that was copied from
    satpy.composites.ColormapCompositor.build_colormap.
    It includes some behaviour that I cannot explain, such as cutting off
    the last value of the colour palette when meanings are not provided.
    I copied this behaviour as-is from Satpy.
    gerritholl committed Dec 9, 2022
    Configuration menu
    Copy the full SHA
    ef967ea View commit details
    Browse the repository at this point in the history
  3. PEP8 fixes

    gerritholl committed Dec 9, 2022
    Configuration menu
    Copy the full SHA
    373dbcf View commit details
    Browse the repository at this point in the history

Commits on Dec 12, 2022

  1. Make colormap trunation optional

    Add a flag to disable the behaviour to remove the last value from the
    colormap/values.
    gerritholl committed Dec 12, 2022
    Configuration menu
    Copy the full SHA
    16451c2 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'main' into refactor-colormap

    Fixxing one merge conflict.
    gerritholl committed Dec 12, 2022
    Configuration menu
    Copy the full SHA
    cbb9b5b View commit details
    Browse the repository at this point in the history

Commits on Jan 11, 2023

  1. Moved test method out of class

    Moved the test-cmap-from-string test method out of the class and changed
    it into its own function, because it doesn't read from a file.
    gerritholl committed Jan 11, 2023
    Configuration menu
    Copy the full SHA
    1d232f7 View commit details
    Browse the repository at this point in the history