Welcome to iraf.net Saturday, April 20 2024 @ 01:59 PM GMT


 Forum Index > Help Desk > General IRAF New Topic Post Reply
 fields task keeps asking
   
Gaba_p
 11/04/2016 09:35PM (Read 756 times)  
++++-
Regular Member

Status: offline


Registered: 10/10/2008
Posts: 104
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\$this->_split2($m[0]) fields.mode='h'
ecl\$this->_split2($m[0]) fields.fields='1,2'
ecl\$this->_split2($m[0]) fields.lines='1'
ecl\$this->_split2($m[0]) fields.files='test.dat'

when I run the task:

ecl\$this->_split2($m[0]) fields

I get:

ecl\$this->_split2($m[0]) 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

 
Profile Email Website
 Quote
fitz
 11/14/2016 05:20PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
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\$this->_split2($m[0]) field.fields.p_mode = "h"

will do what you want.

 
Profile Email
 Quote
   
Content generated in: 0.10 seconds
New Topic Post Reply

Normal Topic Normal Topic
Sticky Topic Sticky Topic
Locked Topic Locked Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Anonymous users can post 
Filtered HTML Allowed 
Censored Content 
dog allergies remedies cialis 20 mg chilblain remedies


Privacy Policy
Terms of Use

User Functions

Login