karigauta / ADAM_tools

Tools for making life with ADAM faster
0 stars 1 forks source link

remove illegal obs bug #5

Closed karigauta closed 7 years ago

karigauta commented 7 years ago

Current version of the script will not work if the "illegal" observations are not consecutive.

i.e. if 14 is the new highest allowed observation 14 1 -9 -9 -9 -9 -9 -9 -9 -9 -9 -9 15 1 -9 -9 -9 -9 -9 -9 -9 -9 -9 -9 16 1 -9 -9 -9 -9 -9 -9 -9 -9 -9 -9 the script will work and remove 15 and 16

However, when the file is like this, the code will not work, since it will only look for 15 and not 16. Need to change the loop so it will recognize this issue

14 1 -9 -9 -9 -9 -9 -9 -9 -9 -9 -9 16 1 -9 -9 -9 -9 -9 -9 -9 -9 -9 -9

karigauta commented 7 years ago

Issue solved