NOAA-PMEL / Ferret

The Ferret program from NOAA/PMEL
https://ferret.pmel.noaa.gov/Ferret/
The Unlicense
55 stars 20 forks source link

time-average is computed for range outside the limits of the non-modulo time axis #1020

Open karlmsmith opened 6 years ago

karlmsmith commented 6 years ago

Reported by @AnsleyManke on 9 Aug 2010 19:56 UTC reported by David Wang: http://www.pmel.noaa.gov/maillists/tmap/ferret_users/fu_2010/msg00443.html

Starting with v6.03 or so:


yes? use monthly_navy_winds.cdf
yes? show data
     currently SET data sets:
    1> /home/dwang/software/ferret/fer_dsets/data/monthly_navy_winds.cdf  (default)
 name     title                             I         J         K         L
 UWND     ZONAL WIND                       1:144     1:73      ...       1:132
 VWND     MERIDIONAL WIND                  1:144     1:73      ...       1:132

yes? shade uwnd[l=133]
 **ERROR: illegal limits: UWND does not exist at L=133
          Axis extremes are L=1:132
!!! Ferret correctly points out l=133 is out of axis limit.

yes? shade uwnd[l=133:144`@ave`]
!!! Ferret shows a map. But l=133:144 is out of axis limit! The time axis is not a modulo axis.

Migrated-From: http://dunkel.pmel.noaa.gov/trac/ferret/ticket/1748

karlmsmith commented 6 years ago

Comment by @AnsleyManke on 16 Jun 2015 18:35 UTC This bug is caused by the fix to #1475 in get_var_context. That fix applies the fact that @AVE will reduce the range to a point, too soon. A better fix for 1475 will be needed, but I am leaving it alone for now.