Obviously ... no "automatic way" ... this is a customized application.
Something like ....
load ".../contributed.ncl"
function mk148x112(x[*][*])
begin
N = 148
M = 112
X = new ( (/N,M/), typeof(x), getFillValue(x) )
X = 0.0
X(1:,1:) = (/ x /)
copy_VarAtts( x, X)
; if coordinate arrays are wanted you must create them
return( X )
end
f = addfile(...)
z = mk148x112( f->Z )
good luck
Mary Haley wrote:
>
> I'm afraid there's no automatic way to do this in NCL. Does anybody
> out there know if you can do something like this with the netCDF
> operators?
>
> --Mary
>
> On Fri, 4 May 2007, Xiaoming Hu wrote:
>
>> Dear all
>>
>> I am wondering if there is a easy way to expand all the arrays in
>> NetCDF by 1? I mean currently the dimension of the arrays is
>> 147*111, I want to increase the dimension to 148*112. It is fine to
>> put 0 to the expanded grid cells, I mean for last column and last row
>> in the new NetCDF file.
>>
>> Thanks a lot
>>
>> Xiaoming
>> _______________________________________________
>> ncl-talk mailing list
>> ncl-talk_at_ucar.edu
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>
-- ====================================================== Dennis J. Shea tel: 303-497-1361 | P.O. Box 3000 fax: 303-497-1333 | Climate Analysis Section | Climate & Global Dynamics Div. | National Center for Atmospheric Research | Boulder, CO 80307 | USA email: shea 'at' ucar.edu | ======================================================Received on Wed May 09 2007 - 10:35:51 MDT
This archive was generated by hypermail 2.2.0 : Thu May 10 2007 - 09:24:01 MDT