[Thread Prev][Thread Next][Index]

Re: [ferret_users] time axis probleme with shade



Title: signature
Hi,
I see the behavior you're reporting, but only with Ferret v7.3.  Defining a similar grid and a variable on the grid:

yes? define axis/t="15-AUG-2016 00:00":"15-AUG-2016 11:00":3600/units=seconds/t0=1-jan-1900 time
yes? define axis/z=1:58:1/depth/units=meters zaxis
yes? let var = L[gt=time] *RANDU(z[gz=zaxis])

yes? shade var

Is indeed giving a blank plot with v7.3.  The plot is working fine with more-recent versions of Ferret, so there must have been an undiscovered bug in that version.  If you update you should be fine.  We are working on a release of Ferret v7.5 by the end of this week, so you might wait a few days for that.

By the way, you could redefine the time axis to have units of hours, and it behaves fine:

yes? use myfile.nc
yes? define axis/t="15-AUG-2016 00:00":"15-AUG-2016 11:00":1/units=hours/t0=1-jan-1900 `var,return=taxis`
Replacing definition of axis TIME
           *** NOTE: grid GSI1 used by data set mfile
           *** NOTE: Redefinition may alter apparent contents of data set
yes? shade var

Ansley

On 4/17/2019 6:57 AM, Jean-Francois LE ROUX wrote:
Hi

I have a simple file of temperature data according to depth and time. There is no hole.
yes? list TEMP_Z
             VARIABLE : temperature (DEG C)
             FILENAME : GF_20.nc
             SUBSET   : 58 by 12 points (DEPTH (m)-TIME)
      ... listing every   4th point
                           3      7      11     15     19     23     27     31     35     39     43     47     51     55     59   
                            1      5      9     13     17     21     25     29     33     37     41     45     49     53     57
 15-AUG-2016 00:00 /  1:  15.77  15.11  14.08  12.96  11.65  10.17   8.82   7.66   6.68   5.86   5.11   4.48   3.94   3.47   3.08
 15-AUG-2016 01:00 /  2:  15.76  15.04  13.95  12.76  11.36   9.82   8.50   7.36   6.40   5.61   4.89   4.29   3.79   3.36   3.00
 15-AUG-2016 02:00 /  3:  15.80  15.22  14.24  13.17  11.91  10.43   9.03   7.79   6.73   5.85   5.06   4.37   3.81   3.33   2.94
 15-AUG-2016 03:00 /  4:  15.82  15.21  14.17  13.04  11.67  10.09   8.66   7.42   6.37   5.53   4.77   4.13   3.61   3.16   2.79
 15-AUG-2016 04:00 /  5:  15.85  15.21  14.14  13.05  11.78  10.39   9.08   7.88   6.83   5.95   5.13   4.42   3.83   3.32   2.89
 15-AUG-2016 05:00 /  6:  15.86  15.29  14.26  13.15  11.80  10.30   8.92   7.68   6.63   5.78   5.01   4.36   3.81   3.33   2.92
 15-AUG-2016 06:00 /  7:  15.82  15.21  14.21  13.09  11.73  10.18   8.75   7.49   6.40   5.55   4.79   4.16   3.66   3.24   2.89
 15-AUG-2016 07:00 /  8:  15.74  14.83  13.63  12.25  10.66   9.11   7.80   6.67   5.70   4.93   4.26   3.69   3.27   2.92   2.63
 15-AUG-2016 08:00 /  9:  15.72  14.74  13.48  11.99  10.33   8.77   7.50   6.41   5.45   4.70   4.03   3.46   3.05   2.71   2.44
 15-AUG-2016 09:00 / 10:  15.79  15.03  13.95  12.73  11.29   9.78   8.47   7.33   6.33   5.50   4.74   4.05   3.50   3.02   2.64
 15-AUG-2016 10:00 / 11:  15.80  15.03  13.94  12.78  11.46  10.08   8.85   7.75   6.79   5.99   5.25   4.57   3.98   3.44   2.98
 15-AUG-2016 11:00 / 12:  15.83  15.15  14.10  12.97  11.67  10.32   9.10   8.00   7.00   6.19   5.45   4.79   4.23   3.71   3.25

When I plot for a single level it's ok, but shade is empty (with FERRET v7.3)
If I delete the variable'time', the shade works according to the indices.

My file is like this :
netcdf GF_20 {
dimensions:
    time = UNLIMITED ; // (12 currently)
    z = 58 ;
variables:
    double TEMP_Z(time, z) ;
        TEMP_Z:long_name = "temperature" ;
        TEMP_Z:units = "DEG C" ;
    double time(time) ;
        time:units = "seconds since 1900-01-01" ;
        time:standard_name = "time" ;
    double z(z) ;
        z:units = "meters" ;
        z:point_spacing = "even" ;
        z:axis = "Z" ;
        z:positive = "down" ;
        z:standard_name = "depth" ;


Thanks
--
Jean-François Le Roux
--
Ansley Manke
NOAA/PMEL Science Data Integration Group
7600 Sand Point Way NE
206-526-6246

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

Privacy Policy | Disclaimer | Accessibility Statement