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 > array.FIELD rea...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 5706 of 5734
Post > Topic >>

array.FIELD reading ascii file - ERROR message???

by maffie <matthias.demuzere@[EMAIL PROTECTED] > May 5, 2008 at 04:42 AM

Hi All,

Like always, I read in my ascii (.txt) files as follows:

input = file.txt'
res = read_ascii(input,
DELIMITER='	',DATA_START=1,MISSING_VALUE=-9999)

This is working when checking with the print, res statement.

Now, I always extract columns from this file, while using the
following statement
year = reform(res.field01(0,*)) or year = reform(res.field(0,*))

As I am not completely sure how this FIELD statement is working, I was
hoping on some help? Because in this case, I get the following ERROR
message:

% Tag name FIELD01 is undefined for structure <Anonymous>.

And I have no idea why? Normally, if I have this message, I change
from field 01 to field, and than it works. This time, it doesn't.

Could anybody help me with this?
Thanks,

Regards,
Matthias




 4 Posts in Topic:
array.FIELD reading ascii file - ERROR message???
maffie <matthias.demuz  2008-05-05 04:42:50 
Re: array.FIELD reading ascii file - ERROR message???
David Fanning <news@[E  2008-05-05 06:31:10 
Re: array.FIELD reading ascii file - ERROR message???
maffie <matthias.demuz  2008-05-05 06:23:43 
Re: array.FIELD reading ascii file - ERROR message???
Vince Hradil <hradilv@  2008-05-05 06:27:20 

Post A Reply:
  Go here to Signup

AddThis Feed Button


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

Contact
tan12V112 Tue May 13 23:17:31 CDT 2008.