pesekon2 / GRASS-GIS-SOS-tools

My Google Summer of Code 2017 project. This is just development part. Intended GRASS GIS modules and final code will be at https://svn.osgeo.org/grass/grass-addons/
GNU General Public License v2.0
3 stars 1 forks source link

granularity #32

Closed lucadelu closed 7 years ago

lucadelu commented 7 years ago

Some comments about granularity:

Probably the function/functions for granularity could be moved to libsos

pesekon2 commented 7 years ago

Don't you know, is there any handy function to convert the granularity string in that format (2 days, 5 months) into seconds (int)? Because everything I'm able to find in the temporal is working with stds and I would like to avoid the functions duplicity.

lucadelu commented 7 years ago

Yes there is a function in temporal library http://trac.osgeo.org/grass/browser/grass/trunk/lib/python/temporal/temporal_granularity.py#L1104

Sent from my HUAWEI PRA-LX1 using FastHub