This tutorial will show how to download SHARP data from France to use it in the algorithms.
Prepare
To load SHARP images from France you have to be connected to France over the SSH tunnel and added the port mapping (see ssh_port_forwarding_template.sh). Then you are able to go to the HMI Service UI (http://localhost:8001/ui/) to create your query. The only route you will need directly is the /HMI/{series}.
Follow the instructions on Access to infrastructure on cluster to make sure you have access to the host "cluster-r730-1".
To download sharp_720s images over a period of time you have to set the series parameter and the start and end date. After trying it out you should see the request url which you can use in your python code:
Code Block | ||
---|---|---|
| ||
http://localhostcluster-r730-1:8001/HMI/sharp_720s?start=2015-12-11T00%3A00%3A00Z&end=2015-12-12T00%3A00%3A00Z |
...
Code Block | ||
---|---|---|
| ||
[ { "url": "http://localhostcluster-r730-1:8001/HMI/sharp_720s/sharp_720s_20151211_182208", "date_obs": "2015-12-11T18:22:08.799999Z" }, { "url": "http://localhostcluster-r730-1:8001/HMI/sharp_720s/sharp_720s_20151211_183408", "date_obs": "2015-12-11T18:34:08.799999Z" }, { "url": "http://localhostcluster-r730-1:8001/HMI/sharp_720s/sharp_720s_20151211_184608", "date_obs": "2015-12-11T18:46:08.799999Z" }, { "url": "http://localhostcluster-r730-1:8001/HMI/sharp_720s/sharp_720s_20151211_185808", "date_obs": "2015-12-11T18:58:08.799999Z" }, { "url": "http://localhostcluster-r730-1:8001/HMI/sharp_720s/sharp_720s_20151211_191008", "date_obs": "2015-12-11T19:10:08.799999Z" } ] |
...
Code Block | ||
---|---|---|
| ||
# define the query parameter start_date = '2015-12-11T00:00:00Z' end_date = '2015-12-12T00:00:00Z' # retrieving list of SHARP images print('loading SHARP list...') sharp_list = requests.get("http://localhostcluster-r730-1:8001/HMI/sharp_720s?start=%s&end=%s" % (start_date, end_date)).json() |
...