Hello,
I am trying to create a reader to process AGS 4 data but am struggling with it a bit.
For those who haven't encountered the data before, I have included an example below.
When opened as a text file, the data is all in one column. It is grouped into sections that define a subsection of the overall dataset. These sections always start with the "GROUP" header and end with a empty line before the next group header.
Fortunately, the groups always follow the same pattern:
"GROUP" = Name of the group
"HEADING" = The different data headers (These would be the column headers if brought into excel)
"UNIT"= The Unit of the header
"TYPE" = The Data type
"DATA" = The actual data for each header.
"GROUP","GCHM"
"HEADING","LOCA_ID","SAMP_TOP","SAMP_REF","SAMP_TYPE","SAMP_ID","SPEC_REF","SPEC_DPTH","GCHM_CODE","GCHM_METH","GCHM_TTYP","GCHM_RESL","GCHM_UNIT","GCHM_NAME","SPEC_DESC","SPEC_PREP","GCHM_REM","GCHM_LAB","GCHM_CRED","TEST_STAT","FILE_FSET"
"UNIT","","m","","","","","m","","","","","","","","","","","","",""
"TYPE","ID","2DP","X","PA","ID","X","2DP","PA","X","PA","X","PU","X","X","X","X","X","X","X","X"
"DATA","BH502","3.00","11","W","","","","PH","","WATER","7.2","-","pH","Stiff grey slightly sandy CLAY with some fine to coarse subrounded gravel","","","CHEMLAB","","Final",""
"DATA","BH502","3.00","11","W","","","","WS","BS1377-3","WATER","0.037","g/l","Water soluble sulphate","Stiff grey slightly sandy CLAY with some fine to coarse subrounded gravel","","","CHEMLAB","","Final",""
"DATA","BH502","3.00","11","W","","","","CL","BS1377-3","WATER","51","mg/l","Water soluble chloride","Stiff grey slightly sandy CLAY with some fine to coarse subrounded gravel","","","CHEMLAB","","Final",""
"DATA","BH502","3.00","10","W","","","","WS","BS1377-3","WATER","0.04","g/l","Water soluble sulphate","Stiff grey slightly sandy CLAY with some fine to coarse subrounded gravel","","","CHEMLAB","","Final",""
Thanks in advance, this is a tough one!