Error setting RGB="TRUE" for cdo with magics plotting
Added by Yanchun He over 2 years ago
Hi,
According to the manual, we can define RGB color for plotting, see https://code.mpimet.mpg.de/projects/cdo/wiki/Tutorial#shaded
I can use normal standard color name for plotting.
However, seems like the CDO does not support recognising the RGB color for plotting with magics?
$ cdo -shaded,device=pdf,RGB="TRUE",colour_min="RGB(0.0;0.0;1.0)",colour_max="RGB(1.0;0.0;0.0)",colour_triad="CW" hflx.nc figure
Invalid parameter specification 'RGB=TRUE'
cdo shaded (Warning): Found Colour with 'RGB(r;g;b)' format, set parameter RGB='true' !
Invalid parameter specification 'colour_min=RGB(0.0;0.0;1.0)'
cdo shaded (Warning): Found Colour with 'RGB(r;g;b)' format, set parameter RGB='true' !
Invalid parameter specification 'colour_max=RGB(1.0;0.0;0.0)'
I uploaded the sample data to reproduce this error.
I tested CDO 1.9.8 and 2.0.5 with Magics enabled.
Any hints for this? Thanks!
Yanchun
Replies (2)
RE: Error setting RGB="TRUE" for cdo with magics plotting - Added by Uwe Schulzweida over 2 years ago
Hi Yanchun,
This is definitely a bug, thanks for the report! We will fix this bug in the next version 2.0.6.
Cheers,
Uwe
RE: Error setting RGB="TRUE" for cdo with magics plotting - Added by Yanchun He over 2 years ago
Hi Uwe,
Thanks for the reply, and looking forward to the next release!
Cheers,
Yanchun