let cover2 = IF cover EQ 2 THEN cover
list cover2
If you want values between 2 and 4
let cover2_4 = IF cover GE 2 AND cover LE 4 THEN cover
list cover2_4
These commands will define the new variable on the same grid as cover with missing values replacing values outside of the chosen range.
For shading, you can use the levels qualifier:
shade/levels=(2,2,1) cover
See more in the Ferret User's guide at
http://ferret.wrc.noaa.gov/Ferret/Documentation/Users_Guide/current/fer_html.htm
under list and shade
Joe McLean
---------------------------------------------------
Steve Knox wrote:
I have a netcdf file of landuse coverages.
How can I list distinct "cover" values?
netcdf ogevemap10km {
dimensions:
lat = 317 ;
lon = 525 ;
variables:
float lat(lat) ;
lat:long_name = "Latitude" ;
lat:units = "degrees_north" ;
lat:point_spacing = "even" ;
lat:grid_interval = "0.110000 degree" ;
float lon(lon) ;
lon:long_name = "Longitude" ;
lon:units = "degrees_east" ;
lon:point_spacing = "even" ;
lon:grid_interval = "0.110000 degree" ;
int cover(lat, lon) ;
cover:_FillValue = -2147483647 ;
cover:long_name = "cover" ;Thanks,
Steve Knox
NREL
CSU
stevek@nrel.colostate.edu