[Thread Prev][Thread Next][Index]

[ferret_users] SHF transformation on time axis



Hi all,

I have a time series (annual values) of a variable GPP, with L as a time axis and J as the land surface model axis (19 models). I want to shift the variable GPP by N years on its time axis.

I tried using the transformation l=@SHF with a shift of `itau` but it doesn’t work as itau is a vector on the J axis, itau being model dependent.

 

I tried let GPP_lag = GPP[l=@SHF:-`itau`] but ferret doesn’t allow it. See below:

yes? list itau

             VARIABLE : INT(TAUEXG_NOW + 0.5) - OFFSET

             SUBSET   : 19 points (Y (model))

             X        : 0.5 to 2.5

             TIME     : 05-DEC-2010 12:00 to 02-DEC-2020 12:00

 1    /  1:  14.00

 2    /  2:  20.00

 3    /  3:  26.00

 4    /  4:  16.00

 5    /  5:  10.00

 6    /  6:  18.00

 7    /  7:  15.00

 8    /  8:  18.00

 9    /  9:  16.00

 10   / 10:   ....

 11   / 11:  14.00

 12   / 12:  11.00

 13   / 13:   9.00

 14   / 14:  19.00

 15   / 15:  14.00

 16   / 16:  11.00

 17   / 17:  17.00

 18   / 18:  19.00

 19   / 19:  20.00

yes? 

yes? let gppG_lag=gppG[L=@SHF:-`itau`]

 **ERROR: invalid command: grave accent doesnt evaluate to scalar

          itau

 

Any suggestion on how to shift the time axis of a variable with the shift value itau being a vector, not a scalar, would be really appreciated.

Thank you.

Pierre

 

 

Prof. Pierre Friedlingstein
University of Exeter
Faculty of Environment, Science and Economy
Dept. of Mathematics and Statistics

Laver Building, Room 720
North Park Road
Exeter, EX4 4QE, UK
Phone +44 1392 725279
Mobile +44 777 094 1126
Twitter @PFriedling

http://emps.exeter.ac.uk/mathematics/staff/pf229

 

 

 


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

Privacy Policy | Disclaimer | Accessibility Statement