Jump to content

 
Photo

Cast Shadows

- - - - -

  • Please log in to reply
6 replies to this topic

#1
Martin Gamache

Martin Gamache

    Ultimate Contributor

  • Associate Admin
  • PipPipPipPipPipPip
  • 980 posts
  • Gender:Male
  • Location:Washington DC
  • Interests:History of Topographic Cartography
    Topographic Mapping
    History of Relief Depiction
    Thematic Cartography
    Demographic Cartography
    Cartographic techniques, methods, and tools
    Orienteering
    Panoramic & Kite Photography
  • United States

I'm looking for a way to create a cast shadow mask from a DEM given an light source azimuth and solar elevation?

#2
frax

frax

    Hall of Fame

  • Associate Admin
  • PipPipPipPipPipPipPip
  • 2,320 posts
  • Gender:Male
  • Location:Stockholm, Sweden
  • Interests:music, hiking, friends, nature, photography, traveling. and maps!
  • Sweden

you have ArcGIS don't you? The hillshade command has the options both/shade/shadow - run it with only shadow and see what it looks like - isn't that what you are looking for?
Hugo Ahlenius
Nordpil - custom maps and GIS
http://nordpil.com/
Twitter

#3
Martin Gamache

Martin Gamache

    Ultimate Contributor

  • Associate Admin
  • PipPipPipPipPipPip
  • 980 posts
  • Gender:Male
  • Location:Washington DC
  • Interests:History of Topographic Cartography
    Topographic Mapping
    History of Relief Depiction
    Thematic Cartography
    Demographic Cartography
    Cartographic techniques, methods, and tools
    Orienteering
    Panoramic & Kite Photography
  • United States

Hugo,


I did just that, I had to go and find a place with a version of spatial analyst first. The shadow option worked great. The metadata file for my Landsat image had the elevation and azimuth value. The algorithm assigns a value of zero to all the shadows. All I had to do is reclassify the image and create a 2 bit mask and I was in business.

I was hoping to find a non spatial analyst way to do it from the comfort of my office but....

#4
frax

frax

    Hall of Fame

  • Associate Admin
  • PipPipPipPipPipPipPip
  • 2,320 posts
  • Gender:Male
  • Location:Stockholm, Sweden
  • Interests:music, hiking, friends, nature, photography, traveling. and maps!
  • Sweden

well, if the machine with spatial analyst is networked, and has ArcInfo workstation installed, you should be able to do it through a console (telnet/ssh). But then maybe you could use something like VNC too, and use the GUI that way.
Hugo Ahlenius
Nordpil - custom maps and GIS
http://nordpil.com/
Twitter

#5
Kartograph

Kartograph

    Legendary Contributor

  • Validated Member
  • PipPipPipPipPip
  • 320 posts
  • Gender:Male
  • Location:Berlin, Deutschland
  • Germany

Hugo, I think Martin might not be legally allowed to do just that...

#6
Martin Gamache

Martin Gamache

    Ultimate Contributor

  • Associate Admin
  • PipPipPipPipPipPip
  • 980 posts
  • Gender:Male
  • Location:Washington DC
  • Interests:History of Topographic Cartography
    Topographic Mapping
    History of Relief Depiction
    Thematic Cartography
    Demographic Cartography
    Cartographic techniques, methods, and tools
    Orienteering
    Panoramic & Kite Photography
  • United States

I have access through a couple of legit ways. Since this was part of a class assignment, I was able to use a school machine to generate the mask. I'm able to access some unix software through an X_win session from myoffice but ARC isnt one of them so I had to actually go there and physically do it. It got complicated because the first time I went the DEM data had somehow gotten corrupt on my USB key.... to make a long story short, it was a long day.

The ARC algorithm seems to slightly underestimate shadows, of course it is a function of the DEM accuracy....

#7
rmcculley

rmcculley

    Contributor

  • Validated Member
  • PipPip
  • 38 posts
  • Location:Vermilion, Alberta, Canada
  • Canada

I don't know how well this will work as I haven't tried it:

http://www.perrygeo.net/wordpress/?p=7

[Edit]Now that I've re-read that page, I see that it might not do what you are looking for.[/Edit]




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

-->