space time error message
I think the problem could be related to dates in precip, in fact here I am using dekadal precip( 10 days average therefor for each month you have 01, 11 and 21 as you can see in the date in sample dataframes dprec84.rda and the stations1.rda. After creating these dataframes I am trying to use use meteo to create a STFDF (I guess other packaged could do it?) using the command below:
prec <- meteo2STFDF(dprec84,stations1, crs= CRS('+proj=longlat
+datum=WGS84')) Joining by: staid, date Joining by: staid Error in ST(sp, time, endTime) : time is not a time based class If doable with other package also will be fine for me. asarr On Sun, Aug 3, 2014 at 9:40 AM, Edzer Pebesma <edzer.pebesma at uni-muenster.de
wrote:
Please provide a small, reproducible example. Wbr, On 07/26/2014 08:29 PM, Abdoulaye SARR wrote:
Hello list,
I am creating a space time full data frame but having this error message:
Joining by: staid
Error in ST(sp, time, endTime) : time is not a time based class
the data frame 10 days average precip used looks like this:
staid time prec
1 38007200 1984-01-01 0.0
2 38008400 1984-01-01 0.8
3 38014000 1984-01-01 0.0
4 38008100 1984-01-01 0.0
5 38008700 1984-01-01 0.0
6 38009200 1984-01-01 0.0
The next date 1984-01-11 etc..
could someone help solve this urgent issue.
Best regards,
eus
[[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
_______________________________________________ R-sig-Geo mailing list R-sig-Geo at r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-geo
-------------- next part -------------- An HTML attachment was scrubbed... URL: <https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20140803/2253d685/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: dprec84.rda Type: application/octet-stream Size: 852 bytes Desc: not available URL: <https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20140803/2253d685/attachment.obj> -------------- next part -------------- A non-text attachment was scrubbed... Name: stations1.rda Type: application/octet-stream Size: 455 bytes Desc: not available URL: <https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20140803/2253d685/attachment-0001.obj>