[gradsusr] Calculating mean/max/min values within the boundaries an imported shapefile.

Kevin Levey klevey at customweather.com
Thu Feb 1 14:16:56 EST 2018


THUE 01FEB18: 1115PST

All,

I've been a GRADS user for over 20 years and nothing stumps me more than the maskout functions. I really do go through the user groups and see how people have resolved their issues thanks to the many contributing users (and thanks to you all).

So, here is my problem that I've been at for the last few days.

I need to calculate the mean of any of my defined variables WITHIN the boundaries of a particular shapefile that I have imported (e.g. like a province in Spain).

Anyone be willing to offer a few lines of code. Everything I’ve tried does not seem to give me the answer I should be getting.

Many thanks in advance. 

Regards,

Kevin M Levey, MSc in Oceans and Atmospheric Sciences (University of Cape Town)
Vice President of Operations
CustomWeather, Inc.
San Francisco, California, USA

"Taking the World by Storm!"

http://www.customweather.com
http://www.myforecast.com
http://www.1stweather.com

cell: 415-794-0411
work: 415-777-3566
email: klevey at customweather.com





More information about the gradsusr mailing list