I am trying to automate my simulation, and I have come across a problem. I am trying to convert a grid file from ASCII to a .dfs2 file so that I can load it into my MIKE21 fm flowmodel. The file in question is a 2d grid of bed resistance (chezy values.) If I open the file with MIKE Grid Series tool and create a new grid from that ASCII file, everything works fine and I can save it as .dfs2. (The ASCII file is generated from a program I wrote in python, with values/formulas for bed resistance)
However, because I am trying to automate this process I have been trying to do this with the mike zero toolbox. I have created a toolbox to automatically create a dfs2 file from the ASCII when it is run using GIS > Grd2Mike. As far as I can tell, you can only do this with .asc files (arcview), so I made my program output in that format instead, and I can now run the tool to convert them to dfs2.
However, by outputting the grid as .asc, the item type = chezy value information is lost, and now I can't load the dfs2 into my flowmodel as a grid of bed resistance, because the item type defaults back to water level.
So basically, is there a way to create a dfs2 file of chezy numbers, by using a batch/toolbox script which converts ASCII data in some form.
Thanks very much!