[R] Antw: [R-sig-Geo] RCurl: using ls instead of NLST

2013-05-29 Thread Matteo Mattiuzzi
Dear Jonathan,in the MODIS package I use the following function to list files within a http or a ftp folder. I'm not really practical in XML stuff but I got it working somehow. The LP DAAC has changed from FTP to HTTP, I'm not sure if it is good idea to use the ftp protocol anymore. I also had

[R] lazy loading like object

2013-05-28 Thread Matteo Mattiuzzi
it takes only _once_ the time to produce that object that is from now on available for any other function in the package environment. I hope I was clear, thanks in advanced, Matteo Mattiuzzi __ R-help@r-project.org mailing list https

Re: [R] lazy loading like object

2013-05-28 Thread Matteo Mattiuzzi
fast as the object itself is very small and it is not needed to often. Thanks Matteo On 28/05/2013 08:20, Matteo Mattiuzzi wrote: Dear List, I'm writing the package MODIS (currently on R-forge), I lazy load some data which is a very elegant solution. These lazy loaded objects

[R] listening folder and directories on ftp server

2012-03-07 Thread Matteo Mattiuzzi
Dear List, I'm looking for a function for listening of the content witin a ftp server. I need to list bevor I download a file becaus I don't know the exat names of a file or dirs. Up to now I'm using the getURL function from RCurl package. But it relativly often happens that I get a errorcode

[R] output of for

2009-10-29 Thread Matteo Mattiuzzi
Hello! I've got troubles on following thing: As output I need a string like: INPUT_FILENAMES = H:\\AKK_temp\\Modis\\MOD13Q1\\austria\\MOD09Q1.A2008073.h18v04.005.2008083134952.hdf|H:\\AKK_temp\\Modis\\MOD13Q1\\austria\\MOD09Q1.A2008073.h19v04.005.2008082182221.hdf The filenames (dates) are

[R] colMeans()

2009-09-28 Thread Matteo Mattiuzzi
is multiplied by this factor! (so getting this with rowSums(is.na(x)) it takes much to long) I was trying to look inside the function maybe to get not only the means but the valid n too, but I wasn't able. Thanks for help Matteo DI Matteo Mattiuzzi, Institut für Vermessung, Fernerkundung und