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

Data files with long line lengths cause PRMS to exit with error #6

Open
pnorton-usgs opened this issue Sep 9, 2019 · 0 comments
Open
Labels
invalid This doesn't seem right

Comments

@pnorton-usgs
Copy link

When running PRMS for the CONUS NHM domain the program exits with an error when reading the data file. The error is:
EXTRACT_time - year 60 out of range.

The constant MAXDATALNLEN in defs.h is set to 12000 which limits the max number of characters for each line read from the data file. One possible solution is to change this to 60000 which is longer than the longest line in the CONUS data file.

There is also the ability to override this on the command line with -MAXDATALNLEN .

The wording of the error does not provide sufficient indication of what is wrong and what the solution might be. Could this be altered to indicate: 1) this is related to the data file, and 2) how to solve by specifying the command line override.

@pnorton-usgs pnorton-usgs added the invalid This doesn't seem right label Sep 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

1 participant