Append array copy to itself


#1

Hi,

Say I have array

A, <value:float>[time=0:*,10,0,lat=0:93,10,0,lon=0:191,8,0]

assume also that time dimesion size is 1000.
How do I modify array A so that it will contain a copy of itself appended to itself along time dimesion, i.e. time dimesion size will become 2000?

Thanks


#2

Hi, sure:

insert(
 redimension(
  apply(A, new_time, time + 1000),
  <value:float> [new_time=0:*,10,0, lat=0:93,10,0, lon=0:191,8,0]
 ),
 A
)