Re: Writing an 8 Column array into a data file [message #87571 is a reply to message #87568] |
Sat, 15 February 2014 09:46   |
drewciampa
Messages: 9 Registered: February 2014
|
Junior Member |
|
|
Ahh stupid me, I assumed when I created my array using 'tbget' that it would put it in a 1 column array. Unfortunately it created an array with 6000 columns and 1 row haha, this is why the data is stacking. Sorry about the stupid question!
Also, maybe you guys could still help with whats going on with the hexadecimal data. That array contains string type variable, and when I write it to a file I only get the first number of each element. some sample code is below:
array1 STRING = Array[1, 5]
the array contains:
[2b40e2200ff00007, 2b40e2200ff00009, 2b40e2200ff0000c, 2b40e2200ff00011, 2b40e2200ff00019]
openw, lun, 'test.dat', /get_lun
printf, lun, array1, FORMAT='(Z16)'
close,lun
what I get is:
2
2
2
2
2
Any clue why this might be?
|
|
|