Rank: 2621 based on 49 downloads (last 30 days) and 2 files submitted
photo

Juernjakob Dugge

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Files Posted by Juernjakob View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
17 Dec 2013 Screenshot xy2sn Transform cartesian to curvilinear orthogonal coordinates, e.g. a flow-oriented coordinate system. Author: Juernjakob Dugge coordinate transforma..., earth science, interpolation, bathymetry 28 3
  • 4.0
4.0 | 1 rating
13 Jun 2013 Screenshot Calculate DEM Surface Area Calculate the corrected surface area of a digital elevation model. Author: Juernjakob Dugge dem, elevation, surface area 21 0
Comments and Ratings by Juernjakob View all
Updated File Comments Rating
17 Dec 2013 xy2sn Transform cartesian to curvilinear orthogonal coordinates, e.g. a flow-oriented coordinate system. Author: Juernjakob Dugge

Thanks for the feedback, Jie. I've edited the function to now use a linear approximation of the smoothed pathline, which speeds up the process significantly.

01 Nov 2013 calcCircle Find the circle that passes through 3 non-collinear points. Author: Peter Bone

22 Jan 2013 ARCGRIDWRITE Write gridded data set in Arc ASCII Grid Format Author: Andrew Stevens

Comments and Ratings on Juernjakob's Files View all
Updated File Comment by Comments Rating
03 Jun 2014 xy2sn Transform cartesian to curvilinear orthogonal coordinates, e.g. a flow-oriented coordinate system. Author: Juernjakob Dugge Greene, Chad

These functions have proven quite helpful for me, Juernjakob! I would make one change: For most applications, the normalized s is awkward and unintuitive. For river flow applications it makes little sense to describe data points as being one-half of one river unit downstream. If data start out in meters, why not keep the data in meters? In every case I've needed to follow xy2sn with distanceAlongFlow=S*L. Then I often think I'm done with the L variable, only to realize that I should have kept it to transform back into the xy coordinate system.

In this situation, I have tried the following incorrect way of getting back to x,y:

[x,y] = sn2xy(distanceAlongFlow/max(distanceAlongFlow),N,centerlineX,centerlineY);

The above solution would only be correct if the maximum value in distanceAlongFlow is located at the endpoint of the centerline. If you find yourself in a similar situation, the correct solution can be obtained by

[x,y] = sn2xy(distanceAlongFlow/arclength(centerlineX,centerlineY,'sp'),N,centerlineX,centerlineY);

Despite this minor issue, the functions are quite useful--thanks for sharing.

17 Dec 2013 xy2sn Transform cartesian to curvilinear orthogonal coordinates, e.g. a flow-oriented coordinate system. Author: Juernjakob Dugge Dugge, Juernjakob

Thanks for the feedback, Jie. I've edited the function to now use a linear approximation of the smoothed pathline, which speeds up the process significantly.

12 Dec 2013 xy2sn Transform cartesian to curvilinear orthogonal coordinates, e.g. a flow-oriented coordinate system. Author: Juernjakob Dugge Jie

Hi, Juernjakob, this program is very useful for handling river data. The problem is that the efficiency of this program need to be improved. I tried it for just 150,000 points, and it is not finished for more than half an hour. You know, for most of field applications, data sets with more than one million data points is very common. So, it will be more useful, if the efficiency of this program could be improved in future.

Contact us