CAMS radiation service Automatic access

Last update: Jan. 2018



    FOR FREE - restricted to registered users

The email address you used for your registration is needed to be able to launch the command line.
The number of requests is limited to 40 per day.

Automatic access with WGET - Automatic access with WPS (CURL command not available) - Error messages & FAQ - Download examples

Download WGET.EXE



Warning! It is strongly recommanded to avoid the launch of parallel requests, using the "&" at the end of each wget request line. This would endanger our system.

Automatic access with WGET

  1. Download wget.exe in a directory (Windows environment - by default available in Unix)
  2. In the same directory, create a text file and copy-paste in a single line the following instruction, by discarding the yellow part by your own email address:
  wget -O CAMS-radiation_Carpentras_2017-01-01_2017-01-05.csv " ...
&Identifier=get_cams_radiation&version=1.0.0&DataInputs=latitude=44.083;longitude=5.059;altitude=-999; ...
date_begin=2017-01-01;date_end=2017-01-05;time_ref=UT;summarization=PT15M; ...
  • 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.
  1. 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 > in a Unix environment.

Top of page

  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; ...

With (inputs):

  • server: "" (main server) or "" (backup-mirror server)
  • latitude and longitude: in degrees, with at least 3 digits after comma
  • altitude: in meters. Set "elevation=-999" to let SoDa get the elevation from NASA SRTM database
  • yyyy-mm-dd: set the first and the last days of the request
  • time_step: "PT01M" (1 minute), "PT15M" (15 minutes), "PT01H" (hourly), "P01D" (daily), "P01M" (monthly). For "summarization=PT01M" only, a verbose mode is available  by adding ";verbose=true" to the DataInputs.
  • time_reference: "UT" (universal time) or "TST" (True Solar Time)
  • 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.

Outputs: Identical to the outputs of the CAMS radiation Web interface

Download examples of scripts

Top of page

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.

These services are described in the catalog
that reveals the get_cams_radiation operations.

If you are using an appropriate library, it is fairly easy to develop the application.
Otherwise, you may try to find one. There are plenty, for example google "library execute wps ogc".

The call to DescribeProcess provides a description of the inputs and outputs of each service (that you discover in the result of the call to GetCapabilities):

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"
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
If choice is offered, e.g. "summarization", the various options are provided by the call to DescribeProcess. The "username" is the email registered in

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

Download examples of scripts

Top of page