[Thread Prev][Thread Next][Index]

Re: [ferret_users] Re: return=tstart,p=1



Hi David,

I reported this same issue four years ago (Ansley -- it's bug #762). Years 0000 and 0001 appear to be dropped from the display, probably in connection with logic that in some cases is used to interpret these two years as "climatological". Ansley's workaround should get you back on track. (It would be nice to get the issue fixed, though.)

Andrew

On Mon, 25 Feb 2008, David Wang wrote:

Hi,

The starting year is actually 1, not 0. I was mistaken. But the problem
persists. I wonder why Ferret drops off 0001 in time axis strings.

yes? show g/l=1:24 temp
    GRID GJG1
 name       axis              # pts   start                end
 LON       LONGITUDE            1mr   0E                   0E
 LAT       LATITUDE             1 r   0                    0
 DEPTH     DEPTH (m)            1 r-  5                    5
 TIME      TIME              6000 i   16-JAN 12:00         16-DEC-0500
12:00

       L     T                   TBOX      TBOXLO                TSTEP
(days)
       1>  16-JAN 12:00:00       29.5      01-JAN 18:00:00         15.5
       2>  15-FEB 00:00:00       29.5      31-JAN 06:00:00         45
       3>  16-MAR 12:00:00       30        01-MAR 18:00:00         74.5
       4>  16-APR 00:00:00       30.5      31-MAR 18:00:00         105
       5>  16-MAY 12:00:00       30.5      01-MAY 06:00:00         135.5
       6>  16-JUN 00:00:00       30.5      31-MAY 18:00:00         166
       7>  16-JUL 12:00:00       30.75     01-JUL 06:00:00         196.5
       8>  16-AUG 12:00:00       30.75     01-AUG 00:00:00         227.5
       9>  16-SEP 00:00:00       30.5      31-AUG 18:00:00         258
      10>  16-OCT 12:00:00       30.5      01-OCT 06:00:00         288.5
      11>  16-NOV 00:00:00       30.5      31-OCT 18:00:00         319
      12>  16-DEC 12:00:00       30.75     01-DEC 06:00:00         349.5
      13>  16-JAN-0002 12:00:00  30.25     01-JAN-0002 00:00:00    380.5
      14>  15-FEB-0002 00:00:00  29.5      31-JAN-0002 06:00:00    410
      15>  16-MAR-0002 12:00:00  30        01-MAR-0002 18:00:00    439.5
      16>  16-APR-0002 00:00:00  30.5      31-MAR-0002 18:00:00    470
      17>  16-MAY-0002 12:00:00  30.5      01-MAY-0002 06:00:00    500.5
      18>  16-JUN-0002 00:00:00  30.5      31-MAY-0002 18:00:00    531
      19>  16-JUL-0002 12:00:00  30.75     01-JUL-0002 06:00:00    561.5
      20>  16-AUG-0002 12:00:00  30.75     01-AUG-0002 00:00:00    592.5
      21>  16-SEP-0002 00:00:00  30.5      31-AUG-0002 18:00:00    623
      22>  16-OCT-0002 12:00:00  30.5      01-OCT-0002 06:00:00    653.5
      23>  16-NOV-0002 00:00:00  30.5      31-OCT-0002 18:00:00    684
      24>  16-DEC-0002 12:00:00  30.75     01-DEC-0002 06:00:00    714.5



D.

On Mon, Feb 25, 2008 at 1:18 PM, David Wang <climater@xxxxxxxxx> wrote:

Hello Ferreters,

I'm using `var,return=tstart,p=1` to return the starting year and likewise
the ending year. However when the starting year is 0, the command returns
nothing (a null string) which causes troubles when I'd like to assign the
value to other variables/symbols. My intention is to calculate multi-year
means and variances from monthly data by the approach described here at
http://ferret.pmel.noaa.gov/FERRET_17sep07/FAQ/analysis/annual_from_monthly.html
I need the starting and the ending years of the original time axis to
define a new time axis. Any clues?

yes? say `temp,return=tstart`
 !-> MESSAGE/CONTINUE 16-JAN 12:00
16-JAN 12:00

yes? say `temp,return=tstart,p=1`
 !-> MESSAGE/CONTINUE



Thanks very much,
David





[Thread Prev][Thread Next][Index]

Contact Us
Dept of Commerce / NOAA / OAR / PMEL / TMAP

Privacy Policy | Disclaimer | Accessibility Statement