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

Home » Public Forums » archive » Writing a 4D array to a HDF file
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Writing a 4D array to a HDF file [message #80136] Mon, 30 April 2012 05:46
Tim Trent is currently offline  Tim Trent
Messages: 1
Registered: April 2012
Junior Member
Hi

I am trying to write a 4d array using the following code in IDL:

sdsIDvmr = HDF_SD_Create(sdfileID, 'H2O_VMR',[400,12,120,800],/FLOAT)
HDF_SD_AddData, sdsIDvmr,vmr

Which returns the following error message:

% HDF_SD_ADDDATA: Unable to write the specified HDF-SD slice

I have used similar code to write 3D arrays (400,120,800) which has
worked but have had trouble trying to diagnose why this isn't working
in 4D. I have also tried changing the array from a float to a double
array which doesn't work either. Any insight you could offer would be
greatly appreciated.


Kind regards

Tim
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Time series.
Next Topic: Re: How to make an input parameters file??

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

Current Time: Wed Oct 08 15:33:30 PDT 2025

Total time taken to generate the page: 0.00526 seconds