[Thread Prev][Thread Next][Index]

Re: [ferret_users] selecting months




Dear Patil
             In this script, you can mask the data for the JJAS and MAM. You have to change your time and variable name according to your data.

use "test.nc"
define axis/t/units=months/edges/t="15-jan-2000":"15-dec-2010":1/calendar=360_days tmonthly

let var_anm=var_data[gt=tmonthly@asn]    ! variable anomaly is the new variable name
let month=mod(l[gt=var_anm],12)
let mask1 = if month ge 3 and month le 5 then 1
let mask2 = if month ge 6 and month le 9 then 1
!<<<<<<<<<<<<<<<<<<<<<<<<<masking for  mam & jjas<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<!
let var_mam = var_anm*mask1
let var_jjas = var_anm*mask2
define axis/t/units=years/edges/t="15-jan-2000":"15-dec-2010":1/calendar=360_days tyearly
let var_mam_yearly = var_mam[gt=tyearly@ave]
let var_jjas_yearly = var_jjas[gt=tyearly@ave]

list var_mam_yearly
list var_jjas_yearly

 

On Sat, Feb 11, 2017 at 4:27 PM, Nitin Patil <nitinpatil85@xxxxxxxxx> wrote:
Dear all,

I have 10 yrs of monthly data in netcdf. I have to plot the average of
only JJAS and MAM months from 10 yrs of data, Can anyone have any idea
to select in ferret?

--
--
Regards,
Nitin Patil



--
Regards

Abhishek Savita

Research Scholar (Earth System Science Technology)
Center For Oceans, Revers, Atmoshphere & Land Science Technology
Indian Institute of Technology, Kharagpur
+91-8609704619

 

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

Privacy Policy | Disclaimer | Accessibility Statement