Repository navigation
Skip NaN-records in seis and geodesy due to unrecognized header records - #5427
Conversation
THe old read-loop in the meca supplement codes (now with psvelo in geodesy) did not have any protection against non-GMT header records which will give x and y as NaN. THis PR adds that check to avoid junk lotted at BL corner.
|
Not out of the woods just yet. I decided that it would be better if GMT i/o could pick up these as headers without the required leading While I need to do some more work on my checking (since this file should not really say we found 3 Nans only 1), I wonder if the station.list can be changed (and hence the script - take out the -i) or if this is some old convention from elsewhere that we cannot change? The plan is that once this work generally across GMT we can revert those module-specific fixes in seis and geodesy since those records would be correctly flagged as header records and then normally skipped |
|
OK, so I am relearning that the station.list file has a certain format [ []]. Not sure how we wish to handle this for psxy then, since the input file actually starts with trailing text. |
|
Solution was to only do the hard check with no -i. A PR will be coming soon. |
See this report for background. The old read-loop in the meca supplement codes (now seis with psvelo in geodesy) did not have any protection against non-GMT header records which will give x and y as NaN. This PR adds that check to avoid junk plotted at BL corner.