CAMS McClear automatic access

CAMS McClear automatic access


    FOR FREE - restricted to registered users

The email address you used for your registration is needed to be able to launch the command line.

Automatic access with WGET - Automatic access with WPS - FAQ

Download examples of scripts :   Unix                 Windows                Matlab

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 output.csv " ...
Service=WPS&Request=Execute&Identifier=get_mcclear&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.

  The WGET command in details

Request (Unix and Windows, write the following command in a single line):
wget -O output.csv "https://server/service/wps?Service=WPS&Request=Execute&Identifier=get_mcclear ...
&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 ...

With (inputs):

  • server: By default, use our load balancer thanks to "". It will redirect your request on the fastest server available.
  • latitude and longitude: in degrees, with at least 4 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 minutes), "PT15M" (15 minutes), "PT01H" (hourly), "P01D" (daily) and "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 generate 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 McClear Web interface

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_mcclear 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)?
You need to call the WPS using the HTTP POST protocol, e.g. with curl tool. The request will have the following form:
curl -o output.xml -v -d @test_mcclear_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_mcclear_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 above.
The "username" parameter is the email registered in
The "mimeType" parameter is the output format: select "text/csv" for CSV, "application/x-netcdf" for NetCDF, "application/json" for JSON or "application/x-hdf" for HDF5.