Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Idl-pvware > Re: HDF_SD_ADDD...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 12 of 20 Topic 5658 of 5734
Post > Topic >>

Re: HDF_SD_ADDDATA problem

by adfraser@[EMAIL PROTECTED] Apr 27, 2008 at 06:05 PM

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-routines134.html).
What are your thoughts on this?

Cheers,
Alex.




 20 Posts in Topic:
HDF_SD_ADDDATA problem
adfraser@[EMAIL PROTECTED  2008-04-21 16:24:17 
Re: HDF_SD_ADDDATA problem
"brodzik@[EMAIL PROT  2008-04-22 07:23:38 
Re: HDF_SD_ADDDATA problem
"brodzik@[EMAIL PROT  2008-04-22 07:25:50 
Re: HDF_SD_ADDDATA problem
UV_Catastrophe <bripma  2008-04-22 13:57:56 
Re: HDF_SD_ADDDATA problem
adfraser@[EMAIL PROTECTED  2008-04-23 19:17:22 
Re: HDF_SD_ADDDATA problem
adfraser@[EMAIL PROTECTED  2008-04-23 19:18:31 
Re: HDF_SD_ADDDATA problem
adfraser@[EMAIL PROTECTED  2008-04-23 19:23:27 
Re: HDF_SD_ADDDATA problem
jameskuyper@[EMAIL PROTEC  2008-04-24 06:00:58 
Re: HDF_SD_ADDDATA problem
"brodzik@[EMAIL PROT  2008-04-24 07:25:39 
Re: HDF_SD_ADDDATA problem
jameskuyper@[EMAIL PROTEC  2008-04-25 09:15:05 
Re: HDF_SD_ADDDATA problem
liamgumley@[EMAIL PROTECT  2008-04-25 09:18:25 
Re: HDF_SD_ADDDATA problem
adfraser@[EMAIL PROTECTED  2008-04-27 18:05:57 
Re: HDF_SD_ADDDATA problem
adfraser@[EMAIL PROTECTED  2008-04-27 18:08:32 
Re: HDF_SD_ADDDATA problem
James Kuyper <jameskuy  2008-04-28 02:52:31 
Re: HDF_SD_ADDDATA problem
jameskuyper@[EMAIL PROTEC  2008-04-28 16:07:27 
Re: HDF_SD_ADDDATA problem
adfraser@[EMAIL PROTECTED  2008-04-29 22:57:17 
Re: HDF_SD_ADDDATA problem
James Kuyper <jameskuy  2008-04-30 11:13:39 
Re: HDF_SD_ADDDATA problem
adfraser@[EMAIL PROTECTED  2008-04-29 23:43:34 
Re: HDF_SD_ADDDATA problem
James Kuyper <jameskuy  2008-04-30 11:20:11 
Re: HDF_SD_ADDDATA problem
adfraser@[EMAIL PROTECTED  2008-05-01 19:05:51 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri May 16 8:11:16 CDT 2008.