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

Home » Public Forums » archive » Re: frustrated by hdf_sd_adddata
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: frustrated by hdf_sd_adddata [message #24200 is a reply to message #24187] Thu, 15 March 2001 08:18 Go to previous messageGo to previous message
George McCabe is currently offline  George McCabe
Messages: 23
Registered: June 1997
Junior Member
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
james,
<p>thanks for you many suggestions.
<p>can you tell me what do you mean by 'corrupt'. though i think that i
understand the use of idl's hdf procedures, my general experience is limited.
i am curious about occurances of hdf file corruption.
<p>this discussion is perhaps no longer relevant to my particular problem+solution.
today, under a new idl session writing data to the same HDF&nbsp;file with
the same code it works, so i am wondering about software interface errors,
buffer problems, etc. maybe i'll just pretend it never happened.
<p>thank you again,
<br>george
<br>&nbsp;
<p>James Kuyper wrote:
<blockquote TYPE=CITE>George McCabe wrote:
<br>>
<br>> hello,
<br>>
<br>> attempting to replace a subset of existing data in an HDF SD, using
<br>> idl procedure hdf_sd_adddata, receive the following error which i
can
<br>> not readily diagnose -
<br>> % HDF_SD_ADDDATA: Unable to write the specified HDF-SD slice.
<br>>
<br>> hdf opens, sd starts /RDWR ok, sd selected ok
<br>> i have veryfied the size and order of the data variable, count and
<br>> start keyword variables.
<br>>
<br>> help is appreciated,
<br>> george
<p>Some things to check:
<p>You might not have access. What are the file permissions, owner, and
<br>group membership?
<p>The file may be corrupt. Can you view the HDF file with ncdump, or
<br>similar utilities? Can you open it read-only, and view its contents
<br>using HDF_SD_GETDATA?
<p>Is this new code, or code that has already worked on a different file,
<br>but is failing with this one?
<p>You imply that you've already collected the following information, and
<br>that it checked out OK, but maybe you've misinterpreted it - could
you
<br>tell us:
<p>What values does HDF_SD_GETINFO give you for DIMS, HDF_TYPE, and TYPE?
<p>What values are you giving HDF_SD_ADDDATA for START, COUNT, and STRIDE?
<p>What do you get when you type
<p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; HELP,mydata
<p>where 'mydata' represents the name of the field you're passing as the
<br>data argument to HDF_SD_ADDDATA?</blockquote>

<pre>--&nbsp;
George McCabe (CUofA)
NASA / Goddard Space Flight Center / Code 693&nbsp;
Building 2, Room 151 / Greenbelt, MD 20771
voice: (301)286-8283, fax: (301)286-0212
george.mccabe@gsfc.nasa.gov</pre>
&nbsp;</html>
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Regular Expressions
Next Topic: Gridding/Interpolating a large image

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

Current Time: Wed Oct 08 13:07:10 PDT 2025

Total time taken to generate the page: 0.00448 seconds