Talk About Network

Google


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: IDL 6.3 rea...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 19 Topic 5506 of 6454
Post > Topic >>

Re: IDL 6.3 read_binary ??

by Spon <christoph.blau@[EMAIL PROTECTED] > Mar 5, 2008 at 05:50 AM

On Mar 5, 1:24 pm, kernin...@[EMAIL PROTECTED]
 wrote:
> On Mar 5, 11:29 am, Spon <christoph.b...@[EMAIL PROTECTED]
> wrote:
>
>
>
> > Try closing your string:
> > ...endian='little')
>
> The string is closed in the code. It was a typo only here in this
> posting. Sorry for that.
> But thank you for this remark;)

Hi,

sorry, I guess my comment came across as a lot less friendly than I'd
intended. Hadn't had my coffee yet... sorry :-)

Anyway, your code, as it stands, works fine for me (v7.0) so long as:
1) fname is a string variable that points to a file that actually
exists (and I have read access to, I guess),
2) mx & my & mz are defined scalars,
3) mx * my * mz * bytes-per-pixel (as defined by data_type) isn't >
the file length,
and
4) I have a version of IDL that has swap_endian_inplace somewhere in
its library (I think you'd have to have a fairly old version for this
not to be the case, certainly I wouldn't expect any problems with v6.3
unless your !PATH is completely messed up for some reason.)

What error message are you getting? As you've changed versions I would
suspect that your FNAME variable may be defined as a relative path to
your old IDL directory or something. What happens if you define fname
using dialog_pickfile first? I'm stabbing in the dark here without
knowing what the error thrown is, though.

Regards,
Chris
 




 19 Posts in Topic:
IDL 6.3 read_binary ??
kerninger@[EMAIL PROTECTE  2008-03-05 02:22:55 
Re: IDL 6.3 read_binary ??
Spon <christoph.blau@[  2008-03-05 02:29:15 
Re: IDL 6.3 read_binary ??
kerninger@[EMAIL PROTECTE  2008-03-05 05:24:08 
Re: IDL 6.3 read_binary ??
Spon <christoph.blau@[  2008-03-05 05:50:33 
Re: IDL 6.3 read_binary ??
kerninger@[EMAIL PROTECTE  2008-03-05 06:13:53 
Re: IDL 6.3 read_binary ??
Spon <christoph.blau@[  2008-03-05 06:22:52 
Re: IDL 6.3 read_binary ??
kerninger@[EMAIL PROTECTE  2008-03-05 06:37:18 
Re: IDL 6.3 read_binary ??
pgrigis@[EMAIL PROTECTED]  2008-03-05 06:53:23 
Re: IDL 6.3 read_binary ??
Spon <christoph.blau@[  2008-03-05 07:05:36 
Re: IDL 6.3 read_binary ??
Carsten Lechte <chl@[E  2008-03-05 16:47:46 
Re: IDL 6.3 read_binary ??
kerninger@[EMAIL PROTECTE  2008-03-05 09:00:04 
Re: IDL 6.3 read_binary ??
Jean H <jghasban@[EMAI  2008-03-05 10:30:23 
Re: IDL 6.3 read_binary ??
Vince Hradil <hradilv@  2008-03-05 09:40:13 
Re: IDL 6.3 read_binary ??
Spon <christoph.blau@[  2008-03-05 10:13:19 
Re: IDL 6.3 read_binary ??
kerninger@[EMAIL PROTECTE  2008-03-06 10:33:48 
Re: IDL 6.3 read_binary ??
David Fanning <news@[E  2008-03-06 12:23:36 
Re: IDL 6.3 read_binary ??
Craig Markwardt <craig  2008-03-06 22:31:34 
Re: IDL 6.3 read_binary ??
Vince Hradil <hradilv@  2008-03-06 10:44:09 
Re: IDL 6.3 read_binary ??
Spon <christoph.blau@[  2008-03-07 01:09:12 

Post A Reply:
  Go here to Signup

AddThis Feed Button


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

Contact
tan12V112 Wed Dec 3 14:19:04 CST 2008.