GenericMappingTools / GenericMappingTools/gmt
Comment lines in text files not starting with a hash, get lost in GMTdataset
- Dominant language
- C
- Stars
- 979
- Forks
- 414
- Avg merge
- 17h 26m
- Merged PRs (30d)
- 54
Description
The ``tut_quakes.ngdc`` starts with
```
Historical Tsunami Earthquakes from the NGDC Database
Year Mo Da Lat+N Long+E Dep Mag
1987 01 04 49.77 149.29 489 4.1
...
```
If I read it to Julia the two comment lines are lost
```
julia> D = gmtread("@tut_quakes.ngdc", table=true);
julia> D.comment
2-element Vector{String}:
""
""
```
Adding ``#`` to the ``tut_...`` file
```
#Historical Tsunami Earthquakes from the NGDC Database
#Year Mo Da Lat+N Long+E Dep Mag
1987 01 04 49.77 149.29 489 4.1
...
```
now shows
```
julia> D.comment
2-element Vector{String}:
"Historical Tsunami Earthquakes from the NGDC Database"
"Year Mo Da Lat+N Long+E Dep Mag"
```
Contributor guide
Assessment
This issue has not been assessed yet.