So I based my GRIB2 parser on Ben Hamner's
https://github.com/benhamner/GribDotNet
and today I discovered that it fails to read data from January 31, 2014, because "Exception: System.ArgumentOutOfRangeException: Year, Month, and Day parameters describe an un-representable DateTime."
Is it OK to patch the parser at this stage, or should I just shoot myself? (I don't think shooting Ben for giving away free code would be entirely fair.)
Edit: In case anyone else has this problem, all you need to do is comment out the "+1" on line 43 of IdentificationSection.fs. Yes, the one preceding the comment "it looks like the days may have been 0-based, need to check this" :D


Flagging is a way of notifying administrators that this message contents inappropriate or abusive content. Are you sure this forum post qualifies?

with —