[GRASS-user] measuring line sinuosity in GRASS

Hi GRASS-grazers,

I’m wondering if anyone out there has a script or has done any sinuosity measurements on vector lines?

I have a map with a number of quasi-parallel vector lines and I would like to do sinuosity measurements (line length divided by node-to-node straight-line distance) on each line separately. I guess the ideal output would be the same vector map but now with the sinuosity attribute attached to each line.

Does anyone have any thoughts on how to do this?

Thanks,

Garret