Thanks both for your helping:

I was checking the script fro Olivier but doesn't works yet, later I tried
with the asciitable package but I also never could read any of my files
(finally I decide create a single file for each case, it means to get 2
arrays for each domain).

I was reading a while about how to import data with genfromtxt in Numpy, it
was very interesting because I have a lot of options for import data, I can
skip headers and footers, I can import selected columns and other stuff, so
I wanna use it for import my columns in each case and later get an output in
a text file, how can I get it?

My idea is to make something like:

#!/usr/bin/env python
#-*- coding:utf-8 -*-

import numpy as np
from StringIO import StringIO

np.genfromtxt(StringIO(data_file_name), autostrip=True, skip_header=2,
usecols=(1, 2, 3))

np.genfromtxt(StringIO(data_file_name), autostrip=True, skip_header=2,
usecols=(4, 5, 6))

np.genfromtxt(StringIO(data_file_name), autostrip=True, skip_header=2,
usecols=(-1))

But I'm not sure how to use it, I have not experience importing that stuff,
but also I don't know If I need to add a line at the beginning with

data = StringIO(data_file_name)

Could you help me once more?

Regards:
Aradnix
_______________________________________________
NumPy-Discussion mailing list
[email protected]
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to