Jump to content
GMS, SMS, and WMS User Forum

Format of GSSHA.dep file


Recommended Posts


I'm assuming that *.dep file the is the data file of simulated water depths for a given GSSHA simulation. I'd like to be able to import this file into Python or R to automate evaluation of simulated water depths at various locations within a model domain. Also, what is the general structure of the .dep file, and how is this linked to the model domain? Is the linkage through cell index or through the coordinates of the cell centroids?



Link to comment
Share on other sites


The .dep file just has water depth solution values for each of the cells for each output time step.  I don't know that the file format is documented anywhere, but maybe I can try to track something down if you need me to.  The important values you would use if you were reading this file are the number of cells in the model, which is in the "ND" card at the top of the file, the name of the dataset (NAME card), whether each cell is active/inactive (these values do not change for each time step), and the solution values for each cell (these values DO change for each time step).  It's just a text file, so you can open the file in a text editor and look at it to see what I'm talking about.  The active/inactive and the solution values are for each cell (based on the cell ID) and you cannot determine the actual location with just this file.  The values are listed in the .dep file in the order of the cell ID's.  If you have the location of the center of the upper left cell of your grid and you know the number of rows and columns in your grid, you can determine the location of the center of any other cell from the cell ID.  The cells are numbered starting from the upper left corner of the grid.

Let me know if you have any other questions.


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...