Author Topic: Creating .dfs2 file from .asc file  (Read 110 times)

jkurzweil

  • Posts: 6
    • View Profile
Creating .dfs2 file from .asc file
« on: June 16, 2020, 12:50:05 am »
Hi there,

New user here so I apologize if this is trivial. I am trying to import a DEM I have as a raster. I converted it to a .asc file in Arc and then to a .dfs2 file using the grid2mike tool. The issue I am having is, when I try to import this new file I am able to select my file, but when I look at the select item panel, for elevation it says no valid items and I can not click okay. I am however able to open the new .dfs2 file from my explorer and it looks to be accurate. Did I miss a specification when I was creating the file?

Best,

Jake

jkurzweil

  • Posts: 6
    • View Profile
Re: Creating .dfs2 file from .asc file
« Reply #1 on: June 16, 2020, 05:36:34 pm »
To anyone who is interested I found a solution.

For what ever reason when I create the .dfs2 file using the grid2mike tool box, it does not really give the file all that it needs, specifically it does not give it an item. Maybe I am just doing it wrong, so if someone knows something I don't please let me know. To fix this I opened the created .dfs2 file directly from my explorer. This opens the file in a MIKE zero editor. I hit edit->items, then under type I selected elevation for type and meter for unit.

I am also running into some strange things where sometimes a file will not be recognized saying it is an improper name. Sometime restarting the program can solve this, but other times it does not.

Best,

Jake

Sebastian

  • Posts: 16
    • View Profile
Re: Creating .dfs2 file from .asc file
« Reply #2 on: June 17, 2020, 07:41:01 am »
Hey,

For what ever reason when I create the .dfs2 file using the grid2mike tool box, it does not really give the file all that it needs, specifically it does not give it an item. Maybe I am just doing it wrong, so if someone knows something I don't please let me know. To fix this I opened the created .dfs2 file directly from my explorer. This opens the file in a MIKE zero editor. I hit edit->items, then under type I selected elevation for type and meter for unit.

As far as i know, thats the "normal" way to do this. The reason is, that MIKE simply doesn't know what kind of data the values of the asc-file represent. Im using asc-Files and Grid2Mike to import spatially distributed rain patterns, so the item should be precipitation height rather than elevation or anything else.

Greetings,
Sebastian
« Last Edit: June 17, 2020, 09:27:13 am by Sebastian »

jkurzweil

  • Posts: 6
    • View Profile
Re: Creating .dfs2 file from .asc file
« Reply #3 on: June 17, 2020, 09:16:43 pm »
Thanks Sebastian,

That makes sense. I later found this in one of the manuals. That makes sense, just needed to do a little more digging.

Do you have any experience creating .dfs0 files for precipitation using the batch conversion? I am trying to import my simple one station rain fall data, but when I use that tool it just kind of stops on the page where you define what rows define type/value/name. As in, if I click next nothing happens, I can click back or cancel, which doesn't really help. I am sure this is a simple mistake as well.

Best,

Jake