Hi Ryo, Your suggestion to use YSEQUENCE was great. It got the variable onto the J axis.
! Manually add the metres per y grid (taken from ocean model output) let y_metres = ysequence({1.74779531E+05, …, 1.74779531E+05}) I then needed to go one step further and put the variable on the dimension I was interested in. Did this using: ! put it on the latitude axis from the tracer grid let y_metres_j = y_metres[gy=tracer_grid@asn] After that I could do all my calcs. And, just for your curiosity, I was trying to calculate the volume transport through the face of each grid box in an ocean model using the u,v velocities. Pearse From: Ryo Furue [mailto:furue@xxxxxxxxxx]
Hi Pearse,
That's exactly where you use the YSEQUENCE function: let y_meters = YSEQUENCE( { . . . your list of values . . . } ) Having said that, I wonder how you will be using this variable. Depending on that, there may be a better way to proceed. Cheers, Ryo
|