[Thread Prev][Thread Next][Index]
[ferret_users] Reading from an ASCII file
- To: ferret_users@xxxxxxxx
- Subject: [ferret_users] Reading from an ASCII file
- From: Szymon Roziewski <szymon.roziewski@xxxxxxxxx>
- Date: Mon, 07 Mar 2011 16:10:36 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=JfyJXzCv7SNJl9OqZMBqQNNkpHi0gadJwGW+XbRnVFU=; b=wXJ0piIC3rAZE6EH0z3ZPICltJ3B1f5sCtn/BIh/Hbj5qms4Fm1Nyv1VXXmU3vwDOs yy5mG5vLy17bP2QUI0oIQalDRUSvRn75W8vnGW4tpG+hxgz5dXUutE0CMn+I3lqI1sI1 QwIbwdHWsyZAFKU/zX4k3h+HmcyjJqqSxwVPM=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=Oj42v70KCKEkG9AnFgAeNvWQ7yOtnkszqV/UJfvk2xXU6InWHwQlj3rbgh5yHstqu7 /9pHEj21C/s7GJ6PQA1DwihQ3FkmB3p5pUgVAtAZly1GerBMZ27HKl6iw8HISnrf0e0b lfQwawYiVP1RJqoEMF8g+GWeklD25yb/AqkQo=
- Sender: owner-ferret_users@xxxxxxxx
Hello Ferreters,
I have following data in a file:
132 145
11111111111111111111111111111111111111111111111111111111111111111111111111111111
1111111111111111111111111111111111111111111111111111
11111111111111111111111111111111111111111111111111111111111111111111111111111111
1111111111111111111111111111111111111111111111111111
11111111111111111111111111111111011111111111111111111111111111111111111111111111
1111111111111111111111111111111111111111111111111111
11111111111111111111111111111110000011111111111111111111111111111111111111111111
1111111111111111111111111111111111111111111111111111
11111111111111111111111111111111000000001111111111111111111111111111111111111111
1111111111111111111111111111111111111111111111111111
11111111111111111111111111111111000000000111111111111111111111111111111111111111
1111111111111111111111111111111111111111111111111111
11111111111000111111111111111110000000000000001111111111111111111111111111111111
1111111111111111111111111111111111111111111111111111
11111111111100010111111111111000000000000000000111111111111111111000000111111111
1111111111111111111111111111111111111111111111111111
11111111111100000001111111111000000000000000000011111111111111111000000011111111
1111111111111111111111111111111111111111111111111111
...
The problem is how to read it? The first row I can skip, because I don't need to read this 132 and 145 values.
But then I have 80 intereger (0,1) values and in the next row is another 52 integer values.
The question is how to read this data and make an array 132x145 from that.
I am wondering whether I can use ferret for that purpose or just switch to another language.
But I'd rather use ferret because I wouldn't change data files.
To make it I think I sould read one vector with 80 values and then the next vector with 52 values, then merge altogether those data and put it into as row(1x132) in matrix 132x145.
And then just repeat this action. But I don't very familiar with ferret and It looks like not to be done easily in ferret for me.
Kind regards,
Szymon Roziewski
[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce /
NOAA /
OAR /
PMEL /
Ferret
Privacy Policy | Disclaimer | Accessibility Statement