[Thread Prev][Thread Next][Index]

Re: [ferret_users] @ASN isn't work in Ferret Ver 6.96



Hi,
As you say Andrew, adding /MODULO to the definition allows this script to work correctly.

The behavior of Ferret does seem to have changed from older versions; a time axis in year 0 or year 1, with a range of a year or less SHOULD automatically be treated as a modulo axis, but this one is not marked as modulo.  So that's what you're seeing, Dongwon. I suspect that's a detail in how the axis is handled with its units of "month".

By the way, in recent versions of Ferret, the climatological axes are pre-defined within Ferret, so there's no need for

   use climatological_axes
   cancel data climatological_axes


Ansley



On 1/21/2016 8:16 AM, Andrew Wittenberg - NOAA Federal wrote:
Dongwon,

You forgot to add the "modulo" attribute to your climatological axis:

define axis/t=15-jan-0000:14-dec-0000:1/units=months/modulo tax

Andrew


On Thu, Jan 21, 2016 at 2:43 AM, Dongwon Yi <yidongwonyi@xxxxxxxxx> wrote:
Hi, I installed new version of ferret v6.96.

But @ASN isn't work when I calculate climatology.
Is it bug?? I reinstalled but the @ASN still isn't work.
(It's check that @ASN is working on other lower version of ferret.)

I added example file.

use sst.nc

use climatological_axes
cancel data climatological_axes

let tmp_clim = sst[gt=month_gregorian@mod]
define axis/t=15-jan-0000:14-dec-0000:1/units=months tax
define grid/t=tax tgrid
let clim = tmp_clim[g=tgrid@asn]
let ano = sst - clim[g=sst@asn]
plot sst,clim[g=sst@asn]

Inline image 1
Fig 1. the climatology(clim) isn't repeated as well in Ferret V6.96

Inline image 2
Fig 2. the climatology(clim, red line) is repeated as well in Ferret lower version.

Thanks

Dong-Won Yi

C.P: +82-10-4704-1305
Department of Marine Sciences and Convergent Technology

Hanyang 
University, ERICA, 
Sa 3-dong, Sangrok-gu, Ansan-Si
Gyeonggi-do, South Korea






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

Privacy Policy | Disclaimer | Accessibility Statement