comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » How to create 4D data matrix from 1D arrays?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
How to create 4D data matrix from 1D arrays? [message #86588] Thu, 21 November 2013 07:41
atmospheric physics is currently offline  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
[Message index]
 
Read Message
Previous Topic: Determinant of a matrix
Next Topic: Question: plots not working

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:05:52 PDT 2025

Total time taken to generate the page: 0.00456 seconds