First off, is it possible to write a script to delete certain lines within an XYZ file; I've only be able to find ways to delete rows within a table.
You see, I used Python (and a previously compiled script) to convert an ASCII file into an XYZ file (pretty cool!), but now i've got an 90mb file with z- values of -9999 that need to be deleted along with the corresponding x- and y- values. Note, I am unable to delete the -9999 values before conversion because then the ASCII to XYZ script would not run properly.
Any suggestions on how to run this -- sort first and then delete? make a table?
Here's an example file:
mydata.xyz
112.45,33.58,345.2
112.85,33.95,405.2
112.65,33.54,-9999 (...need this entire row deleted)
112.85,33.24,302.6
Thanks for any input you can give!
You see, I used Python (and a previously compiled script) to convert an ASCII file into an XYZ file (pretty cool!), but now i've got an 90mb file with z- values of -9999 that need to be deleted along with the corresponding x- and y- values. Note, I am unable to delete the -9999 values before conversion because then the ASCII to XYZ script would not run properly.
Any suggestions on how to run this -- sort first and then delete? make a table?
Here's an example file:
mydata.xyz
112.45,33.58,345.2
112.85,33.95,405.2
112.65,33.54,-9999 (...need this entire row deleted)
112.85,33.24,302.6
Thanks for any input you can give!