HC1
Helioclim-1 automatic access |
|
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
- Subscribe an annual automatic access to HelioClim-1 (Contact us). Note that the automatic access to HelioClim-3 database also includes an automatic access to the HelioClim-1 database.
- Download wget.exe in a directory (on Windows - wget is available by default on Unix)
- In the same directory, create a text file and copy-paste in a single line the following instruction to test our free access to Carpentras, France:
|
- Rename the text file with the .bat extension and double click on it to retrieve the output file (Windows environment). Rename the text file with a .sh extension and run it using >my_script.sh in a Unix environment.
WGET, in details
Request:wget -O output.csv --header="soda-user: login" --header=soda-passwd: password" ...
"https://server/pub/hc1_request.php?geopoint=latitude,longitude& ...
firstday=yyyy-mm-dd&lastday=yyyy-mm-dd
&duration=time_step& ...
slope=tilt_of_panels&azimuth=az_of_panels&albedo=ground_albedo"
Inputs:
login/password
authentication: login and password provided by the SoDa team to access HelioClim-3 within the framework of your subscription. Note that a free permanent automatic access is set up for the site of Carpentras, France, where a Baseline Surface Radiation Network (BSRN) station is available with the login/password guest/guestserver
: By default, use our load balancer thanks to "api.soda-solardata.com". It will redirect your request on the fastest server available.latitude
andlongitude
: in degrees, with at least 3 digits after commaaltitude
: in meters. Set "elevation=-999" to let SoDa get the elevation from Nasa SRTM databaseyyyy-mm-dd
: set the first and the last days of the requesttime_step
: "d" (daily), "w" (weekly) or "m" (monthly)tilt_of_panels
: must be "0" (horizontal) for daily requests. Possible values are "0" (horizontal) or "-999" (2D sun tracking) for monthly requests.az_of_panels
: possible values are "0" (horizontal) or "-999" (2D sun tracking)ground_albedo
: from "0.0" to "1.0". A usual inland value is "0.2"
Outputs: Close to the output columns received via the Web interface. Differences are:
- the separator is the space.
Automatic access using CURL
You can also automatically retrieve HC1 dataset by using the CURL command.
Please note that curl output CSV file does not contain header.
Request (Windows): curl -f -s -S -F stations=@stations.txt -o
output.csv
--header "soda-user: guest" --header "soda-passwd: guest" ...
https://api.soda-solardata.com/pub/hc1_request.php
With the following stations.txt file format:# Columns:
# id: station name
# latitude and longitude: in degrees, with at least 3 digits after comma
# elevation: ignored
# time reference: ignored
# duration: "d" (daily), "w" (weekly) or "m" (monthly)
# firstday and lastday: first and the last days of the request, expressed as yyyy-mm-dd
# slope of panel: must be 0 (horizontal) for daily requests. Possible values are 0 (horizontal) or -999 (sun tracking) for monthly requests.
# azimuth of panel: possible values are 0 (horizontal) or -999 (sun tracking)
# ground_albedo: from "0.0" to "1.0". A usual inland value is "0.2".
# horizon: ignored (optional)
# calibration: ignored (optional)
# format: ignored (optional)
#
#id lat lon elevation time duration firstday lastday slope azimuth albedo
Carpentras1 44.083 5.059 -999 UT d 1985-01-01 1985-01-31 0 0 0.2
Carpentras2 44.083 5.059 -999 UT m 1985-01-01 1985-01-31 -999 -999 0.2
...