I am trying to load and see the contents of data which can be downloaded from here. After which I need to analyze it. In this regard, I had already posed on problem, but I could not get any solution.
Now, I went through their label file located here. In that, it is mentioned that
“Will code useful Python based letters to describe each object
/ / see http://docs.python.org/library/struct.html for codes / / formats will comma separated beginning with "RJW," as key then / / {NAME}, {FORMAT}, {Number of dims}, {Size Dim 1}, {Size Dim 2}, ... / / where {FORMAT} is the Python code for the type, i.e. I for uint32 / / and there are as many Size Dim's as number of dimensions. ”
So, I guess one can try python. I do have a working knowledge in python. So, I started with this program which I got from here (for simplicity python file and the data files are in same folder):
import numpy as np
data = np.genfromtxt('JAD_L30_LRS_ELC_ANY_CNT_2018091_V03.dat')
print(data)
I got the error “UnicodeDecodeError: 'cp949' codec can't decode byte 0xff in position 65: illegal multibyte sequence”.
If I change the code to (as mentioned here):
data=open('JAD_L30_LRS_ELC_ANY_CNT_2018091_V03.DAT', encoding='utf-8')
print(data)
The error message disappears, but all I get is:
<_io.TextIOWrapper name='JAD_L30_LRS_ELC_ANY_CNT_2018091_V03.DAT' mode='r' encoding='utf-8'>
I had checked other answers in in StackOverflow, but could not get any answer. My question may be closely similar to what is posted here
I need to first see the contents of this dat file and then export to other format, say .csv.
Any help will be deeply appreciated...