Hi Sam, It sounds as if you've defined the grid you want, and defined a variable which is the original variable on your new grid. The thing to do next is to define expressions to do the operation on the variables/grids. Here's a variable with the data shifted so that the data that was at timestep 52 will be in timestep 53: let varshift = newvar[L=@shf:-1] This variable keeps what was in the original variable for 52 timesteps, and uses the shifted data in that last timestep. let var_final = if L LE 52 then newvar else varshift (By the way, this isn' really "appending" here, in the sense that we append when writing out data to a file. Instead it's defining a variable that has the desired grid and data once some or all of it is loaded into memory.) --Ansley On 4/7/2015 11:40 AM, Sam Rabin wrote:
|