SplitR,multiple trajectory calculations, ftp problems
Posted: June 19th, 2014, 10:37 am
Hallo everybody,
In terms of a trajectory change analysis, I need to calculate the trajectories from the reanalysis data set over a couple of years (daily resolution). I started to use the web-based calculator, but that takes too long for me.
Therefore I applied the SplitR-package for R (see https://github.com/rich-iannone/SplitR). I thought it could program a loop to calculate the trajectories and write them into *shp files afterwards.
Unfortunately, I got trouble right at the beginning. To download a specific date the connection to the ftp server failed. R gives my the error message:
trying URL 'ftp://arlftp.arlhq.noaa.gov/archives/re ... 196106.gbl'
using Synchronous WinInet calls
Error in download.file(url = paste("ftp://arlftp.arlhq.noaa.gov/archives/reanalysis/", : cannot open URL 'ftp://arlftp.arlhq.noaa.gov/archives/re ... 196106.gbl'
In addition: Warning message:
In download.file(url = paste("ftp://arlftp.arlhq.noaa.gov/archives/reanalysis/", :
InternetOpenUrl failed: 'Die FTP-Sitzung wurde beendet.
I tested the same with the posted code in the R-help menue, but also with the code from the already mentioned page: https://github.com/rich-iannone/SplitR,- unsuccessful! I also thought the problem is related to an offline ftp-server. But I found the files here ftp://arlftp.arlhq.noaa.gov/pub/archives/reanalysis/ and here ftp://arlftp.arlhq.noaa.gov/archives/reanalysis/
Thus, my questions are:
1. Does anyone know a solution for my ftp-problem? If I download the files from the ftp-server manually, how to process them with hysplit.trajectory?
2. If their is a solution does anyone know an applicable way to program a R-Loop
3. Finally, how to write the trajectories in a *shp format
Thanks in advance,
JW
In terms of a trajectory change analysis, I need to calculate the trajectories from the reanalysis data set over a couple of years (daily resolution). I started to use the web-based calculator, but that takes too long for me.
Therefore I applied the SplitR-package for R (see https://github.com/rich-iannone/SplitR). I thought it could program a loop to calculate the trajectories and write them into *shp files afterwards.
Unfortunately, I got trouble right at the beginning. To download a specific date the connection to the ftp server failed. R gives my the error message:
trying URL 'ftp://arlftp.arlhq.noaa.gov/archives/re ... 196106.gbl'
using Synchronous WinInet calls
Error in download.file(url = paste("ftp://arlftp.arlhq.noaa.gov/archives/reanalysis/", : cannot open URL 'ftp://arlftp.arlhq.noaa.gov/archives/re ... 196106.gbl'
In addition: Warning message:
In download.file(url = paste("ftp://arlftp.arlhq.noaa.gov/archives/reanalysis/", :
InternetOpenUrl failed: 'Die FTP-Sitzung wurde beendet.
I tested the same with the posted code in the R-help menue, but also with the code from the already mentioned page: https://github.com/rich-iannone/SplitR,- unsuccessful! I also thought the problem is related to an offline ftp-server. But I found the files here ftp://arlftp.arlhq.noaa.gov/pub/archives/reanalysis/ and here ftp://arlftp.arlhq.noaa.gov/archives/reanalysis/
Thus, my questions are:
1. Does anyone know a solution for my ftp-problem? If I download the files from the ftp-server manually, how to process them with hysplit.trajectory?
2. If their is a solution does anyone know an applicable way to program a R-Loop
3. Finally, how to write the trajectories in a *shp format
Thanks in advance,
JW