[R-sig-Geo] write.tgrass (spacetime) does not create init.txt

Edzer Pebesma edzer.pebesma at uni-muenster.de
Mon Jul 7 18:46:58 CEST 2014


Thanks for the clear report, Veronica.

Soeren (Cc:), do you know where we can find a description of the
requirements, or examples, of the init.txt file?

On 07/07/2014 06:31 PM, Veronica Andreo wrote:
> Hi list
> 
> I'm using R to run some processing over a spatio-temporal raster dataset
> coming from GRASS. The workflow is as follows:
> 
> 1. Export all my images from GRASS with t.rast.export
> 2. Import them as a raster stack in R with read.tgrass
> 3. do the processing... which implies converting the rasterstack into a
> matrix, transposing and running dineof
> 4. create the rasterstack again, add the time with setZ
> 5. export with write.tgrass (which only seems to work for RasterStack and
> not for STFDF, i tried both ways)
> 6. and import to grass again...
> 
> here is where I get the error since an init.txt file with the following
> information is needed but it's not created by write.tgrass...
> 
> stds_type=strds
> format=GTiff
> temporal_type=absolute
> semantic_type=mean
> number_of_maps=
> north=
> south=
> east=
> west=
> 
> There are of course some workarounds but it would be nice -and much more
> straightforward- that the function which is intended to provide interface
> between R and T-GRASS, already does the job itself :)
> 
> Thanks much!
> 
> Best,
> Vero
> 
> 	[[alternative HTML version deleted]]
> 
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
> 

-- 
Edzer Pebesma
Institute for Geoinformatics (ifgi), University of Münster
Heisenbergstraße 2, 48149 Münster, Germany. Phone: +49 251
83 33081 http://ifgi.uni-muenster.de GPG key ID 0xAC227795

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: OpenPGP digital signature
URL: <https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20140707/e6934df7/attachment.bin>


More information about the R-sig-Geo mailing list