Puget Sound Bathymetry over Google Maps

General banter about diving and why we love it.
User avatar
lamont
I've Got Gills
Posts: 1212
Joined: Thu Jul 20, 2006 7:00 pm

Puget Sound Bathymetry over Google Maps

Post by lamont »

http://www.scriptkiddie.org/bath

I've been working on that for a couple of months now. There's a whole lot more features that I've been testing and are in the pipeline to release, but I need to figure out if I can serve the uderlying bathymetry data publically with my latest refactoring without creaming the heck out of my upstream bandwidth and my server CPU.

This is buggy and not even really a beta test. The two highest zooms don't have any tiles generated for them. The script that I've got now that generates the tiles I estimate takes 2 days to run and I needed to fix some bugs and run it again so I decided to just throw what I've got out there.

You'll notice that lake washington is 18.75 ft lower than it should be. I tried to fix this but transposed x and y coordinates and accidentally hit Dungeness Bay / Sequim with a 18.75 ft tsunami (or maybe its global warming?)...

The source of the underlying data is here:

http://www.ocean.washington.edu/data/pu ... m2005.html
User avatar
Joshua Smith
I've Got Gills
Posts: 10250
Joined: Mon Apr 03, 2006 9:32 pm

Post by Joshua Smith »

That looks reeeaaally interesting.....I'd like to see it when it's a bit more polished. I've been thinking about looking for a chart that shows the Sound like a USGS map shows elevations....those all seem to stop at sea level, for some strange reason. Nice work!
Maritime Documentation Society

"To venture into the terrible loneliness, one must have something greater than greed. Love. One needs love for life, for intrigue, for mystery."
User avatar
lamont
I've Got Gills
Posts: 1212
Joined: Thu Jul 20, 2006 7:00 pm

Post by lamont »

how painful was the response time? i was watching you in my access logs and it seemed like it was a big laggy...

