Jump to content

Red Sea map


Nescio
 Share

Recommended Posts

The Red Sea random map is quite nice (thank you, @elexis).

  Reveal hidden contents

However, in Antiquity the name “Red Sea” was applied to all waters surrounding the Arabian peninsula (i.e. Gulf of Suez, Gulf of Aqaba, Red Sea, Bab-el-Mandeb, Gulf of Aden, Arabian Sea, Gulf of Oman, Strait of Hormuz, Persian Gulf), which allowed people to sail from Egypt to Mesopotamia and Iraq. Therefore it would be nice if the heightmap could be extended to the east:

563644759_Screenshotfrom2019-05-1212-56-55.thumb.png.2379ecc1cfdf56a7f2d7aa897a8fe915.png

Unfortunately, the narrowness of the straits prevents 0 A.D. ships from passing.)

Link to comment
Share on other sites

  On 12/05/2019 at 11:14 AM, Nescio said:

The Red Sea random map is quite nice (thank you,

Expand  

Credit goes to _kali.

  On 12/05/2019 at 11:14 AM, Nescio said:

it would be nice if the heightmap could be extended to the east

Expand  

It's easily possible to move the heightmap:

 * wget https://eoimages.gsfc.nasa.gov/images/imagerecords/73000/73934/gebco_08_rev_elev_C1_grey_geo.tif
 * lat=22; lon=41; width=30;
 * gdal_translate -projwin $((lon-width/2)) $((lat+width/2)) $((lon+width/2)) $((lat-width/2)) gebco_08_rev_elev_C1_grey_geo.tif red_sea.tif
 * convert red_sea.tif -resize 512 -contrast-stretch 0 red_sea.png

Problem is that it heavily influences balancing, all players are supposed to have roughly equal chances to victory at gamestart, but often the game has already decided after pressing the Start button.

  On 12/05/2019 at 11:14 AM, Nescio said:
  • Qatar is a peninsula, not an island 
  • There is no large bodies of water on the Eritrean-Ethiopian border 
Expand  

Pyrogenesis only has support for one level water plane, but in the desert some areas are dry despite being below water level (for the same reason, the Nile on Lower Nubia has few water).

  On 12/05/2019 at 11:14 AM, Nescio said:

Suez canal didn't exist 

Expand  

(Same with the Nile dams on Lower Nubia)

One can add some code to modify the terrain artificially afterwards. (Fixing it in atlas means the fixes are lost if one recenters the map)

  • Like 1
Link to comment
Share on other sites

  On 12/05/2019 at 11:34 AM, elexis said:

It's easily possible to move the heightmap:

 * wget https://eoimages.gsfc.nasa.gov/images/imagerecords/73000/73934/gebco_08_rev_elev_C1_grey_geo.tif
 * lat=22; lon=41; width=30;
 * gdal_translate -projwin $((lon-width/2)) $((lat+width/2)) $((lon+width/2)) $((lat-width/2)) gebco_08_rev_elev_C1_grey_geo.tif red_sea.tif
 * convert red_sea.tif -resize 512 -contrast-stretch 0 red_sea.png
Expand  

Thanks! I've never made heightmaps before.

I don't quite understand the coordinates, though. 41, 22 is in Macedonia.

Edited by Nescio
Link to comment
Share on other sites

That code is posted in the mapscript.

According to https://tools.wmflabs.org/geohack/geohack.php?pagename=Red_Sea&params=22_N_38_E_region:EG_type:adm1st_scale:100000000 which is linked from https://en.wikipedia.org/wiki/Red_Sea I didn't confuse latitude / longitude.

Chosing a different heightmap is an iterative process, one has to gradually change decimal places until one get's the optimum.

Link to comment
Share on other sites

  On 12/05/2019 at 12:39 PM, elexis said:
Expand  

The heightmap is correct. But as said above, lat 41, lon 22 could be Macedonia.

Link to comment
Share on other sites

  On 12/05/2019 at 12:38 PM, (-_-) said:

lat 22, lon 41 should be somewhere in west Saudi Arabia. Maybe you swapped lat and lon?

Expand  

Oops, you're right: 22, 41 is in Arabia, 41, 22 in Macedonia. And I've also found the source image area: https://visibleearth.nasa.gov/grid.php

Now, suppose I would want to make a heightmap along the 0° meridian (e.g. France), how to combine two images?

Edited by Nescio
lat, lon
Link to comment
Share on other sites

Anyway, moving the centre slightly to 24, 46 produced the map I wanted:

gdal_translate -projwin 30 40 62 8 gebco_08_rev_elev_C1_grey_geo.tif red_sea.tif
convert red_sea.tif -resize 512 contrast-stretch 0 red_sea.png

red_sea.png.714e844397d2758788032fd10c49ac25.png

image.thumb.png.1675d77941088b8b732f4fee1c29127e.png

Edited by Nescio
lat, lon
  • Like 2
Link to comment
Share on other sites

(I always find these maps odd due to the scale.)

  On 12/05/2019 at 12:52 PM, Nescio said:

Now, suppose I would want to make a heightmap along the 0° meridian (e.g. France), how to combine two images?

Expand  

Lon 0 Should be included in the C1 image. But if you want a nicer heightmap, you would need to include B1 too probably.

After the same old commands for both images done seperately you can combine the two using `convert +append 1.png 2.png out.png` + for horizontal side-by-side. - for vertical.

Link to comment
Share on other sites

  On 12/05/2019 at 1:10 PM, (-_-) said:

I always find these maps odd due to the scale.

Expand  

On the one hand one can change the mapscale, on the other hand maps that don't use heightmaps also use custom scales, on the foot there are some heightmap maps that use more proportionate scales (ratumacos).

  On 12/05/2019 at 12:52 PM, Nescio said:

how to combine two images?

Expand  

Mediterranean:

  Quote

 * wget https://eoimages.gsfc.nasa.gov/images/imagerecords/73000/73934/gebco_08_rev_elev_{A,B,C,D}{1..2}_grey_geo.tif
 * gdal_merge.py -o world.tif gebco_08_rev_elev_{A,B,C,D}{1..2}_grey_geo.tif
 * lat=46; lon=14; width=58;
 * gdal_translate -projwin $((lon-width/2)) $((lat+width/2)) $((lon+width/2)) $((lat-width/2)) world.tif mediterranean.tif
 * convert mediterranean.tif -resize 512 -contrast-stretch 0 mediterranean.png

Expand  

There are more examples, Hellas picks a random subset that meets some requirements (between 20% and 30% water), or Jebel Barkal which loads an Atlas map (you can load the image in atlas and save as a PMP file and load that in the random map, but that means one can't recenter it afterwards), Lower Nubia combines a heightmap and a composites to get a more precise shape of the nile, Elephantine uses OpenStreetMap data (since the blue marble data is very blurry when zooming in to that level). The comments are all in the headers of the JS files.

Link to comment
Share on other sites

  On 12/05/2019 at 1:19 PM, elexis said:
  Quote

 * wget https://eoimages.gsfc.nasa.gov/images/imagerecords/73000/73934/gebco_08_rev_elev_{A,B,C,D}{1..2}_grey_geo.tif
 * gdal_merge.py -o world.tif gebco_08_rev_elev_{A,B,C,D}{1..2}_grey_geo.tif
 * lat=46; lon=14; width=58;
 * gdal_translate -projwin $((lon-width/2)) $((lat+width/2)) $((lon+width/2)) $((lat-width/2)) world.tif mediterranean.tif
 * convert mediterranean.tif -resize 512 -contrast-stretch 0 mediterranean.png

Expand  
Expand  

Thanks again! Interestingly, the eight tiles are together 116 MB in size, merging them creates a file of 933 MB.

  On 12/05/2019 at 1:10 PM, (-_-) said:

(I always find these maps odd due to the scale.)

Expand  

True, but it can also be used for smaller areas, of course, e.g. Sicily [12 40 16 36]:

  Reveal hidden contents

Or the Strait of Messina [15.4 38.4 15.8 38.0]:

  Reveal hidden contents
Edited by Nescio
Zancle
  • Like 2
Link to comment
Share on other sites

Visible Earth heightmap is not that large. And 0AD would need only C1. I wonder if a single copy can be kept and a library built around it would be a good idea.

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

Guest
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.

 Share

×
×
  • Create New...