[Thread Prev][Thread Next][Index]

[ferret_users] SIGDIG hysteresis!



Ferret developers,

I'm trying to control the format of contour labels
and I'm bewildered by the SIGDIG qualifier.  I suppose
there is a bug there.

I did this test:

  yes? set data levitus_climatology
  yes? set region/y=60s:40s
  yes? contour/lev=(5,15,1)/k=1 temp          !--(0)
  yes? contour/lev=(5,15,1)/k=1/sigdig=1 temp !--(1)
  yes? contour/lev=(5,15,1)/k=1/sigdig=2 temp
  yes? contour/lev=(5,15,1)/k=1/sigdig=3 temp
  yes? contour/lev=(5,15,1)/k=1/sigdig=4 temp
  yes? contour/lev=(5,15,1)/k=1/sigdig=5 temp
  yes? contour/lev=(5,15,1)/k=1/sigdig=4 temp
  yes? contour/lev=(5,15,1)/k=1/sigdig=3 temp
  yes? contour/lev=(5,15,1)/k=1/sigdig=2 temp
  yes? contour/lev=(5,15,1)/k=1/sigdig=1 temp
  yes? contour/lev=(5,15,1)/k=1  temp
  !. . . Go back to (1) . . .

The results are

Without SIGDIG:"5.0",   "6.0",   . . . , "12.0"
SIGDIG=1 gives "5.0",   "6.0",   . . . , "12.0"
SIGDIG=2 gives "5",     "6",     . . . , "12"
SIGDIG=3 gives "5.0",   "6.0",   . . . , "12.0"
SIGDIG=4 gives "5.00",  "6.00",  . . . , "12.00"
SIGDIG=5 gives "5.000", "6.000", . . . , "12.000"
SIGDIG=4 gives "5.0000","6.0000",. . . , "12.0000"
SIGDIG=3 gives "5.000", "6.000", . . . , "12.000"
SIGDIG=2 gives "5.00",  "6.00",  . . . , "12.00"
SIGDIG=1 gives "5.0",   "6.0",   . . . , "12.0"
Without SIGDIG:"5",     "6",     . . . , "12"

As you can see, there is "hysteresis"!  I've verified
that the above cycle exactly repeats.

Since at least I've found the pattern, I can exactly
control the format of my contour labels. :-)

FERRET v6.81  
Linux 2.6.32-279.1.1.el6.x86_64 32-bit
 - 07/23/12 10-Jan-13 11:48     

Cheers,
Ryo


[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce / NOAA / OAR / PMEL / Ferret

Privacy Policy | Disclaimer | Accessibility Statement