Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem with TRMM on Windows and Linux #3

Closed
mdsumner opened this issue Oct 10, 2016 · 3 comments
Closed

problem with TRMM on Windows and Linux #3

mdsumner opened this issue Oct 10, 2016 · 3 comments

Comments

@mdsumner
Copy link

mdsumner commented Oct 10, 2016

Happy to explore this, for now just the details.

On Windows.

TRMM(timeExtent = timeExtent, bbox = bbox)
latMax of bbox is out of the maximum extent [-50,50], new latMax of bbox is modified as follows: latMax = 50

Beware this function was tested on a unix machine. If you are not using a unix machine your results could be wrong. Please report any problem to [email protected], thanks!
Error in .local(.Object, ...) : 
  Unable to open ...3B43.*.
No error

Error in .rasterObjectFromFile(x, objecttype = "RasterBrick", ...) : 
  Cannot create a RasterLayer object from this file.
@mdsumner
Copy link
Author

On Debian.

 bbox <- list(lonMin=-10,latMin=48,lonMax=5,latMax=62)
>
> # Define a temporal extent
> timeExtent <- seq(as.Date('2012-01-01'), as.Date('2012-03-31'), by='months')
> TRMM(timeExtent = timeExtent, bbox = bbox)
latMax of bbox is out of the maximum extent [-50,50], new latMax of bbox is modified as follows: latMax = 50
Error in function (type, msg, asError = TRUE)  :
  Failed EPSV attempt, exiting
> devtools::session_info()
Session info -------------------------------------------------------------------
 setting  value
 version  R version 3.3.1 (2016-06-21)
 system   x86_64, linux-gnu
 ui       X11
 language (EN)
 collate  en_AU.UTF-8
 tz       Australia/Hobart
 date     2016-10-11

@mdsumner mdsumner changed the title problem with TRMM on Windows problem with TRMM on Windows and Linux Oct 11, 2016
@cvitolo
Copy link
Contributor

cvitolo commented Dec 23, 2016

I think the problem was due to a platform-dependent file path.
This should be now fixed but I could only test it on my ubuntu machine using the example code below.

@mdsumner Could you please check if on your machines the problem persists? Many thanks

# Define a bounding box
areaBox <- raster::extent(-10, 5, 48, 62)
# Define a temporal extent
twindow <- seq(as.Date("2012-01-01"), as.Date("2012-03-31"), by = "months")
# Retreive mean monthly precipitations from 3B43_V7 (based on a bounding box and time extent)
TRMMfile <- TRMM(twindow = twindow, areaBox = areaBox)
library(raster)
plot(TRMMfile)

@mdsumner
Copy link
Author

mdsumner commented Jan 9, 2017

Fine on Windows now, looks good!

@cvitolo cvitolo closed this as completed Jan 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants