[Thread Prev][Thread Next][Index]

Re: [ferret_users] Averaging rainfall values over India only



Hi,

It is also possible to create the country (or subregional) outline following the steps at:
http://www.pmel.noaa.gov/maillists/tmap/ferret_users/fu_2012/msg00051.html

and creating a mask (with 1 at every grid location inside the polygon and missing outside it) to use in calculations or graphics over only the region inside the border.
see: http://www.pmel.noaa.gov/maillists/tmap/ferret_users/fu_2012/msg00052.html
 
Jagadish

From: "Kaduk, Joerg (Dr.)" <jk61@xxxxxxxxxxxxxxx>
To: 'nitin patil' <nitinpatil85@xxxxxxxxx>; "ferret_users@xxxxxxxx" <ferret_users@xxxxxxxx>
Sent: Monday, October 29, 2012 9:22 AM
Subject: RE: [ferret_users] Averaging rainfall values over India only

Dear Nitin,
An easy, but a little cumbersome solution would be to define a mask of bad values and 1s where within India there are 1s and outside bad values and multiply precip with that mask before the averaging.
This is assuming you have set a bad value for you data set, and you don’t have that many grid points.
You probably have to put the mask on the correct axis.
Cheers,
Joerg
 
 
 
From: owner-ferret_users@xxxxxxxx [mailto:owner-ferret_users@xxxxxxxx] On Behalf Of nitin patil
Sent: 29 October 2012 06:21
To: ferret_users@xxxxxxxx
Subject: [ferret_users] Averaging rainfall values over India only
 
Dear All,
 
I am using the following script for averaging the rainfall values of one day over India only from my daily rainfall values from GCM but it averages also some area which is outside from India border. Is there is any way to average only India values which is in border?
 
 
let avg=precip[x=65:100@ave,y=5:40@ave,d=1,l=1]
 
 
 
--
Regards,
Mr. Nitin Patil
PhD Research Scholar,
Climate Studies Program,
Indian Institute of Technology (IIT) Bombay,
Powai, Mumbai - 400076, INDIA.
e-mail: nupatil@xxxxxxxxxx



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

Privacy Policy | Disclaimer | Accessibility Statement