Re: [GRASS-dev] Temporal GIS: best practice to access a map at a specific time?
On 22 May 2015 at 22:54, Laurent C. wrote: > Hi all, > Hi Laurent, I try to answer to your question > I'm working on a python module which compute superficial flows using > simplified shallow water equations. It already works quite well and export > results as temporal data sets. > But I'd like to add the possibility to work with temporal data sets as input > (typically rainfall or other input flows). > I've looked at the documentation of the temporal module, but I haven't > figure out what would be the best way to access a strds at a specified time. > There might be something with get_registered_maps, but I don't know how to > select the map when the simulation time is between 'start-time' and > 'end-time'. I don't know is SQL would be of any help here. > to get the registered maps for a period you can use t.rast.list using the where option like "where=start-time>'2001-01-01 12:30:00' and end-time<='2001-01-01 13:30:00' " or using the python function tgis.list_maps_of_stds("strds", input, columns, order, where, separator, method, header, granule) > currently my program looks like this: > > > load grass maps as numpy arrays > > while not sim_clock >= sim_duration: > calculate time-step duration > calculate flow and water depth > write results > > register produced maps in space-time dataset > > > I was thinking of checking at the beginning of the while loop if there is > the current input map is still valid for the current time-step, and ielse > loading the new one. Does this approach make sense and how could I do that? > If I understand well your question, yes it should > Thanks for your time. > > Regards, > Laurent > -- ciao Luca http://gis.cri.fmach.it/delucchi/ www.lucadelu.org ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev
Re: [GRASS-dev] create location in windows
Hi Luca, Luca Delucchi wrote > Hi devs, > > a colleague of mine has problem creating new location on Windows7. > Here the error that she got using epsg code or prj file > > Traceback (most recent call last): > File "C:\Program Files (x86)\GRASS GIS > 7.0.1RC1\gui\wxpython\gis_set.py", line > 500, in OnWizard > grassdatabase = self.tgisdbase.GetValue()) > File "C:\Program Files (x86)\GRASS GIS > 7.0.1RC1\gui\wxpython\location_wizard\w > izard.py", line 1916, in __init__ > msg = self.OnWizFinished() > File "C:\Program Files (x86)\GRASS GIS > 7.0.1RC1\gui\wxpython\location_wizard\w > izard.py", line 2111, in OnWizFinished > **addl_opts) > File "C:\Program Files (x86)\GRASS GIS > 7.0.1RC1\etc\python\grass\script\core.p > y", line 1396, in create_location > encoding='utf-8', mode='w') > File "C:\Program Files (x86)\GRASS GIS 7.0.1RC1\Python27\lib\codecs.py", > line > 881, in open > file = __builtin__.open(filename, mode, buffering) > IOError: [Errno 2] No such file or directory: > u'D:\\GEOGRAPHY\\MODIS\\PERMANENT\ > \MYNAME' > > > D:\\GEOGRAPHY\\ exists and MODIS should be the location. > > Any idea? a bug already fixes in RC2? > > -- > ciao > Luca tested here with GRASS Version: 7.0.1RC2 GRASS SVN Revision: 65731 Erstellungsdatum: 2015-07-21 Build Platform: i686-pc-mingw32 GDAL/OGR: 1.11.2 PROJ.4: 4.8.0 GEOS: 3.4.2 SQLite: 3.7.17 Python: 2.7.4 wxPython: 2.8.12.1 Platform: Windows-Vista-6.0.6002-SP2 (OSGeo4W) in a german locale box. location creating by epsg code or prj file works here without any problem - best regards Helmut -- View this message in context: http://osgeo-org.1560.x6.nabble.com/create-location-in-windows-tp5217591p5217613.html Sent from the Grass - Dev mailing list archive at Nabble.com. ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev
Re: [GRASS-dev] create location in windows
On 29 July 2015 at 16:42, Markus Neteler wrote: > On Wed, Jul 29, 2015 at 4:33 PM, Luca Delucchi wrote: >> Hi devs, >> >> a colleague of mine has problem creating new location on Windows7. >> Here the error that she got using epsg code or prj file >> >> Traceback (most recent call last): >> File "C:\Program Files (x86)\GRASS GIS 7.0.1RC1\gui\wxpython\gis_set.py", >> line >> 500, in OnWizard >> grassdatabase = self.tgisdbase.GetValue()) >> File "C:\Program Files (x86)\GRASS GIS >> 7.0.1RC1\gui\wxpython\location_wizard\w >> izard.py", line 1916, in __init__ >> msg = self.OnWizFinished() >> File "C:\Program Files (x86)\GRASS GIS >> 7.0.1RC1\gui\wxpython\location_wizard\w >> izard.py", line 2111, in OnWizFinished >> **addl_opts) >> File "C:\Program Files (x86)\GRASS GIS >> 7.0.1RC1\etc\python\grass\script\core.p >> y", line 1396, in create_location >> encoding='utf-8', mode='w') > > ... mhh, once again an encoding issue? > I don't think is an encoding problem... >> File "C:\Program Files (x86)\GRASS GIS 7.0.1RC1\Python27\lib\codecs.py", >> line >> 881, in open >> file = __builtin__.open(filename, mode, buffering) >> IOError: [Errno 2] No such file or directory: >> u'D:\\GEOGRAPHY\\MODIS\\PERMANENT\ >> \MYNAME' > > I wonder why there are double \\ while two lines above there are only > the common single \. > if it used os.path.normpath it add double \ > Just guessing... > >> >> D:\\GEOGRAPHY\\ exists and MODIS should be the location. > > Is D:\\GEOGRAPHY\\MODIS\\PERMANENT\ there? > no, it should be created by the location wizard... >> Any idea? a bug already fixes in RC2? > > Good question, maybe worth trying. > we will try tomorrow... > Markus -- ciao Luca http://gis.cri.fmach.it/delucchi/ www.lucadelu.org ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev
Re: [GRASS-dev] create location in windows
On Wed, Jul 29, 2015 at 4:33 PM, Luca Delucchi wrote: > Hi devs, > > a colleague of mine has problem creating new location on Windows7. > Here the error that she got using epsg code or prj file > > Traceback (most recent call last): > File "C:\Program Files (x86)\GRASS GIS 7.0.1RC1\gui\wxpython\gis_set.py", > line > 500, in OnWizard > grassdatabase = self.tgisdbase.GetValue()) > File "C:\Program Files (x86)\GRASS GIS > 7.0.1RC1\gui\wxpython\location_wizard\w > izard.py", line 1916, in __init__ > msg = self.OnWizFinished() > File "C:\Program Files (x86)\GRASS GIS > 7.0.1RC1\gui\wxpython\location_wizard\w > izard.py", line 2111, in OnWizFinished > **addl_opts) > File "C:\Program Files (x86)\GRASS GIS > 7.0.1RC1\etc\python\grass\script\core.p > y", line 1396, in create_location > encoding='utf-8', mode='w') ... mhh, once again an encoding issue? > File "C:\Program Files (x86)\GRASS GIS 7.0.1RC1\Python27\lib\codecs.py", > line > 881, in open > file = __builtin__.open(filename, mode, buffering) > IOError: [Errno 2] No such file or directory: > u'D:\\GEOGRAPHY\\MODIS\\PERMANENT\ > \MYNAME' I wonder why there are double \\ while two lines above there are only the common single \. Just guessing... > > D:\\GEOGRAPHY\\ exists and MODIS should be the location. Is D:\\GEOGRAPHY\\MODIS\\PERMANENT\ there? > Any idea? a bug already fixes in RC2? Good question, maybe worth trying. Markus ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev
[GRASS-dev] create location in windows
Hi devs, a colleague of mine has problem creating new location on Windows7. Here the error that she got using epsg code or prj file Traceback (most recent call last): File "C:\Program Files (x86)\GRASS GIS 7.0.1RC1\gui\wxpython\gis_set.py", line 500, in OnWizard grassdatabase = self.tgisdbase.GetValue()) File "C:\Program Files (x86)\GRASS GIS 7.0.1RC1\gui\wxpython\location_wizard\w izard.py", line 1916, in __init__ msg = self.OnWizFinished() File "C:\Program Files (x86)\GRASS GIS 7.0.1RC1\gui\wxpython\location_wizard\w izard.py", line 2111, in OnWizFinished **addl_opts) File "C:\Program Files (x86)\GRASS GIS 7.0.1RC1\etc\python\grass\script\core.p y", line 1396, in create_location encoding='utf-8', mode='w') File "C:\Program Files (x86)\GRASS GIS 7.0.1RC1\Python27\lib\codecs.py", line 881, in open file = __builtin__.open(filename, mode, buffering) IOError: [Errno 2] No such file or directory: u'D:\\GEOGRAPHY\\MODIS\\PERMANENT\ \MYNAME' D:\\GEOGRAPHY\\ exists and MODIS should be the location. Any idea? a bug already fixes in RC2? -- ciao Luca http://gis.cri.fmach.it/delucchi/ www.lucadelu.org ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev
Re: [GRASS-dev] Add support for Python3
Hi all, On Mon, Jul 27, 2015 at 8:47 AM, Luca Delucchi wrote: > On 24 July 2015 at 12:42, Pietro wrote: >> Are you ok with this schedule? > > yes, let us know when you commit the changes to test them ok, I've now synchronized my local changes in script/core to trunk: - https://trac.osgeo.org/grass/changeset/65786 - https://trac.osgeo.org/grass/changeset/65787 - https://trac.osgeo.org/grass/changeset/65788 - https://trac.osgeo.org/grass/changeset/65789 - https://trac.osgeo.org/grass/changeset/65790 - https://trac.osgeo.org/grass/changeset/65791 - https://trac.osgeo.org/grass/changeset/65792 - https://trac.osgeo.org/grass/changeset/65793 - https://trac.osgeo.org/grass/changeset/65794 - https://trac.osgeo.org/grass/changeset/65795 - https://trac.osgeo.org/grass/changeset/65796 - https://trac.osgeo.org/grass/changeset/65797 I tested using the current testsuite, please tell me if you find bugs or better write a test that highlights the problem and I will try to fix it as soon as I can. All the best Pietro ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev
Re: [GRASS-dev] GRASS GIS 7.0.1 planning: potential backports
Hi, since 7.0.1RC2 did not receive any negative feedback, let's get it out as final today. Stuff already accumulates for https://trac.osgeo.org/grass/wiki/Grass7Planning#a7.0.2tobebackported :-) Markus ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev
[GRASS-dev] Today 32 years of GRASS GIS
... 2 years ago we celebrated http://grass.osgeo.org/news/27/15/30-years-of-GRASS-GIS-development/ Today we may publish the version 7.0.1! cheers Markus ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev
Re: [GRASS-dev] doxygen installation
On Sun, Jul 26, 2015 at 1:42 PM, Rob Parsons wrote: > Hi, > > I am building up (slowly) a Windows 7 Eclipse (Mars) development > environment. If it makes sense, please consider to eventually update http://grasswiki.osgeo.org/wiki/Eclipse > I have installed the OSGeo4W instrastructure. > I have installed the 'grass7_trunk' SVN repository locally under > C:\OSGeo4W\src. > > I want to run: > > make htmldocs > make pdfdocs > > I know I need to run 'make' from the MSYS shell. > > How/where do you normally install doxygen in this particular development > environment? > > > From MSYS shell: > --- > > Ruth@Ruth-PC ~ > $ which doxygen > which: doxygen: unknown command > > Ruth@Ruth-PC ~ > $ where doxygen > INFO: Could not find files for the given pattern(s). > > Ruth@Ruth-PC ~ > $ echo $PATH > .:/usr/local/bin:/mingw/bin:/bin:/osgeo4w/bin:/c/windows/system32:/c/windows:/c/windows/WBem:/usr/bin:/osgeo4w/apps/Python27/Scripts > > > From OSGeo4W shell: > > > C:\Users\Ruth\Desktop>where doxygen > C:\Program Files\doxygen\bin\doxygen.exe > > C:\Users\Ruth\Desktop> Please try echo $PATH also in the OSGeo4W shell, perhaps there is a subtle difference. Or, add C:\Program Files\doxygen\bin\ to the path in MSYS. Markus ___ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev