Jump to content
David Crompton

ACS grid from XMDF outputs

Recommended Posts

Hi All

We are having some trouble create max max files from XMDF outputs.

What we need is a peak height and depth asc grid for use in Mapinfo.

We are using the below batch command to create of output files

                res_to_res.exe -b -max -typeh -t99999 "Dur1.xmdf" "Dur2.xmdf"
                res_to_res.exe -b -max -typed -t99999 "Dur1.xmdf" "Dur2.xmdf"

Both command line works but the second line over rights the files created from the first line. Thus only a single xmdf files is created.

The name of the file that is created is Dur1(maxmax).xmdf


We have then tried the below to create the asc grid

              TUFLOW_to_GIS.exe" -b -asc -t111111 "Dur1(maxmax).xmdf"

It ask for a .2dm and any file name you put into the utility, say it does not exist (even though it does).

Any advice on getting the process to work would be apprecaited.






Share this post

Link to post
Share on other sites

Using the -out flag with res_to_res to specify different names for each max result will prevent the first getting written over. Currently as the default output filename for both of these calculations is the same the second result will overwrite the first.


I think your 3 double quotation marks are causing issues with the TUFLOW_to_GIS. You shouldn't need any for those file names so try with none. There should always be an even number of quotes - I suspect you meant to have one at the start too..?


Hope this helps.



Share this post

Link to post
Share on other sites



I think Matthew, has hit the nail on the head with the answer above.  An example of using res to res with a specified output filename is:

res_to_res.exe -out max_depth.xmdf -max -typeD File1.xmdf File2.xmdf


This will produce a .xmdf file which contains not only the maximum value, but also the source file that this came from.  These are stored in separate datasets ("Max Value" and "Max Source"), in contrast to the .dat format where they are part of the same dataset, just at different times.  In the example above I would typically use the below to convert the maximum values to asc.

TUFLOW_to_GIS_w64.exe -asc -path"Max Value" -sgs -2dm File1.2dm max_depth.xmdf


The -path"Max Value" tells TUFLOW_to_GIS to convert this dataset, -path"Max Source" would convert the source dataset.  Should you wish to convert both you could use -typeAll -tAll to convert all datasets and times to .asc. If you are unsure what data is in the xmdf file, you can run the following in res_to_res:

res_to_res.exe -xnfo max_depth.xmdf


This will produce a text file which contains information on the datasets and output times in the .xmdf file.




Share this post

Link to post
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...