{"action":"created","issue":{"url":"https://api.github.com/repos/edzer/gstat/issues/10","repository_url":"https://api.github.com/repos/edzer/gstat","labels_url":"https://api.github.com/repos/edzer/gstat/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/edzer/gstat/issues/10/comments","events_url":"https://api.github.com/repos/edzer/gstat/issues/10/events","html_url":"https://github.com/edzer/gstat/issues/10","id":170184638,"number":10,"title":"Error in R using a specific situation of the idw function.","user":{"login":"RMRubert","id":11463633,"avatar_url":"https://avatars.githubusercontent.com/u/11463633?v=3","gravatar_id":"","url":"https://api.github.com/users/RMRubert","html_url":"https://github.com/RMRubert","followers_url":"https://api.github.com/users/RMRubert/followers","following_url":"https://api.github.com/users/RMRubert/following{/other_user}","gists_url":"https://api.github.com/users/RMRubert/gists{/gist_id}","starred_url":"https://api.github.com/users/RMRubert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RMRubert/subscriptions","organizations_url":"https://api.github.com/users/RMRubert/orgs","repos_url":"https://api.github.com/users/RMRubert/repos","events_url":"https://api.github.com/users/RMRubert/events{/privacy}","received_events_url":"https://api.github.com/users/RMRubert/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-09T14:44:15Z","updated_at":"2016-08-09T14:45:49Z","closed_at":null,"body":"Hello, \r\nI have a problem with the idw function, I have a time series with event of temperature and I am using idw among the stations to predict the values. The exact time step I have the problem is when there is only one station with a value (the other 19 are NA) and the maxdist is not Inf, even if maxdist is set as one million and the distances among the stations are around 100000 units.\r\n\r\nMy Spatial Points data frame called spdf is as following:\r\n`\"X\",\"Y\",\"var\"\r\n593085,109012,NA\r\n625308,103113,NA\r\n589917,92190,NA\r\n578885,128236,NA\r\n615477,121791,NA\r\n568508,108247,NA\r\n670310,152703,NA\r\n649338,140251,NA\r\n631315,87930,NA\r\n637650,119498,NA\r\n622358,143310,NA\r\n561955,123102,NA\r\n662336,134134,NA\r\n601386,121464,NA\r\n640927,131404,10\r\n574407,83234,NA\r\n644860,153577,NA\r\n612965,133697,NA\r\n648683,114582,NA\r\n609142,99072,NA\r\n`\r\nthen I obtain the spdf_noNA as: \r\nspdf_noNA <- spdf[as.vector(!is.na(spdf@data)),]\r\n\r\nWhich is a spatial data frame with only one point, (640927,131404,10).\r\n\r\nThen if I call the function idw as:\r\nidw(var~1,spdf_noNA,spdf,idp=2,maxdist=Inf, nmin=0,nmax=Inf)\r\nI have no problem so far, and it predicts me everyone as 10.\r\n\r\nHowever if I call the function idw with any maxdist (I have tried 50000, 100000 and 250000), R is completely frozen:\r\n\r\nidw(var~1, spdf_noNA, spdf, idp =2, maxdist = 100000, nmin =0, nmax = Inf)\r\n\r\nHow can I solve it?\r\n\r\nVersion:\r\n> R version 3.3.1 (2016-06-21) -- \"Bug in Your Hair\"\r\n> Copyright (C) 2016 The R Foundation for Statistical Computing\r\n> Platform: i386-w64-mingw32/i386 (32-bit)"},"comment":{"url":"https://api.github.com/repos/edzer/gstat/issues/comments/238576325","html_url":"https://github.com/edzer/gstat/issues/10#issuecomment-238576325","issue_url":"https://api.github.com/repos/edzer/gstat/issues/10","id":238576325,"user":{"login":"RMRubert","id":11463633,"avatar_url":"https://avatars.githubusercontent.com/u/11463633?v=3","gravatar_id":"","url":"https://api.github.com/users/RMRubert","html_url":"https://github.com/RMRubert","followers_url":"https://api.github.com/users/RMRubert/followers","following_url":"https://api.github.com/users/RMRubert/following{/other_user}","gists_url":"https://api.github.com/users/RMRubert/gists{/gist_id}","starred_url":"https://api.github.com/users/RMRubert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RMRubert/subscriptions","organizations_url":"https://api.github.com/users/RMRubert/orgs","repos_url":"https://api.github.com/users/RMRubert/repos","events_url":"https://api.github.com/users/RMRubert/events{/privacy}","received_events_url":"https://api.github.com/users/RMRubert/received_events","type":"User","site_admin":false},"created_at":"2016-08-09T14:45:49Z","updated_at":"2016-08-09T14:45:49Z","body":"[ex.txt](https://github.com/edzer/gstat/files/409186/ex.txt)\r\n\r\nApparently my spatial point data is not shown properly here I upload the data in a matrix form. It has to be converted into spdf.\r\n"}}
{"actor":{"display_login":"RMRubert"}}