[gradsusr] Get minimum and maximum value from a Time-Longitude plot
Jennifer M Adams
jadams21 at gmu.edu
Mon Jan 9 15:12:31 EST 2017
The min and max values of any displayed grid will appear in the output when using ‘set gxout stat’ or ’set stat on'. —Jennifer
On Dec 26, 2016, at 8:55 PM, Lyndon Mark Olaguera <olagueralyndonmark429 at gmail.com<mailto:olagueralyndonmark429 at gmail.com>> wrote:
Hi Kathryn,
It does not work for. I also tried the max(variable,t=1,t=2) but this gives me a very small number.
I am attaching here the sample netcdf file and my script in plotting the time longitude plot.
'sdfopen filt_olr_anom_1975.nc<http://filt_olr_anom_1975.nc/>'
'set display color white'
'c'
'set lon 80 180'
'set gxout contour'
'set ccolor 1'
*'set cint 10'
'set t 43 53'
'set y 1'
'set yaxis 43 53'
'define tt=ave(bf,lat=12.5,lat=22.5)'
'd tt'
Link of the file:
https://drive.google.com/file/d/0B9faET7Bc2o8aXB1dVhUZUNDVHc/view?usp=sharing
I want to get the maximum value, say between lon 80 and lon 90, time 43 to time 44.
Many thanks in advance for the help,
Lyndz
On Tue, Dec 27, 2016 at 10:51 AM, Lyndon Mark Olaguera <olagueralyndonmark429 at gmail.com<mailto:olagueralyndonmark429 at gmail.com>> wrote:
Hi Kathryn,
It does not work for. I also tried the max(variable,t=1,t=2) but this gives me a very small number.
I am attaching here the sample netcdf file and my script in plotting the time longitude plot.
'sdfopen filt_olr_anom_'year'.nc'
'set display color white'
'c'
'set lon 80 180'
'set gxout contour'
'set ccolor 1'
*'set cint 10'
'set t 43 53'
'set y 1'
'set yaxis 43 53'
'define tt=ave(bf,lat=12.5,lat=22.5)'
'd tt'
Many thanks for the help,
Lyndz
On Tue, Dec 27, 2016 at 1:00 AM, Kathryn Sellwood - NOAA Affiliate <kathryn.sellwood at noaa.gov<mailto:kathryn.sellwood at noaa.gov>> wrote:
"set lon lonval" "d maxval(variable, t=1,t=2)
On Mon, Dec 26, 2016 at 1:14 AM, Lyndon Mark Olaguera <olagueralyndonmark429 at gmail.com<mailto:olagueralyndonmark429 at gmail.com>> wrote:
Dear all,
Is there an easy way to estimate the minimum value and maximum value from a time-longitude plot (minimum and maximum value per longitude and time).
I am using grads 2.1.0.oga.1. I tried to use the amin() function but in the grads window, it gives an error: unknown command amin().
Many thanks,
Lyndz
_______________________________________________
gradsusr mailing list
gradsusr at gradsusr.org<mailto:gradsusr at gradsusr.org>
http://gradsusr.org/mailman/listinfo/gradsusr
_______________________________________________
gradsusr mailing list
gradsusr at gradsusr.org<mailto:gradsusr at gradsusr.org>
http://gradsusr.org/mailman/listinfo/gradsusr
_______________________________________________
gradsusr mailing list
gradsusr at gradsusr.org<mailto:gradsusr at gradsusr.org>
http://gradsusr.org/mailman/listinfo/gradsusr
--
Jennifer Miletta Adams
Center for Ocean-Land-Atmosphere Studies (COLA)
George Mason University
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20170109/d60e7d52/attachment.html
More information about the gradsusr
mailing list