NB1: please note that you CANNOT directly copy and paste this line in a Windows command file as you need to replace the yellow part with your own email address used to register on the SoDa website. The reason is that we need to identify you when launching the requests for statistical constraints imposed by the European Union.

NB2: replace the "@" by a single %2540 on a Windows command terminal, an internet browser or on Unix, but use a double %%2540 in a Windows .bat file.

Rename the text file with the .bat extension and double click on the .bat file to retrieve the output.csv output file (Windows environment), or in a .sh script file that you launch using >my_script.sh in a Unix environment.

WGET, in details

Request (Unix and Windows, write the following command in a single line):wget -O output.csv "http://server/service/wps?Service=WPS&Request=Execute&Identifier=get_cams_radiation&version=1.0.0 ...&DataInputs=latitude=latitude;longitude=longitude;altitude=altitude;date_begin=yyyy-mm-dd;date_end=yyyy-mm-dd; ...time_ref=time-reference;summarization=time-step;username=email-address&RawDataOutput=irradiation"

email-address: your email address used to create your SoDa account, by replacing the "@" by "%%2540" if this command is in a Windows executable .bat file, and by "%2540" if on a Windows command terminal, an internet browser or on Unix.

Automatic access with WPS

CAMS Radiation Service follows the WPS (Web Processing Service) standard that defines how a computer can invoke a web service, without human-machine interface. This way of doing is a standard in Earth Observation and Digital Geography domains and offers many other advantages over a text-interface like the other services on SoDa web site. In particular, anyone can create a portal invoking these services by calling the WPS that we are offering. It greatly helps the dissemination.

How to do it by hand (or in an application not calling specific libraries)? The request will have the following form: curl -o output.xml -v -d @test_cams_radiation_params.xml -H "Content-Type: text/xml" http://www.soda-is.com/service/wps where "output.xml" is the output file that contains the URL of the result (here a csv file) and "test_cams_radiation_params.xml" is the input file. The input file contains the inputs (obviously...). Most of them have clear names and are exactly those which are requested on the human interface at soda-pro.com. If choice is offered, e.g. "summarization", the various options are provided by the call to DescribeProcess. The "username" is the email registered in soda-pro.com.

- If this tutorial is not appropriate or incomplete, feel free to ** and contribute to the improvement of this page. Any feedback is welcome -