Utility to do this?

Hi All:

I apologize that I am not as familiar with the various hdf utilities. I have an exiting hdf(4) file, and I would like to be able to add to it in a script a new variable, say time, with the single (integer or float) value of time. Is that a utility that will do this?

Thanks,

-Roy M.

···

**********************
"The contents of this message do not reflect any position of the U.S. Government or NOAA."
**********************
Roy Mendelssohn
Supervisory Operations Research Analyst
NOAA/NMFS
Environmental Research Division
Southwest Fisheries Science Center
1352 Lighthouse Avenue
Pacific Grove, CA 93950-2097

e-mail: Roy.Mendelssohn@noaa.gov (Note new e-mail address)
voice: (831)-648-9029
fax: (831)-648-8440
www: http://www.pfeg.noaa.gov/

"Old age and treachery will overcome youth and skill."
"From those who have been given much, much will be expected"
"the arc of the moral universe is long, but it bends toward justice" -MLK Jr.

Hi Roy,

There is no such HDF utility, but you can write a program using the HDF4 SD API to do that. You would want to open the file with SDstart and DFACC_WRITE access, then add an SDS using SDcreate.

Please let us know if you need further assistance.
Binh-Minh

Quoting Roy Mendelssohn - NOAA Federal <roy.mendelssohn@noaa.gov>:

···

Hi All:

I apologize that I am not as familiar with the various hdf utilities. I have an exiting hdf(4) file, and I would like to be able to add to it in a script a new variable, say time, with the single (integer or float) value of time. Is that a utility that will do this?

Thanks,

-Roy M.

**********************
"The contents of this message do not reflect any position of the U.S. Government or NOAA."
**********************
Roy Mendelssohn
Supervisory Operations Research Analyst
NOAA/NMFS
Environmental Research Division
Southwest Fisheries Science Center
1352 Lighthouse Avenue
Pacific Grove, CA 93950-2097

e-mail: Roy.Mendelssohn@noaa.gov (Note new e-mail address)
voice: (831)-648-9029
fax: (831)-648-8440
www: http://www.pfeg.noaa.gov/

"Old age and treachery will overcome youth and skill."
"From those who have been given much, much will be expected"
"the arc of the moral universe is long, but it bends toward justice" -MLK Jr.

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

Roy,

Glad to have the opportunity to send my first hdf-forum reply to you! I
don't have an answer, but was wondering if adding an attribute to the file
would work. Also, for future reference, we are doing some work on a tool to
do this sort of thing in HDF5. See
http://www.hdfgroup.org/projects/npoess/h5edit_index.html for some
information...

Ted

···

--
View this message in context: http://hdf-forum.184993.n3.nabble.com/Utility-to-do-this-tp4026005p4026069.html
Sent from the hdf-forum mailing list archive at Nabble.com.

Thanks Ted. We learned more about NcML than we ever cared to know and were able to do a work around that way. BTW - do you know anything about the status of "Fast HDF". That technology interests me.

Hope the new job is going well.

-Roy

···

On Apr 10, 2013, at 5:21 AM, TedHabermann <thabermann@hdfgroup.org> wrote:

Roy,

Glad to have the opportunity to send my first hdf-forum reply to you! I
don't have an answer, but was wondering if adding an attribute to the file
would work. Also, for future reference, we are doing some work on a tool to
do this sort of thing in HDF5. See
http://www.hdfgroup.org/projects/npoess/h5edit_index.html for some
information...

Ted

--
View this message in context: http://hdf-forum.184993.n3.nabble.com/Utility-to-do-this-tp4026005p4026069.html
Sent from the hdf-forum mailing list archive at Nabble.com.

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

**********************
"The contents of this message do not reflect any position of the U.S. Government or NOAA."
**********************
Roy Mendelssohn
Supervisory Operations Research Analyst
NOAA/NMFS
Environmental Research Division
Southwest Fisheries Science Center
1352 Lighthouse Avenue
Pacific Grove, CA 93950-2097

e-mail: Roy.Mendelssohn@noaa.gov (Note new e-mail address)
voice: (831)-648-9029
fax: (831)-648-8440
www: http://www.pfeg.noaa.gov/

"Old age and treachery will overcome youth and skill."
"From those who have been given much, much will be expected"
"the arc of the moral universe is long, but it bends toward justice" -MLK Jr.