private void setColorScaleParams ( ) { if ( dataMinMaxType == ColorScale . MinMaxType . hold && ! isNewField ) return ; isNewField = false ; GeoReferencedArray dataArr = readHSlice ( wantLevel , wantTime , wantEnsemble , wantRunTime ) ; //else // dataArr = makeVSlice(stridedGrid, wantSlice, wantTime, wantEnsemble, wantRunTime); if ( dataArr != null ) { MAMath . MinMax minmax = MAMath . getMinMaxSkipMissingData ( dataArr . getData ( ) , dataState . grid ) ; colorScale . setMinMax ( minmax . min , minmax . max ) ; colorScale . setGeoGrid ( dataState . grid ) ; } }
set colorscale limits missing data