Dynamic process running using R-script

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Dynamic process running using R-script

Girija Kalyani
Dear Group,

I'am working with 52North WPS4R, I have a small clarification here, Can i write an R - script where an input file can be dynamically taken from the local system instead of giving the file location statically? How do we chain the process using R-script? Like I want to run a process, and the input file should be taken from my local system, and then run the process on that file using the script which is being deployed  and execute the final output. Please let me know if there is any scope for this. I have searched but dont get any information on net. 
--
GK

_______________________________________________
Geostatistics mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/geostatistics
http://geostatistics.forum.52north.org
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Dynamic process running using R-script

Daniel Nüst - 52N
Administrator
Am 05/09/2014 um 16:59 schrieb Girija Kalyani:
> I'am working with 52North WPS4R, I have a small clarification here, Can
> i write an R - script where an input file can be dynamically taken from
> the local system instead of giving the file location statically? How do
> we chain the process using R-script? Like I want to run a process, and
> the input file should be taken from my local system, and then run the
> process on that file using the script which is being deployed  and
> execute the final output. Please let me know if there is any scope for
> this. I have searched but dont get any information on net.

Regarding the dynamic file location: You can pass the location of the
file as an input to the process and load the file from that location
within the R script. Maybe you can explain your use case further?

Regarding chaining: You can chain WPS processes with a client. The first
process could output the (local) location of the output, which can be
used as input for the next process. You can also simply request outputs
as references and let the WPS handle the storage for your. It might look
like transfer overhead, but loading data from localhost should not be
much slower than copying a file from one location to another on the
harddisk.

How large are the output/input files you're talking about?

Hope this helps,
Daniel

--
Daniel Nüst
52°North Initiative for Geospatial Open Source Software GmbH
Martin-Luther-King-Weg 24
48155 Münster, Germany
E-Mail: [hidden email]
Fon: +49-(0)-251–396371-36
Fax: +49-(0)-251–396371-11

http://52north.org/
Twitter: @FiveTwoN

General Managers: Dr. Albert Remke, Dr. Andreas Wytzisk
Local Court Muenster HRB 10849
_______________________________________________
Geostatistics mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/geostatistics
http://geostatistics.forum.52north.org
Loading...