View on GitHub

IRAF Community Distribution

IRAF maintained by the community

Home | Installation | Packages | X11IRAF | PyRAF | Forum

fields task keeps asking

Gabriel wrote on Nov 04, 2016


I can't seem to be able to run the 'fields' task without it asking me to input the 'Fields to extract'.

This happens even with mode='h'.

Example:

ecl> fields.mode='h'

ecl> fields.fields='1,2'

ecl> fields.lines='1'

ecl> fields.files='test.dat'

when I run the task:

ecl> fields

I get:

ecl> Fields to extract (1,2):

aaa bbb

Why is it not working silently?

The 'test.dat' file I'm using contains this:

aaa bbb ccc

123 456 45

789 654 66


Mike Fitzpatrick wrote on Nov 14, 2016


The 'fields' parameter is a query parameter so you need to change the mode of that one parameter, not just the entire task. For example,

cl> field.fields.p_mode = "h"

will do what you want.

Last post on Nov 14, 2016