Custom Query (986 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (616 - 618 of 986)

Ticket Owner Reporter Resolution Summary
#744 arango Done Added several colormaps and other Matlab scripts
Description

There are several new colormap functions that are now located in the new matlab/colormaps sub-directory:

https://www.myroms.org/trac/cmocean.png

  • cm_algae.m: A perceptually-uniform 256 colormap by Kristen Thyng, it can be used for phytoplankton (sequential).
  • cm_amp.m: A perceptually-uniform 256 colormap by Kristen Thyng (sequential).
  • cm_balance.m: A perceptually-uniform 256 colormap by Kristen Thyng, it can be used for sea surface height (diverging colors).
  • cm_curl.m: A perceptually-uniform 256 colormap by Kristen Thyng, it can be used for wind curl (diverging color).
  • cm_deep.m: A perceptually-uniform 256 colormap by Kristen Thyng, it can be used for bathymetry (sequential).
  • cm_delta.m: A perceptually-uniform 512 colormap by Kristen Thyng, it can be used for freshwater (diverging).
  • cm_dense.m: A perceptually-uniform 256 colormap by Kristen Thyng, it can be used for density (sequential).
  • cm_gray.m: A perceptually-uniform 256 colormap by Kristen Thyng (sequential).
  • cm_haline.m: A perceptually-uniform 256 colormap by Kristen Thyng, it can be used for salinity (sequential).
  • cm_ice.m: A perceptually-uniform 256 colormap by Kristen Thyng, it can be used for sea ice (sequential).
  • cm_matter.m: A perceptually-uniform 256 colormap by Kristen Thyng (sequential).
  • cm_oxy.m: A perceptually-uniform 256 colormap by Kristen Thyng, it can be used for oxygen concentration (sequential).
  • cm_phase.m: A perceptually-uniform 256 colormap by Kristen Thyng (constant lightness).
  • cm_solar.m: A perceptually-uniform 256 colormap by Kristen Thyng (sequential).
  • cm_speed.m: A perceptually-uniform 256 colormap by Kristen Thyng, it can be used for velocity magnitude (sequential).
  • cm_tempo.m: A perceptually-uniform 256 colormap by Kristen Thyng (sequential).
  • cm_thermal.m: A perceptually-uniform 256 color map by Kristen Thyng, it can be used for temperature (sequential).
  • cm_turbid.m: A perceptually-uniform 256 colormap by Kristen Thyng, it can be used for sediment (sequential).

The following functions were added for colormap processing:

  • cbarrow.m: Places triangle-shaped endmembers on both ends of the current colorbar by Chad A. Greene.
  • cmocean.m: Colormap package for oceanographic applications by Chad A. Greene.
  • colorspace.m: Transform a color image between color representations by Pascal Getreuer.

Other miscellaneous functions:

  • append_contact.m: Appends nesting contact points data to ROMS regular grid data. the resulting grid arrays are expanded to contain the data in the contact region.
  • ad_interpolator.m: Adjoint of intepolator.m, which spatially interpolates ROMS field to horizontal path/trajectory. It can be use to set-up functional in various adjoint-based algorithms, like adjoint sensitivities and observation impacts.
  • interpolator.m: Given any 2D or 3D ROMS variable FIELD, linearly interpolate to the requested path (Xpath, Ypath) in spherical or Cartesian coordinates. If input variable is 3D, the horizontally interpolated values are returned at all levels of the s-coordinate.
  • nc_dfixed.m: Creates a new NetCDF file with the requested record unlimited dimension changed to a fixed dimension.
#745 arango Done Updated Matlab Colormaps
Description

The color maps released on src:ticket:744 were modified to allow interpolation according to the number of colors requested. All the color maps have 256 values, except cm_delta with 512 values.

All the color maps have an optional input argument for the number of colors desired. For example, cm_balance.m has:

% CM_BALANCE: 256 color palette from CMOCEAN
%
% cmap = cm_balance(M)
%
% BALANCE colormap by Kristen Thyng.
%
% On Input:
%
%    M        Number of colors (integer, OPTIONAL)
%
% On Ouput:
%
%    cmap     Mx3 colormap matrix
%
% Usage:
%
%    colormap(cm_balance)
%    colormap(flipud(cm_balance))
%
% https://github.com/matplotlib/cmocean/tree/master/cmocean/rgb
%
% Thyng, K.M., C.A. Greene, R.D. Hetland, H.M. Zimmerle, and S.F DiMarco, 2016:
%   True colord of oceanography: Guidelines for effective and accurate colormap
%   selection, Oceanography, 29(3), 9-13, http://dx.doi.org/10.5670/oceanog.2016.66
%

If we want to overwrite the default number of colors, we can use for example:

>> colormap(cm_balance(128));

or equivalent

>> cmocean('balance', 128);

notice that in cmocean the cm_ prefix is dropped. Read documentation by issuing the help command in Matlab.


Here are some of the examples with various color maps:

cm_balance:

https://www.myroms.org/trac/balance.png

cm_curl:

https://www.myroms.org/trac/curl.png

cm_delta:

https://www.myroms.org/trac/delta.png

cm_haline:

https://www.myroms.org/trac/haline.png

cm_matter:

https://www.myroms.org/trac/matter.png

cm_speed:

https://www.myroms.org/trac/speed.png

cm_solar:

https://www.myroms.org/trac/solar.png

cm_thermal:

https://www.myroms.org/trac/thermal.png

viridis:

https://www.myroms.org/trac/viridis.png

#746 arango Done Updated ROMS Plotting Package
Description

I updated few things in the ROMS plotting package which uses the NCAR/GKS library:

  • Added lots of new color palettes derived from Kristen Thyng colormaps. The are palettes for 60, 90, 120, and 240 colors and its inverse order:
    • algae_*.pal and algae_*_flip.pal
    • amp_*.pal and amp_*_flip.pal
    • balance_*.pal and balance_*_flip.pal
    • curl_*.pal and curl_*_flip.pal
    • deep_*.pal and deep_*_flip.pal
    • delta_*.pal and delta_*_flip.pal
    • dense_*.pal and dense_*_flip.pal
    • haline_*.pal and haline_*_flip.pal
    • ice_*.pal and ice_*_flip.pal
    • inferno_*.pal and inferno_*_flip.pal
    • magma_*.pal and magma_*_flip.pal
    • matter_*.pal and matter_*_flip.pal
    • parula_*.pal and parula_*_flip.pal
    • phase_*.pal and phase_*_flip.pal
    • plasma_*.pal and plasma_*_flip.pal
    • solar_*.pal and solar_*_flip.pal
    • speed_*.pal and phase_*_flip.pal
    • tempo_*.pal and tempo_*_flip.pal
    • thermal_*.pal and thermal_*_flip.pal
    • turbid_*.pal and turbid_*_flip.pal
    • viridis_*.pal and viridis_*_flip.pal
  • Added logic to process data with two types of vertical coordinate index order:
    • Level k=1 is the bottom and level k=km is the surface: ocean depths are negative, values decrease from top to bottom (ROMS case, Ldecresing=T).
    • Level k=1 is the surface and level k=km is the bottom: ocean depths are positive, values increase from top to bottom.
  • Added several scripts to plot from multiple files, aggregated OpenDaP server, and two and three nested grid applications:
    • plt_1grid_ncfiles.sh
    • plt_2grid_ncfiles.sh
    • plt_3grid_ncfiles.sh
    • plt_2grid_opendap.sh
    • plt_2grid_opendap.sh
Batch Modify
Note: See TracBatchModify for help on using batch modify.
Note: See TracQuery for help on using queries.