Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I am working in a project of glacier mass balance. For my project I want to integrate the area of the drainage basin in a glaciological system model (GSM). As the drainage area changes with time due to topographic evolution (ice accumulation or melt), I need to be able to integrate some code which calculates this area in the GSM. Would anybody know where I could find some code to compute the drainage area of a region?

share|improve this question
1  
The 80's called. They want their programming language back. :p May I ask why you are asking for Fortran code? –  Ragi Yaser Burhum Feb 2 '12 at 0:20
1  
I think the OP needs FORTRAN because the GSM is written in FORTRAN. FORTRAN is still very popular in large computational models, e.g. climate models. –  Paul Hiemstra Feb 2 '12 at 11:55
    
the GSM is effectivly written in fortran but if you know about a model in another language I could convert it. –  kevin Feb 2 '12 at 18:34
    
Is there any chance of calling an external program (eg, arcmap with Python) to do it for you, and dump the output somewhere usable? I'm not familiar with fortran's abilities, so that's why I ask. I'd recommend that as a simpler route. If not, you might check with the people who wrote ArcHydro at University of Texas: crwr.utexas.edu/giswr/hydro - I don't know if they use ArcGIS' builtin drainage area calculations or not, but I think otherwise they probably have some .NET code for it. –  nicksan Feb 7 '12 at 19:10
    
Check HEC-RAS. –  A.R Jan 24 '13 at 12:47

1 Answer 1

Sue Greenlee's original code - that Esri's and many other watershed codes are based on - was published in FORTRAN in 1988. I'd go looking for that - don't see it on the web - but you could always email her! Kind of surprised it's not in GitHub, it's pretty neat code.

Jenson S. K. and J. O. Domingue. 1988. Extracting Topographic Structure from Digital Elevation Data for Geographic Information System Analysis. Photogrammetric Engineering and Remote Sensing 54 (11): 1593-1600.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.