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

Home » Public Forums » archive » HDF_SD_ADDDATA problem
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: HDF_SD_ADDDATA problem [message #60160 is a reply to message #60044] Sun, 27 April 2008 18:05 Go to previous messageGo to previous message
adfraser is currently offline  adfraser
Messages: 9
Registered: April 2008
Junior Member
Hi James,
Thanks for your great comments. The "gridded data" referred to in the
comments is an outdated comment, sorry for misleading you.

I'm talking about MODIS L1B data in its unsubsetted form (the routine
works for these data) and its channel subsetted form (the routine
doesn't work for these data). So no reprojection was ordered as part
of the post processing, only channel subsetting.

Interesting that the code worked for your reprojected and channel
subsetted data (I've since modified my code to include the endaccess
call, but the error is still present). I've tried the code on two
completely different systems (one windows, one unix, both the same IDL
version, however), and I get identical errors on both. I guess it is
the reprojection of the data which somehow makes the data
fundamentally different so that it works with the provided routine.
Maybe try the test again without reprojection?

As per your other question, the type of newdata is the same as
olddata, and the dimensions are the same also (however, I've checked
with the unsubsetted data, and you are able to write data with
different dimensions than the existing array). For my testing, I've
just been writing a smaller vector e.g., [1,2,3,4] to the existing
SDS, which replaces the first 4 elements in the unsubsetted HDF, but
causes the error in the subsetted HDF.

However, I may have uncovered the source of the error!

Is it possible that somehow the act of subsetting the data somehow
subtly makes the file not fully HDF compliant? I mean that the new
data are still HDF-EOS compliant, but not actually HDF compliant. And,
of course, I've been using IDL's HDF routines to edit these files,
whereas I should possibly have been using EOS_SW_WRITEFIELD (http://
www.astro.princeton.edu/~esirko/idl_html_help/EOS-routines13 4.html).
What are your thoughts on this?

Cheers,
Alex.
[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
Read Message
Read Message
Previous Topic: Re: IDL plotting query - how can I get rid of unwanted colour for a particular data value???
Next Topic: Multiple draw widget events

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

Current Time: Sat Oct 11 12:55:51 PDT 2025

Total time taken to generate the page: 0.48122 seconds