(i'll find out for myself tomorrow at work though...)
User avatar
lamont
I've Got Gills
Posts: 1212
Joined: Thu Jul 20, 2006 7:00 pm

Post by lamont »

one performance bug i just found was that if it accesses tiles outside of the bounding box it gets back a 404 which the browser never caches and will slow down page displays... there's a documented fix for this i'll be able to use to return blank.jpg file which should speed up initial page loads and reloads on zoomed out images...
User avatar
Joshua Smith
I've Got Gills
Posts: 10250
Joined: Mon Apr 03, 2006 9:32 pm

Post by Joshua Smith »

lamont wrote:how painful was the response time? i was watching you in my access logs and it seemed like it was a big laggy...

(i'll find out for myself tomorrow at work though...)
Well, there was some lag before the overlay showed up, but not too bad.
Maritime Documentation Society

"To venture into the terrible loneliness, one must have something greater than greed. Love. One needs love for life, for intrigue, for mystery."
User avatar
nwscubamom
I've Got Gills
Posts: 2315
Joined: Tue Mar 14, 2006 11:13 am

Post by nwscubamom »

This is TOO cool!!!

The response time for me was pretty good too! Not instantaneous, but mostly even faster than what I find for Google Earth when it's attempting to resolve.

I've been poking around Hood Canal - pretty cool, the Pinnacle shows up nicely there.

I'm impressed!!

- Janna :)
Janna Nichols
My underwater photo galleries
REEF Citizen Science Program Manager
Seen any cool critters lately?
><((((°>
-----------------------------
User avatar
Tom Nic
I've Got Gills
Posts: 9368
Joined: Mon Apr 10, 2006 6:26 pm

Post by Tom Nic »

VERY nice Lamont! Way cool!

I've been poking around Day Island and Titlow... explains why heading into the shallows from the South part of Day Island Wall is such a long swim! The shallows are much "larger" to the South than the north.

Is there a depth gradient chart to go with the colors? Would the narrow yellow band indicate a wall? It looks like the same wall goes on up the Narrows to Titlow... interesting! I notice that the yellow band is wider across the narrows... so I'm assuming that any very narrow band would indicate a small area with that depth, so a wall of any "height" (depth in this case) would show up as a narrow band of color.

Very nice! :supz:
More Pics Than You Have Time To Look AT
"Anyone who thinks this place is over moderated is bat-crazy anarchist." -Ben, Airsix
"Warning: No dive masters are going to be there, Just a bunch of old fat guys taking pictures of fish." -Bassman
User avatar
Seaslave
Compulsive Diver
Posts: 343
Joined: Mon Aug 07, 2006 1:43 pm

Post by Seaslave »

Very cool Lamont. I can't imagine the amount of time this must take to build. Do you have plans to extend the data up into the North San Juans, my neck of the woods? Either way, outstanding job, thank you.


Mathue
User avatar
Joshua Smith
I've Got Gills
Posts: 10250
Joined: Mon Apr 03, 2006 9:32 pm

Post by Joshua Smith »

This thing is great! I've been playing around with it some more, looking at Cove 2 and Muk, Hood Canal- (The pinnacle does show up nicely) Really cool, Lamont!
Maritime Documentation Society

"To venture into the terrible loneliness, one must have something greater than greed. Love. One needs love for life, for intrigue, for mystery."
User avatar
lamont
I've Got Gills
Posts: 1212
Joined: Thu Jul 20, 2006 7:00 pm

Post by lamont »

Tom Nic wrote: Is there a depth gradient chart to go with the colors? Would the narrow yellow band indicate a wall?
i think the yellow tends to visually look narrower because it gets washed out by the colors on either side of it.

but in general it works like a contour map so the closer the contours are together the steeper the slope will be. big wide bands of color are going to be very flat (look at edmonds or alki pipeline)
User avatar
lamont
I've Got Gills
Posts: 1212
Joined: Thu Jul 20, 2006 7:00 pm

Post by lamont »

Seaslave wrote:Very cool Lamont. I can't imagine the amount of time this must take to build. Do you have plans to extend the data up into the North San Juans, my neck of the woods? Either way, outstanding job, thank you.


Mathue
well, the data i pulled off that UW site which is 10m resolution. there's a previous 30m resolution DEM which covers more area which i could use to cover more area at lower resolution. there's also some nice 3m and 4m DEMs of elliott bay and commencement bay which i want to get as overlays on top of this data.

there's also the raw underlying NOAA bathymetry data, but it is all in ungridded X,Y,Z data soundings and not a DEM grid like this data -- and i've checked out some publically available geomapping tools and haven't found one with a good algorithm for taking data which is both highly under- and over- sampled in parts and turning it into a consistent grid.

i know that around the Al-ind-eska-Sea and the vertical barges that the underlying data is actually much better than the 10m grid so i could probably use a 3m grid over that section of the data -- but i'm not there yet.

wait until i get the NOAA wreck and obstruction database overlayed as waypoints on top of this stuff... i've got it all working, but its on the old mapserver engine and i just need to port it...
User avatar
lamont
I've Got Gills
Posts: 1212
Joined: Thu Jul 20, 2006 7:00 pm

Post by lamont »

if anyone was wondering, here's the color values used for the default scheme which is on there now (ft, R, G, B):

0 0 0 0
-1 255 0 0
-66 255 255 0
-132 0 255 0
-198 0 255 255
-264 255 255 255
-330 255 0 255
-396 0 0 255
-967 0 0 1

so the middle of the green band is the limits of recreational diving.
User avatar
nwscubamom
I've Got Gills
Posts: 2315
Joined: Tue Mar 14, 2006 11:13 am

Post by nwscubamom »

Will we have the ability to overlay our own waypoints onto the map so we can see where dive sites are etc? Like on Google Earth?

- Janna :)
Janna Nichols
My underwater photo galleries
REEF Citizen Science Program Manager
Seen any cool critters lately?
><((((°>
-----------------------------
User avatar
lamont
I've Got Gills
Posts: 1212
Joined: Thu Jul 20, 2006 7:00 pm

Post by lamont »

nwscubamom wrote:Will we have the ability to overlay our own waypoints onto the map so we can see where dive sites are etc? Like on Google Earth?

- Janna :)
I've been thinking about going all web-2.0 wikipedia on it and setting up waypoints and divesite reviews public/private, etc, but for now its static content... wikifiying it is probably at least 6 months out...

i just switched over to the new tile set, which has lake washington depth corrected for the lowest level of the lake rather than MLLW of the sound. it also has all but the final level of zoom generated (which took all night, it just started on the final level of zoom which will take another 1.5 days). and the tidal wave in dungeness bay should be gone...

looks like i need to fix I-5 at MLK way now though...
User avatar
nwscubamom
I've Got Gills
Posts: 2315
Joined: Tue Mar 14, 2006 11:13 am

Post by nwscubamom »

Well, no matter how you cut it, it's USEFUL and really neat!

Waypointable or not!

Nice work, keep at it!

- Janna :)
Janna Nichols
My underwater photo galleries
REEF Citizen Science Program Manager
Seen any cool critters lately?
><((((°>
-----------------------------
User avatar
lundysd
Extreme Diving Machine
Posts: 422
Joined: Wed Apr 11, 2007 11:28 pm

Post by lundysd »

freakin cool :)
dsteding
I've Got Gills
Posts: 1857
Joined: Mon Jun 12, 2006 7:50 pm

Post by dsteding »

Really cool Lamont-

One bug I just noted. The bathymetry overlay is now covering the Google street base map as well as the water areas (it tiles over as white). It wasn't like that the other night, so I assume this is a result of you tweaking other things . . .

An awesome piece of work!
User avatar
lamont
I've Got Gills
Posts: 1212
Joined: Thu Jul 20, 2006 7:00 pm

Post by lamont »

dsteding wrote: One bug I just noted. The bathymetry overlay is now covering the Google street base map as well as the water areas (it tiles over as white). It wasn't like that the other night, so I assume this is a result of you tweaking other things . . .
i think you've probably got a buggy browser that doesn't support transparent PNG correctly. IE6 and IE7beta are known to have these bugs. the latest IE7 or mozilla/firefox are known to be good (not sure about latest IE6). you were probably using a different browser the other night?
dsteding
I've Got Gills
Posts: 1857
Joined: Mon Jun 12, 2006 7:50 pm

Post by dsteding »

lamont wrote:
dsteding wrote: One bug I just noted. The bathymetry overlay is now covering the Google street base map as well as the water areas (it tiles over as white). It wasn't like that the other night, so I assume this is a result of you tweaking other things . . .
i think you've probably got a buggy browser that doesn't support transparent PNG correctly. IE6 and IE7beta are known to have these bugs. the latest IE7 or mozilla/firefox are known to be good (not sure about latest IE6). you were probably using a different browser the other night?
You are correct, last night it was firefox on my mac. Today it was IE6 at work . . . nice diagnosis.
User avatar
lamont
I've Got Gills
Posts: 1212
Joined: Thu Jul 20, 2006 7:00 pm

Post by lamont »

dsteding wrote: You are correct, last night it was firefox on my mac. Today it was IE6 at work . . . nice diagnosis.
i need to setup a FAQ page since I'm reasonably certain you're only going to be the first person to ask that question...

it looks like its a little over halfway done with zoom 17 now, but it goes west-to-east so it barely gets to the west side of puget sound...

i think i've got an algorithm i can use to figure out which tiles are entirely transparent at higher zoom levels, verify there are no points in the area in the parent DEM and then autogenerate all the empty pngs for all the zooms down to 17 which should speed things up a lot... most of the 2 days it spends generating tiles is spent generating empty tiles at zoom 17...
User avatar
Marc
Extreme Diving Machine
Posts: 411
Joined: Fri Mar 31, 2006 10:51 am

At least once a week

Post by Marc »

I have to tell someone how much I hate Internet Exploder..... This week it is you guys. thank you.
Reporter: "The helmet has a special meaning for many drivers. How important is it to you?"

Raikkonen: "It protects my head."
dsteding
I've Got Gills
Posts: 1857
Joined: Mon Jun 12, 2006 7:50 pm

Re: At least once a week

Post by dsteding »

Blitz wrote:I have to tell someone how much I hate Internet Exploder..... This week it is you guys. thank you.
And, I hate you because you are going to Oahu :axe:
yoda
Just Settling In
Posts: 14
Joined: Mon Feb 26, 2007 4:31 pm

Post by yoda »

wow Lamont...looks great on this end...and not a bad response time either! Good stuff - many thanks for the work you've put into it!
There's plenty of room for airplane races in the eye of a hurricane...
User avatar
Marc
Extreme Diving Machine
Posts: 411
Joined: Fri Mar 31, 2006 10:51 am

Re: At least once a week

Post by Marc »

dsteding wrote:
Blitz wrote:I have to tell someone how much I hate Internet Exploder..... This week it is you guys. thank you.
And, I hate you because you are going to Oahu :axe:
Less than 48 hours out.

....and I am going with a hot chick.
Reporter: "The helmet has a special meaning for many drivers. How important is it to you?"

Raikkonen: "It protects my head."
User avatar
lamont
I've Got Gills
Posts: 1212
Joined: Thu Jul 20, 2006 7:00 pm

Post by lamont »

just deployed some upgrades. supports url parameters for lat,lng,zoom has linkToMe which rewrites the url line to give a link to the current display, has entry box for lat/lng and when you click on the map it outputs lat/lng in a message box
Post Reply