Miscellaneous problems PreviousNext
CAESAR discussion board > Model Users >
Message/Author
Next message Tom Coulthard (Tom)  posted on Friday, September 05, 2008 - 04:41 pm
Post from Delbert - my comments in Bold


I have set up my DEM, bedrock, and discharge input files. When loading the config file I created, I get an error stating that my discharge input file had an error while loading on line 1041.



Normally this means that the length of sim box is shorter – or longer than the length of the input file – so CAESAR gets confused when it gets more or less data than it needs.



This line looks identical to the previous ones in format. I attached the input file so you could take a look. Do you have any ideas as to why I am getting an error? Also, I have zero's for my sediment inputs since I am starting just downstream of a dam.

Zeros for inuts for sediment should make no difference....


Also, I have a 2nd question. Regarding the x and y values for hydrologic input on the hydrology tab, are these values in the distance units based on the size specified in the DEM header? Or are these values in terms of cells? For example, if I have a DEM whose lower left corner is at coordinates 0,0. And my input location is located 50 meters above the bottom edge, do I put in 50 for my y-value, or 25 (each cell is 2m, so it would be 25 cells up)?

These are values in cells from the top left hand corner of the DEM (NW)


I tried running the model even though I had an error at 1041, unfortunately my first flow is so big my timestep drops to something extremely slow. I am hoping that spreading my input from one cell to several cells helps with this since it will cut down on the erosion in the input cell. I may increase my cell-size as well.

Yup – spreading over more than one cell will help this.


Finally, I got some index out of bound errors while running it. The error message mentions that it occurs during a function I defined. So the good news is that it is calling my function! But I need to revisit the code to figure out which 2d-array I am going out of bounds on.

OK,I don’t know as its your function 
But – its probably trying to write values off the edge of the array? Or access values off the edge of the array e.g. x+1 or y-1 etc.. so I tend to run loops from e.g. x=2;x<max;x++ - or put in some code to handle the edges....



Cheers,
Delbert
Back to top
Add Your Message Here
Post:
Bold text Italics Underline Create a hyperlink Insert a clipart image

Username: Posting Information:
This is a private posting area. Only registered users and moderators may post messages here.
Password:
Options: Enable HTML code in message
Automatically activate URLs in message
Action: