One further note,
You can work around this with ppl xlab and ppl ylab
shade/set volume
ppl xlab `volume,RETURN=xaxis` (`volume,RETURN=xunits`)
ppl ylab `volume,RETURN=yaxis` (`volume,RETURN=yunits`)
ppl shade
Or, getting attribute information from Ferret, so that you have more
control over upper- and lower-case text:
!Define a symbol with the axis name in parentheses, so
that we can get the axis attributes.
yes? define symbol xaxname = (`rose,return=xaxis`)
!-> define symbol xaxname = (SALINITY)
yes? define symbol xaxunits = `($xaxname).units`
!-> define symbol xaxunits = PSU
yes? define symbol xaxlabel = `($xaxname).long_name` (($xaxunits))
!-> define symbol xaxlabel = Salinity (PSU)
! likewise for y
yes? shade/set volume
yes? ppl xlab ($xaxlabel )
yes? ppl ylab ($xaxlabel )
!-> ppl ylab Temperature (C)
yes? ppl shade
On 10/1/2010 9:51 AM, Ansley Manke wrote:
Hi
Olivier,
The axis labels don't use any of the attributes; they are just set
up to find a few known types of axes such as longitude, latitude,
and time; and label those. All other axes are labeled only with X,
Y, Z, T. The exception to this are PLOT/VS plots, where the axes
are labeled with the names of the two variables that are being
plotted.
It seems reasonable that if the axes are not spatial or time axes,
that Ferret should use the axis name, or an attribute such as
long_name. We'll look at the implications of doing that.
Ansley
On 9/30/2010 7:46 AM, Olivier Marti wrote:
Hi,
I have the following NetCDF file :
netcdf PHC3_1y_orca2_histo {
dimensions:
Salinity = 100 ;
Temperature = 100 ;
variables:
float Salinity(Salinity) ;
Salinity:units = "PSU" ;
Salinity:axis = "X" ;
Salinity:name = "Salinity" ;
Salinity:long_name = "Salinity" ;
Salinity:standard_name = "Salinity" ;
float Temperature(Temperature) ;
Temperature:units = "C" ;
Temperature:axis = "Y" ;
Temperature:name = "Temperature" ;
Temperature:long_name = "Temperature" ;
Temperature:standard_name = "Temperature" ;
float Volume(Temperature, Salinity) ;
Volume:units = "km^3" ;
Volume:long_name = "Volume,
S=[34.4:35.1:0.007],T=[-1.0:4.0:0.05]" ;
// global attributes:
:title = "S/T histogram from file
/dmnfs/cont003/p86mart/GRAF/DATA/PHC3_1y_orca2.nc" ;
:institution = "IPSL" ;
:comment = "Made by histogram_2D_compute.py" ;
:history = "Created Thu Sep 30 16:24:59 2010" ;
When I "SHADE" the variable "Volume", the axis are labelled as
"X (PSU)" and "Y (C)".
Which attributes should I set in the NetCDF file to have the
correct labeling : "Salinity (PSU)" and 'Temperature (C)". I've
tried "name", "standard_name" and "long_name" with no success.
Thanks
Olivier
PS: Ferret version is 6.61 on Linux(gfortran)
2.6.9-89.0.20.ELsmp - 04/28/10
|