How to create 4D data matrix from 1D arrays? [message #86588] |
Thu, 21 November 2013 07:41 |
atmospheric physics
Messages: 121 Registered: June 2010
|
Senior Member |
|
|
Hello,
My query may be a basic one but I have no immediate clue. I am actually trying to create a netCDF file using IDL.
My coordinate variables include - longitude, latitude, time and level
nx=15 ; No. of longitudes
ny=15 ; No. of latitudes
; nstations=15 ; (lon,lat)
nz=1 ; No. of levels
nt=86400L ; No. of time observations
To say, I have 15 pairs of (lon,lat). So, total 15 station data (in 15 columns).
Suppose my dependent variable is temperature.
I have the temperature data in 15 cols X 86400 rows. Note that my latitude and longitude have [15 cols X 1 row] dimensions each i.e., single row array.
I want to associate or convert the temperature data into 3 dimensions of (lon, lat, lev) and later to 4 dimensions (lon, lat, lev, time). Can anyone suggest a function in IDL that can do this easily?
Thanks in advance
|
|
|