Opened 13 years ago
Last modified 13 years ago
#1506 new enhancement
r.to.rast3: support for float datatype
Reported by: | hamish | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | 6.5.0 |
Component: | Raster3D | Version: | svn-trunk |
Keywords: | r.to.rast3 | Cc: | |
CPU: | All | Platform: | All |
Description
Hi,
3D rasters can either be 'float's or 'double's. But r.to.rast3 always creates doubles. For a 3D raster with many many cells this can be a rather expensive problem.
thanks, Hamish
ps- why no raster 3d support for integers? (e.g. category == geologic rock type)
pps- why not FCELL,DCELL to match 2D rasters? or are they anachronisms from an era when IEEE FPs were still in strong competition with IBM's FP, etc?
Note:
See TracTickets
for help on using tickets.
ps- the post-processing work-around:
unfortunately the result is many many times larger. (4.6mb double -> 86mb float grid3/cell file in my test)
but there is no
r3.compress
orr3.support
utility to adjust that. (is precision=23 meaningful for doubles? isn't anything >16 sig. digits going to be noise?)Only
r3.in.ascii
andr3.in.v5d
have controls for these:?, Hamish