Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal flags #24

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

squaregoldfish
Copy link
Member

I've added a new type of Flag called Fatal. This is an extended Bad flag (integer value 44), that indicates that a record is so bad that it can't be processed properly and/or there is no possible way to rectify it (e.g. latitude/longitude out of range).

I have also added a new method called getWoceValue. This converts the internal flag values to WOCE values. So Assumed Good gets converted to 2 (Good), and Fatal gets converted to Bad (4). This saves other code having to do the logic itself. Some of the Flag values (Ignore, Not set etc.) can't be converted to WOCE values, so they get -1. You can check these as required.

I don't think the SOCAT code is affected by any of this, so it should pull straight into the master branch with no issues. Just to be on the safe side I'm submitting it for you to review...

I've updated the Java compiler compliance to 1.8 in the Eclipse files, and done a little bit of Javadoc. I've started going back through old code and doing that, but it will come slowly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant