Hi,
I would like to load a IAGA-2002 file like http://www.bcmt.fr/DATABANK/VARIATION/ppt/sec/2024/03/ppt20240301vsec.sec
Format IAGA-2002 |
Source of Data IPGP (France) |
Station Name Pamatai |
IAGA Code PPT |
Geodetic Latitude -17.567 |
Geodetic Longitude 210.426 |
Elevation 357.0 |
Reported XYZF |
Sensor Orientation HDZF |
Digital Sampling 0.2 second |
Data Interval Type Filtered 1-second |
Data Type variation |
# |
# File added to the data base on the 2024-03-02 |
# Conditions of use: |
# License: CC BY-NC 4.0 |
# http://creativecommons.org/licenses/by-nc/4.0/ |
# DOI citation: http://dx.doi.org/10.18715/BCMT.MAG.VAR |
# |
# For any enquiry, please contact: bcmt@ipgp.fr |
# |
# Formulas for computing non-reported elements: |
# H=SquareRoot(X*X+Y*Y), tan(D)=Y/X, tan(I)=Z/SquareRoot(X*X+Y*Y) |
# 1-second values are computed using a 24 bits digitizer and a |
# Gaussian filter of 15 coefficients. |
DATE TIME DOY PPTX PPTY PPTZ PPTF |
2024-03-01 00:00:00.000 061 29138.14 5945.07 -18657.18 35103.95
2024-03-01 00:00:01.000 061 29138.14 5945.09 -18657.15 88888.00
2024-03-01 00:00:02.000 061 29138.12 5945.11 -18657.10 88888.00
2024-03-01 00:00:03.000 061 29138.11 5945.13 -18657.09 88888.00
2024-03-01 00:00:04.000 061 29138.13 5945.12 -18657.11 88888.00
2024-03-01 00:00:05.000 061 29138.14 5945.17 -18657.11 35103.98
2024-03-01 00:00:06.000 061 29138.14 5945.21 -18657.08 88888.00
2024-03-01 00:00:07.000 061 29138.12 5945.22 -18657.04 88888.00
etc. 86400 lines of data
I donβt need the lines ending with β|β, so I did:
file=readlines("ppt20240301vsec.sec")
filter!(x -> !contains(x, '|'), file)
for stringline in file
splitted=split(stringline)
do_something_else
end
Iβm stuck there, I would like first to end up with a 86400 lines x 7 columns matrix or array.
Then better have as columns types: Date Date Int Float Float Float Float, or maybe regroup the two Date columns.
I tried stuff, but too complicated for something i feel Julia could do simply.
Any help is welcome.