cartrite wrote:I used the inland waters from the old lancover files
because I thought they were a closer match.
Anyhow first I converted them to bmps with IM Windows version. For
some reason I could not do the following steps with the linux version
of IM because they came out completely black. I opened the bmp with
the gimp, changed it to rgb, did a filters -> colors -> value invert.
Then did a brightness -127 & contrast +127. Then select by color
threshold 1 from mid ocean. bucket filled white. Inverted the selection
then bucket filled black.
Then I took the file created by my tool and selected by color the
oceans. Then I grew the selection by 6 pixels and bucketfilled black. I
copied and pasted onto the landcover file. All that was left was inland
waters. Everything else was black. I was then able to select the inland
waters and paste them onto the file created by my tool without
affecting the coastlines.
The reason I said I cheated is because I tried in vain to extract inland
waters from the SRTM map. And there is No way to do it. Not for me
anyway. The lakes are not a "single flat value".Some rivers are
extracted but there is a lot of white noise always there like the Pics I
posted above a couple of days ago.
cartrite
Cartrite,
that procedure of yours is
faaaar too complicated! All you got to do to
appropriately combine the new custom map [with the smooth oceanic
boundaries obtained from the elevation=0 request] and the latest 84k
BMNG watermask is this:
First one realizes that the awkward effects are mainly due to the white
reflective boundaries being /smaller/ than the true water/land border
such that one can see a few pixels of the dark blue water without any
reflections! If the white part of the spec map is rather a couple of
pixels larger than the oceans here and there, this is not so bad.
So here is the extremely simple rule: just logically OR the pixels of the
two black&white maps. In more detail: let white=w, black=b
++++++++++++++++++++++++++
In simple words, this means if both maps want an area black
(unreflective) make it black. If either both maps or already one of the
two wants it reflective make it white! This way, in case of "doubt" =
"disagreement among the two maps", we go for reflective rather than
unreflective.
++++++++++++++++++++++++++
You may either hack some simple code where you read in row by row
from these two files and OR them, or you use GIMP in ADD mode,
loading the second map as a layer, connecting the two with
ADD. Since at the
8bit b/w level
In case of GIMP, you need lots of RAM like I have (3GB) to manipulate
both these fullsize layers.
Just make yourself a little drawing of the (imperfectly) overlapping two
textures and realize what the logical OR means.
Either way is quick and utterly simple. In my case the 64k result looks
pretty good. Certainly WAY better than the original 64k watermap.
Bye Fridger