Just to make sure I understand, though, the idea is that the F4 lats remain constant from the bare DEM data through to the L2 data.
I guess the first question I would have is whether there is some way to make sure the SRTM data starts at exactly the same lats. If it is off even a little, won't that offset the data, too?
Also, the big question is whether Bluey and Zaggy already took this into account.
The equations are very good and might just lead us to what we are missing. I'm looking into it now. The results look very promising so far.
Kudos to Closter!
Snakey, do you know what Projection is being used by DEM2Terrain? That would be VERY Useful to know...
As for my Interpolation Tool, I must have a look for the HACK code version... Its VERY ugly tho! As, like bluey said, a specialist installer then needs to be made to install the L1/L0, and do the normals and etc... Bluey, do you still have the code you wrote to take the Elevation maps, put them back into Lx/Ox formats and etc?
Ive been Sick again the last week, and missing LOTS of school... I will see what i can get together over the next few months tho, but a warning, I am in my last six months of my Adv Dip, and working on my major project, which will have to come first.
Daniel "Zaggy" Bell
Old-School, Grumpy and Anti-Social
Also to be found lurking round FighterOps
Command line stuff to do what? Intelligently Interpolate existing terrains?
That probably wouldnt be a good idea... My Alg's used a degree of randomness in them at various points (depending on things like gradient and etc), so if you were to want to run that command line on existing installs, you would get slightly differing results on different installs... a BAD thing for MP...
The Intelligent Interpolation is more designed to be used by the theater maker, to add data to the terrain, that he/she can then package and distribute, so all ppl are running the SAME terraform...
BTW TRex, remember when Wooters was BAGGING Bluey and I for this stuff?!?!? HAHAHAAHA...
Daniel "Zaggy" Bell
Old-School, Grumpy and Anti-Social
Also to be found lurking round FighterOps
Zaggy wrote:Command line stuff to do what? Intelligently Interpolate existing terrains?
I dunno - I don't understand half this stuff. But, if you guys need an installer, or some way to automate this stuff even for devs, I think we can get that covered.
BTW TRex, remember when Wooters was BAGGING Bluey and I for this stuff?!?!? HAHAHAAHA...
Well, the way I remember it, the idea was to make sure you guys did it right. The radar LOS calcs were... uh... inconsistent in early SRTM stuff.
HAHAHAHA... that was an issue we discovered AFTER the initial WOoters attack, regarding L2E... and how we were going to screw things up and have airbases on the sides of hills and etc! hahahaha...
But yeah, the LOS stuff was a curly one for a short while, til Bluey got BaldEagle to make a 4Byte version of that app, that currently eludes me... ummm, yeah!!! hahahaah
Daniel "Zaggy" Bell
Old-School, Grumpy and Anti-Social
Also to be found lurking round FighterOps
Theater name: my_asia1
Theater size: Regular
Size (L2 segments): 64 x 64
Size (L2 tiles): 1024 x 1024
Size (Nautical Miles): 552.377 x 552.377
Resolution: 0.134858 Nautical Miles
Centered on: Lat 25 Long 120
NW: Lat 29.6031 Long 114.706
NE: Lat 29.6031 Long 125.294
SW: Lat 20.3969 Long 115.089
SE: Lat 20.3969 Long 124.911
My calculations:
NW = Lat 29.6301º Lon: 114.7058º
NW = Lat 29.6301º Lon: 125.2941º
SW = Lat 20.3969º Lon: 115.0888º
SE = Lat 20.3969º Lon: 124.9111º
Pretty much the same precision....
So it could be possible to use the SRTM data in the theaters as they are. But for sure, the Bluey's new tool will be much better than this, specially for high latitude theaters: Behring, Scandinavia, Iceland...
@TRex, you asked if there is a "offset" between SRTM data and the Dem2terrain. Not in latitude AFAIK, but then it could be in longitude. We need to interpolate the SRTM grid of heights in longitude to find the correct ones for the actual grid used in Falcon.
An example: the SRTM files are SRTM3, or 3 arcsec gap between heights. This means in the previous Taiwan example that in the N row there are 10.1579º / 3 arcsec = 12189 samples. In the S row there are 9.8222 / 3 arcsec = 11786 samples. As you need a row of only 4096 numbers to fill your L0 level, you must interpolate differently in each row. But in the end, all is ok.
Here's my first test for a 64 size theater.
This is the SRTM data in its geographic form:
Now I'm interpolating between the coordinates that came out of the equation and load the coast line trace of an L0 created from the dem2terrain L2. And this is what I get:
Regarding SRTMv1 and SRTMv2 (v2 is the corrected Data, v1 is the RAW Data... v2 Was released maybe 12 months back or so, JUST after Bluey had finished his project, basically doing the same thing to the v1 Data... Bluey's Data, IMHO, is of better quality tho, fixing one or two of the things the v2 Data missed) and Berings Theater...
SRTM Data sits between 59S and 60N. Any Theater that will encompass Lat's outside that Range, will need to find a substitute for SRTM outside those ranges... BUT, its not overly difficult...
I'd start by resampling your SRTM source from 3ArcSec to 250m. Then acquiring 30ArcSec GLOBE or GTOPO30, which you'd interpolate to 250m. You would then create an overlap of say 30-60minutes of Lat, and interpolate the overlaps, so at the SRTM edge you'd be 100% biased to SRTM, and by the Interpolated GLOBE edge, the bias would have been gradually reversed to the GLOBE data...
As you can tell, i thought about this for the Berings Theater, but never put it into practice... Its something you'd probably like to see put into any SRTM app that Bluey creates; the ability to SPECIFY Source Elevation Array resolution, so you could use SRTM3, SRTM1 (just incase you got access to full res data somehow or wanted to do continental US) as well as User defined res, where we'd specify 250m, for the example above...
Just some thoughts... Would be relevant to Berings of course, as well as the Nordic guys...
Daniel "Zaggy" Bell
Old-School, Grumpy and Anti-Social
Also to be found lurking round FighterOps
T_Rex wrote:Also, isn't the Falklands South of that range?
Nope... Cos all of South America IIRC, is in the data-take... Falklands is probably soemwhere between 51S-53S, without looking at a map... maybe 60W...
Daniel "Zaggy" Bell
Old-School, Grumpy and Anti-Social
Also to be found lurking round FighterOps
In general we're getting a good fit. There are differences though in coast lines due to the differences between high-res SRTM data and the inferior GLOBE data.
Thank you for taking our theater as example, it`s fascinating to see how our terrain could be made with this kind of detail.
I can see the slightly annoying offset that increases as we go to the east, we must study the reason.
...
I have a guess. It seems near the corner the offset is the least.
We could calculate over each row or calculate only for the corners and interpolate linearly. The problem could come from here.
The offset appears to be only of horizontal nature. Smallest at the center and increasing with more longitude.
I'm going to play with the eastern and western borders. Reducing the longitudinal range should get us the close to perfect match. Earth radius might me a variable to consider as well.
Editing Interests: All, I (try) to edit everything.
Location: Arizona, USA
Postby Sherlock »
You guys are doing incredible work here. My hat's off to you!
I wish I could contribute but as Closter already knows you are already playing in the "major leagues" while I am still playing "T-ball league". Keep up the great work!
I am writting my theory about the offset. The guess about the projection system was based in the data we knew from dem2terrain: the center and the corners of the terrain, and a clever assumption: data in the rows are the same latitude and the rows have same size in km (mi). Perhaps my assumption was not so clever. Let's improve it!
I'm planning a tool that will take projected SRTM data and apply it to a dem2terrain theater. The SRTM theater installer will have to be run during theater installation.
The projected SRTM data will be created by myself on request because the dataset is very large (~40 GB) and the available data from NASA still has errors in it (mine doesn't).
I think theater creators should take the dem2terrain way and then add SRTM later if needed.
Why would a theater-maker NOT prefer the SRTM data?
I shudder to think how much work you'd be taking on by doing this on a by-request basis. (I personally have about 3 requests for you, though, if you really want to do it that way.)
T_Rex wrote:Why would a theater-maker NOT prefer the SRTM data?
Dunno 8)
T_Rex wrote:I shudder to think how much work you'd be taking on by doing this on a by-request basis. (I personally have about 3 requests for you, though, if you really want to do it that way.)
The data creation app is nowhere near a releasable state. I'd rather not finish it (too much work) and create data on requests instead.
T_Rex wrote:What is the workflow you envision?
I'll make an announcement when I know all the parameters.
Question to theater makers:
I can't remember, is there a 4-byte version of CATE?
I'm going to need a finished theater (64 size, center coordinates must be known) for testing the SRTM installer. Any suggestions?
The opporutunity Israeli Theater SRTM seems more difficult than I had hoped. I opened the Theater.map file in Pathmaker thinking all I needed to do was add 5 degrees to the the SW coordinates for latitude and longitude recorded in the map file. However, upon inspection of the coordinates and doing a visual verification with GoogleEarth indicates the map coordinates for Israeli Theater are way way off.
Does anyone happen to have the original Theater.map file for Israeli Theater or can confirm that those coordinates do not match up with the actual terrain for Israeli Theater.
It seems a real shame not to have collected up the center coordinates for various theaters as a normal course of registering theaters in PMC. I.e. where each theater is described the SW and NE coordinates might be given to establish the terrain "BOX". Is there any merit in doing that now, if for no other reason than to see what theaters might be doable for Bluey's SRTM data workup. Maybe Snakeman will post up the center points for his theaters. I sure wouldn't mind seeing Falklands 128 in SRTM too. That is a theater that is in early stages where perhaps anything is possible.
Is is safe to assume that most if not all 64x64 theaters use a 10 degree box and 128x128 theaters use a 20 degree box? Is so then perhaps it should be possible to simply add 5 or 10 degrees of latitude and longitude to the values given in the Theater.map file for each theater?
I just hate the idea of letting Bluey off the hook for making some SRTM data