[R-sig-Geo] Supplying a datatype argument to rasterEngine in spatial.tools

Alex Zvoleff azvoleff at conservation.org
Fri Mar 21 19:24:09 CET 2014


On Fri, Mar 21, 2014 at 12:56 PM, Jonathan Greenberg <jgrn at illinois.edu> wrote:
> I am assuming you are talking about outputting something other than a
> floating point raster?

Yes, I have a series of fairly large 8 bit unsigned integer rasters to
process, that start to get unmanageable when stored as 64 bit floats.

> It is high on my list of to-dos.  I also want
> to make sure I support factors datatypes as well, since the Raster*
> format supports them.  I've already started on the basic tweaks I need
> to make, but it'll be a bit longer before I get to it. Stay tuned!

Excellent! And thanks again.

> --j
>
> On Fri, Mar 21, 2014 at 11:12 AM, Alex Zvoleff
> <azvoleff at conservation.org> wrote:
>> Thanks Jonathan for the updated version of spatial.tools - very useful
>> in my work. Is there way to pass a "datatype" argument (as for
>> writeRaster) to rasterEngine to specify the output datatype? I see
>> "dataType" linked under "See Also" in the help, but it is not
>> otherwise mentioned. I have tried adding it as an argument to
>> rasterEngine anyway, but it appears to be ignored. I am running
>> spatial.tools 1.3.8 on R 3.0.3.
>>
>> Thanks,
>> Alex
>>
>> --
>> Alex Zvoleff
>> Postdoctoral Associate
>> Tropical Ecology Assessment and Monitoring (TEAM) Network
>> Conservation International
>> 2011 Crystal Dr. Suite 500, Arlington, Virginia 22202, USA
>> Tel: +1-703-341-2749, Fax: +1-703-979-0953, Skype: azvoleff
>> http://www.teamnetwork.org | http://www.conservation.org
>>
>> _______________________________________________
>> R-sig-Geo mailing list
>> R-sig-Geo at r-project.org
>> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>
>
>
> --
> Jonathan A. Greenberg, PhD
> Assistant Professor
> Global Environmental Analysis and Remote Sensing (GEARS) Laboratory
> Department of Geography and Geographic Information Science
> University of Illinois at Urbana-Champaign
> 259 Computing Applications Building, MC-150
> 605 East Springfield Avenue
> Champaign, IL  61820-6371
> Phone: 217-300-1924
> http://www.geog.illinois.edu/~jgrn/
> AIM: jgrn307, MSN: jgrn307 at hotmail.com, Gchat: jgrn307, Skype: jgrn3007



-- 
Alex Zvoleff
Postdoctoral Associate
Tropical Ecology Assessment and Monitoring (TEAM) Network
Conservation International
2011 Crystal Dr. Suite 500, Arlington, Virginia 22202, USA
Tel: +1-703-341-2749, Fax: +1-703-979-0953, Skype: azvoleff
http://www.teamnetwork.org | http://www.conservation.org



More information about the R-sig-Geo mailing list