'reinit'
'q config'
say
say '************************************************************************'
say result
say '************************************************************************'
say
'sdfopen climatology.nc'
'q file'
say result
say '************************************************************************'
say '                        lat/lon unspecified'
say '************************************************************************'
'q dims'
say result
'set z 1'
'set t 1'
'define fieldtemp1 = ave(olr,t=1,t=12)'
'define avemodann = aave(fieldtemp1,g)'
'd avemodann'
say 'global annual averages'
say 'no regrid'
say result
'define modelolrann = regrid2(fieldtemp1,2.5,2.5,ba_p1,0.,-90)'
'd aave(modelolrann,g)'
say result
'define modelolrann = regrid2(fieldtemp1,2.5,2.5,ba_p1,1.25,-88.75)'
'd aave(modelolrann,g)'
say result
say '************************************************************************'
say '                        lat/lon specified'
say '************************************************************************'
'set x 1 144'
'set y 1 90'
'set z 1'
'set t 1'
'q dims'
say result
'define fieldtemp1 = ave(olr,t=1,t=12)'
'define avemodann = aave(fieldtemp1,g)'
'd avemodann'
say 'global annual averages'
say 'no regrid'
say result
'define modelolrann = regrid2(fieldtemp1,2.5,2.5,ba_p1,0.,-90)'
'd aave(modelolrann,g)'
say result
'define modelolrann = regrid2(fieldtemp1,2.5,2.5,ba_p1,1.25,-88.75)'
'd aave(modelolrann,g)'
say result
