Skip to content
Prev 21314 / 29559 Next

write.tgrass (spacetime) does not create init.txt

spacetime::write.tgrass (as it is on github) now writes init.txt,
hopefully correct. I took examples from
https://www-pool.math.tu-berlin.de/~soeren/grass/ , and used file
precipitation_1950_2013_yearly_mm.tar.gz.

In this file, init.txt has quite different content from that you
describe below:

stds_type=strds
format=GTiff
temporal_type=absolute
semantic_type=mean
number_of_maps=63
north=75.5
south=25.25
east=75.5
west=-40.5

Does tgrass depend on knowing "relative_time_unit"?

I could write a function that write "years" when the number of days
between time stamps is 356 or 366, and act similarly for "months" (28,
29, 30 or 31), but this is somewhat messy of course, and things get
worse in case of daylight saving time and monthly data... Suggestions
welcome!
On 07/07/2014 06:57 PM, S?ren Gebbert wrote: