[GRASS-dev] Re: [GRASS GIS] #1161: g.region and r.info decimel
issue when using grass python libs
GRASS GIS
trac at osgeo.org
Thu Sep 30 10:04:03 EDT 2010
#1161: g.region and r.info decimel issue when using grass python libs
-------------------------+--------------------------------------------------
Reporter: isaacullah | Owner: grass-dev@…
Type: defect | Status: closed
Priority: normal | Milestone: 6.4.1
Component: Python | Version: 6.4.0
Resolution: invalid | Keywords:
Platform: All | Cpu: All
-------------------------+--------------------------------------------------
Changes (by glynn):
* status: new => closed
* resolution: => invalid
Comment:
Replying to [ticket:1161 isaacullah]:
> When running grass.region() and grass.raster_info(), values come out in
double precision, which is NOT what you get if you run g.region or r.info,
where they come out in single precision. This can cause region
misalignments and problems with boolean comparisons in scripts.
These functions simply parse the (decimal) output from g.region and
r.info. Python has printf-like formatting operations if you wish to use
them.
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1161#comment:2>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list