-
Notifications
You must be signed in to change notification settings - Fork 21
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
Errors reading hgrid.gr3 #99
Comments
Update, I went into pyschism/mesh/parsers/grd.py to add some debugging print statements, and I still get the same error message with the same line numbers, but the line numbers are now referring to a diferrent part of the code because I have added new lines above. So the error message now reads:
A bit confusing. |
This is something wrong with the boundary information. Is it possible to share the hgrid.gr3 file? |
Yes. The file is over 25mb so I wasn't able to attach it here, but it is available at https://github.com/calquigs/superreefs/blob/master/hgrid.gr3. |
The hgrid is missing information of exterior land boundary/island for land boundaries:
See hgrid.gr3 example here: |
My colleague who is developing the model took a look at your notes and made some edits (new file here) to "close" the island boundaries, however I'm still getting a similar error:
(posting w/ full traceback this time, don't know if that helps at all) Thanks for your help with this! |
@calquigs The correct format should be: |
Ok great! I've gone through and in lines specifying I'm still getting the exception
Thanks again for your help and patience. For errors caused by input file formatting, it would be helpful if the error message had a way of showing the line number in the file where the error occurred, that way I would have a better chance of being able to debug by myself! |
@calquigs In your hgrid.gr3, no need to add an extra node to make it closed, which caused inconsistent between the number of nodes read from header information and the actual lines:
For example, for the first land boudanry in your hgrid.gr3, you don't need to add an extra node 1 in the end. |
I am new to SCHISM and pyschism, so apologies if there are some basic mistakes I am making here:
I am trying to read in and plot an hgrid.gr3 file, but I get the following errors:
Any idea where I may be going wrong?
The text was updated successfully, but these errors were encountered: