Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

.xdr files

64 views
Skip to first unread message

Jonathan W Smith

unread,
Mar 15, 2011, 7:28:05 AM3/15/11
to
Hello
am using MATLAB version 2009. It does not seem to have the capability to uread .xdr files. Is there something (like a tcv toolbox -> see site http://crppwww.epfl.ch/~moret/matlab/local.html#XDRsavexdr) that can be downloaded to give it this capability?

Thanks
Jonathan

Steven_Lord

unread,
Mar 15, 2011, 9:34:05 AM3/15/11
to

"Jonathan W Smith" <jwsm...@gmail.com> wrote in message
news:ilnig5$1i2$1...@fred.mathworks.com...

This suggests that that file format is XML-based, so perhaps XMLREAD would
be of use to you in creating a reader/parser for those files.

http://filext.com/file-extension/XDR

--
Steve Lord
sl...@mathworks.com
To contact Technical Support use the Contact Us link on
http://www.mathworks.com

Jonathan W Smith

unread,
Mar 15, 2011, 3:15:24 PM3/15/11
to
Steven and all,

Thanks for your response. I tried the following and got an error message:
____________________________
A = xmlread('OMI-Aura_L3-PROFOZ_2006m0520_1x1_destriped_Atlantic.xdr');
[Fatal Error] OMI-Aura_L3-PROFOZ_2006m0520_1x1_destriped_Atlantic.xdr:1:1: Content is not allowed in prolog.
??? Java exception occurred:
org.xml.sax.SAXParseException: Content is not allowed in prolog.
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)

Error in ==> xmlread at 98
parseResult = p.parse(fileName);
_____________________________

Any other ideas or suggestions?

Jonathan

"Steven_Lord" <sl...@mathworks.com> wrote in message <ilnprh$rqt$1...@fred.mathworks.com>...

John

unread,
Mar 16, 2011, 8:56:04 AM3/16/11
to
Jonathan, from where are you getting this file? The first part of the filename sounds like a data product from the eath observation system, specifically from the AURA satellite. I was under the impression that the AURA data products were either HDF4 or HDF5 files. Could you try either HDFINFO or HDF5INFO on it? Was the file post-processed out of HDF4 or HDF5 somehow?

"Jonathan W Smith" wrote in message <ilodsc$qcd$1...@ginger.mathworks.com>...

Jonathan W Smith

unread,
May 18, 2011, 6:14:03 PM5/18/11
to
Steve,

The Aura data is in hdf4 and these .xdr were post processed. They can be read in idl but I am more familiar matlab.

Are you or anyone familiar with the TCV toolbox (see https://crppwww.epfl.ch/~moret/matlab/local.html#TCVtoolboxXDR). There seems to be a savexdr function there. Is this obsolete for MATLAB? The savexdr function is undefined for the version of MATLAB I am using.

Jonathan

"John " <com.wor...@evans.john> wrote in message <ilqc14$5qm$1...@ginger.mathworks.com>...

0 new messages