[Thread Prev][Thread Next][Index]

Re: [ferret_users] Just pick up a particular month from monthlydata...



Hi Seon,

A very quick approach:

    let jan_sst = sst[l=1:100:12]
    let feb_sst = sst[l=2:100:12]
    etc ...

This will pluck every 12th month from the time series.  The axis of the result will be points spaced one year apart with cell boundaries midway between the points.

    - steve

=======================================

Rob Scott wrote:




This is how I would do it :

Suppose your monthly variable is called "sst"


! mask out months you don't want:
let month = l[gt=sst]   !month since Jan 1900 so 1=Jan, 2=Feb, 13=Feb, etc.
                        ! make sure you sst grid starts on Jan.


let jjason = if (mod(month,12) gt 5) and (mod(month,12) lt 12) then 1 else 1/0
let aso = if (mod(month,12) gt 7) and (mod(month,12) lt 11) then 1 else 1/0

let sst_season = sst * aso

! regrid onto yearly axis
define axis/t="01-JAN-1900":"31-DEC-2000":12/edges/units=month taxis_an
   !show axis/t taxis_an
let sst_season_an = area_season[gt=taxis_an@ave]

! there you go!
!
(though I'd like to know if there's a better way)

Hope that helps,
Rob





At 10:18 AM 2/10/2006, Seon Tae wrote:
Hi all

I have 100 year-monthly SST anomaly data averaged in NINO 3 region. I want to plot time series after picking up SST value of a particular month of each year.
I mean, for example, I want to obtain time series plot for January for 100 years.
I tried to find it in the Q and A archive on the website but i couldn't
Could you please help me?

Thank very much in advance.....
-Seon Tae-

Rob Scott
Research Associate
Institute for Geophysics
University of Texas at Austin
4412 Spicewood Springs Rd.
Building 600
Austin, TX
78759

Office: +1-512-471-0375


-- 
º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤º¤ø,¸¸,ø¤º

Steve Hankin, NOAA/PMEL -- Steven.C.Hankin@noaa.gov 
7600 Sand Point Way NE, Seattle, WA 98115-6349
ph. (206) 526-6080, FAX (206) 526-6744

[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement