Skip to content

Rainfall interface file format #185

Answered by cbuahin
MitchHeineman asked this question in Q&A
Discussion options

You must be logged in to vote

The Station ID that you write to the file has to be a character array of length MAXMSG+1. Since MAXMSG is defined as 1024, the array has to be dimensioned to 1025. The "(=80) " comment was probably left over from an earlier version where MAXMSG was only 79. Also you must write the entire 1025 bytes of the Station ID to the file, not just whatever the length of the actual Station ID is. From @LRossman.

I can share a python snippet for writing it if you are still encountering issues.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@cbuahin
Comment options

Answer selected by MitchHeineman
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants