OFPEC Forum
Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: cirkut5732 on 06 Jan 2006, 19:26:27
-
Hey everyone
Im not really new to the OFP editing scene but I am extremely new to DEM files.
I have been making a map via wilbur and wrptool and even with blurring I cant get the ground quite as smooth as say Nogova, (ground is a little choppy)
So I figured Id try out a DEM file So here is my problem
I downloaded 2 10 meter DEM files for the area of seattle, WA one N. seattle one S. Seattle and here is what I do
Open MicroDem v. 8.0 and merege the 2 DEM files, then save as a DEM.
Problem 1 = After merging and saving I try to Load the merged dem into 3dem and get the error "Not a DEM file" So I did something wrong there
Problem 2 = I read somewhere about opening Microdem and clicking the IN\OUT button then go to resample, DEM, and then Real DEM, When I go to resample I do not have these options
Problem 3 = I loaded N.Seattle dem file (not merged) Straight into 3dem, it loads, I save as a terragen file, Load it into Wilbur and save as a .txt LON file, I load this into wrptool and the island is all mangled, and not shaped correctly. So my big question is this
How do I take 2 dem files, Merge them, and get them to make a 512x512 map in wrptool?
Thanks guys!
-
10 meter DEM's are not what you want unless you can resample them to 50 metres.
If you can get 30 metre DEM's it would be a little easier.
To make a standard size of island in OFP you need to have a DEM that covers 12.8 X 12.8 km.
Usually getting dems of the area surrounding your area of interest and merging them will give you a larger area than you need.
Once you have the larger DEM you can decide which part of it you want to use and then cut the exact size from the original DEM.
Problem 1:
Indeed your DEM is no longer a USGS DEM it is an MDEM......MicroDem DEM.
If you need it to be a USGS DEM then you need to find a converter, such as MDEM2DEM to do the job.
Problem 2:
The latest version of Microdem has the resample option in a different location.
File Menu....Save DEM....Reinterpolate.
Problem 3:
It probably didn't work because the dem you used was not big enough to civer even the standard 12.8 X 12.8 km.
You need to get 30 metre DEMs
Whatever area you are interested in, you will be better to collect also the 8 surrounding DEMs, making 9 DEMs in total, which you then merge together.
Now you can Resample your merged DEMs to 50m.
You then need to Subset your merged DEM, choosing an area centred on your area of interest.
The resulting DEM must then be 25.6 X 25.6 km in size.
Planck
-
I was hoping you would reply PLank, Your tutorial has been a great help so far!
So About the 9 dem thing, Are you saying If I merge 9 10meter Dems I will have the correct size dem file?
So take 9 10 meter dems, merge and resample the merged file to 50meter dem
then use mdem4ter to make a terragen file
Sorry if this sounds confusing but I really want to do the puget sound area (my home) Thanks again plank! By the way do you work for BIS! lol!
-
No.......Get 30 metre DEMs instead.
Merge them and you will have a BIG DEM, not necessarily the size you want.
You need to Subset the exact area you want from your merged DEM (In your case an area of 25.6 X 25.6 km) .....you will then end up with the size of DEm you want.
Guessing that you want North and South Seattle central to your area, the 9 DEMs you require only come to about 760KB in total.
I know because I have them. ;D
You should read Grens tutorial from here (http://www.ofpec.com/editors/resource_view.php?id=853)
EDIT: Presumbly the area you want corresponds to the attached picture.......maybe.
Planck
-
Thanks again Plank I will try when I get home from work! And probably post again
-
Im having a bit of trouble finding 30 meter dem files. does USGS website have them? ccause all files I download from there are in .dat format, instead of .dem
Will these work?
http://duff.geology.washington.edu/data/raster/thirtymeter/wabil30/
They say there 30 meter dems converted from 10 meter ones, they download as .bil files
-
Yes.....USGS is the place to go.
Do you have a user account there.....I think you need one.
Anyway .......... Look Here (http://data.geocomm.com/catalog/US/61046/82/group4-3.html)
Alternately I can send you the lon/lat text file.
Planck
-
with the Lon lat file can I can go straight into wrptool correct? and if so as 512x512
EDIT--- I signed up to that geocomm, So i need to download 9 of the 30 meter dems correct, so far Ive downloaded seattle north and south
other than that it looks like Ill be able to do this, Thanks so much plank!
-
Yes.......it is all ready for WrpTool.
I understand though that you may want to do it all yourself........it's the best way to learn. ;D
If you want the text file, give me your current email address and I'll send it along.
Planck
-
ya im gonna give it a shot, If i start pulling my hair out Ill send you my e-mail, thanks again Plank!!
-
so far Ive downloaded seattle north and south
The dems you probably want are:
Bothell 47122g2
Duwamish Head 47122e4
Edmonds East 47122g3
Edmonds West 47122g4
Kirkland 47122f2
This one needs a bit of tweaking as it is faulty.
Mercer Island 47122e2
This one needs a bit of tweaking as it is faulty.
Seattle North 47122f3
Seattle South 47122e3
Shilshole Bay 47122f4
Planck
-
Ok, Im really close now!
I can take a dem and make a 256 map and get it to load into wrptool but not a 512 one
here are the steps I am taking to try to make a 512 map (same steps as 256 almost)
1.merge and subset my dem. Ok my NW corner is x=528900 and y=5265800 and I know you add 12800 to the x and subtract it from the y for a 256 map so I added 25600 to the x and subtracted that for the y to make a 512 map right?.....
2.Resampled the subset version of the dem. took height measurments, min= -6 , max= 1561 ( i know shouldnt be this high), changed columns and rows to 512, x and y spacing to 50, and tried both decimeters and meters for the Z unit. Saved the resampled dem
3.Loaded the resampled dem into wilbur, lowered the terrain around the perimeter to create an island, saved as LON .txt file with these options, widht and height to 512, max X and Y to 511, and then put in my heights, -6 and 1561, save and exit
4. load it into wrptool, select new, create 512 world, and load wilbur file, it loads and is strectched out. Ive made two 256 maps tonight with no problems, but the dem im using requires me to use a 512 version to get the whole island in there
What am I doing wrong
Thanks
CirKuT
Also some of my 256 maps are coming out with really point and high elevations when loaded into wrptool?
-
OK,
Merging your 9 dems together......you seem to have got that ok.
You have the Subsetting sussed as well plus 25600 for x axis and minus 25600 for the y axis.
The 2 dems I mentioned as faulty.......they both need to have all z values lowered by 4 metres.
Resampling........You need to change Cols: and Rows: to 512 each.
XY Units and Spacing needs to be 'Meters' and X=50, Y=50
Z Units also should read 'Meters', but don't bother changing the minimum and maximum heights......I think it detects those itself anyway.
Once you have Resampled, go back to Resampling again so that you can read the modified minimum and maximum heights which will now be in meters.
Take a note of them somewhere.
I think I got 0 and 194.
Once you get this into Wilbur you are correct about saving as a lon/lat text file.
However, once you have chosen a name for the file and the file type (lon/lat text), a requester pops up as you know......You must press the 'Set to Pixel' button first.
Now you can make sure all the other values are correct.
For minimum and maximum heights I put in -5 and 194
Your maximum height of 1561 cannot be right and might be decimeters...not meters.
Planck
-
K plank....Just woke up after a 16 hour session with this yesterdsay, Gonna try it again now that I am replenished, By the way I changed my dem a little bit, Im using vashon Island now, just a little left of our current dem (that is why i need 512 map, it wont fit into a 256 subset.)
-
Yes......I know.
I did another one myself using the co-ordinates you stated in a previous post:
NW Corner
x=528900
y=5265800
SE Corner
x=554500
y=5240200
Of course this needed extra dems. :)
Planck
-
so you got a 512 version of vashon island going? and i worked, hmmmm, Im gonna get this today! gotta eat real quick and Im back at it.
I had to get some new dems from king and kitsap county to get vashon island yes
-
Its all easy really when you know how.
Once you have done this sort of thing a few times, it becomes second nature...........maybe......ok.....third nature. ;D
Planck
-
K it seems I do good until loading into wilbur or exporting it out of wilbur into wrptool, that is when something is happening.
Plank if its not to big a deal I have zipped up my subset file, and my subset and then resampled file, and sent it to you, If you have some free time could you maybe see if you can figure out what Ive done wrong or send me a lon txt file for this map?
Thanks Plank for the last 2 days of help!
-
Do you convert your final dem into a terragen file for loading into Wilbur?
Planck
-
Ive tried both, Ive use MDEM4TER for a ter file import into wilbur and Ive used MDEM4DEM to load a dem straight into wilbur
When it leaves microdem this is what the file looks like in resampling area
Hemishphere = North
UTM Zone = 10
Cols and Rows = 512
xy Units and spacing are Meters and 50
Zunits are Meters with a Max of 156 and a min of 0
And then I take my file called vashon_merged_subset_sampled.dem change it to a smaller name like v.dem and usially use MDEM4TER to make a ter file
I then open wilbur
Open v.ter
immediately go to save as LON\LAT txt (id look to do the rest of editing in wrptool (like making it a island not a chunk of land)
In the options I do this
1.press set to pixel
when I do this my max height shows as 14.68 wich is wrong..I change this to 156
my min height shows as -13.712, I change this to -5
widht and height is set to 512
and max min XY output bounds are 511
I change decimal points from 4 to 2
and save my file = v.txt
I then open wrptool and select new
I set it to a 512x512 map and then go to Import Wilbur
Browse and open my v.txt file and load it
In wrptool my map shows up as one solid block of land mass all with the same height of 4.0
Now I am following these steps right arent I or am I really dumb and overlooking something! LOL
-
I have sent you my .txt file now anyway.
Let me know if it works, I can't try myself because WrpTool doesn't like Windows Me.
Planck
-
Havent recieved it yet but then again you must have just sent it cause you just posted this if not my 2 e-mails are
cirkut5732@yahoo.com
and
cirkut5732@comcast.net
Thanks for all Plank! I will reply back when I get the txt file, and when I figure out my problem cause even tho you sent me the txt I still wanna learn what i am doing wrong!
EDIT_________I GOT IT! Checking it now!
-
LOL........Uhhhhh well yours loaded just fine! Im stupified. Thanks! Maybe Im using older software or something! LOL
By the way did you make this txt fiel with the files I sent or my own? I would like to see how far in the process I can get before my flaw is, Thanks
And when my Map and campaign are finally released you better believe your name will be in the credits!
CirKuT
-
I think the problem with your text file might have been that the elevations were in Decimeters instead of meters and Wilbur maybe took them to be Meters.
Your Dem was basically the same as mine, except you had the far right of the merge devoid of land....maybe you just left that dem out of the merge.
EDIT......I made my text file earlier today........a lot earlier, once I read your NW corner settings. ;D
Planck
-
Ya I left those dems out cause I didn need them, and I didnt fix those 2 dems you said were bad because 1. dont know how, and 2. I didnt subset from that area
Just out of curiousity do you think me using Nogova's config file is the reason it screws up in wrptool, Im changing all instances of NOE to my map name and deleting all city names and thats it?
Thanks again, The map looks great, needs a little coastline work, its a little jagged and looks like triangles poking out into the water but thats no prob!
Thanks
CirKuT
-
Hello
[ATF]-Bullets-[2Lt] here, I am interested in finding a DEM for Kuwait, does anyone know where I can get one so I can create a map fo OFP? I want to use a DEM and mircodem, wilbur, terragen, WRP etc, but need to find a DEM of Kuwait first...lol. Or, if anyone knows where I can get a OFP map of Kuwait that is already done, that would be a start. I want to create a Gulf War Campagin that follows the war to a T, historically correct, etc. Any help would be greatly expected.
Thanks [ATF]-Bullets-[2Lt]
ATEF Member