Command Search Method
- Command download method overview
-
File downloads can be performed from the user's terminal.
It is intended to be used after selecting the file you wish to download through a Command search or a Browser search.
The download must be sent with the user's information and the parameters must be stored in a cookie. - Command download reference
-
URL: https://product.gosat-gw.nies.go.jp/product_search/api/cui-download/
Parameters
Parameter Item name data type description value filename request filename string Specify the name of the file to download - Python sample code
-
Sample code to perform a Command download in Python.
The requests module must be installed.import requests cui_download_url = "https://product.gosat-gw.nies.go.jp/product_search/api/cui-download/" cookies = { "mail": "project_user@prototype.demo", "password": "project_user" } filelist = [ "TANSO3_202201021530001JO1F35000200_1BP00_000001.h5", "TANSO3_202201090930007JO1F35000800_1BP00_000001.h5", "TANSO3_202201031830002JO1F35000300_1BP00_000001.h5" ] for filename in filelist: payload = {"filename": filename} urlData = requests.get(cui_download_url, stream=True, params=payload, cookies=cookies) loopcounter = 0 if urlData.status_code == requests.codes.ok: with open(filename, 'wb') as f: for chunk in urlData.iter_content(chunk_size=4096): if loopcounter % 1000 == 0: print('--- loop count: %s ---' % (loopcounter)) if chunk: f.write(chunk) f.flush() loopcounter += 1 else: urlData.raise_for_status()

File searches can be performed from the user's terminal.
The user's information must be sent along with the search, and the parameters should be stored in a cookie.
URL: https://product.gosat-gw.nies.go.jp/product_search/api/cui-search/
Parameters
3: L2
2: Focus Mode
GWT3F_L1B
GWT3W_L2_NO2
GWT3F_L2_NO2
GWT3F_L2_NO2_QD
GWT3W_L2_GHG
GWT3F_L2_GHG
GWT3F_L2_GHG_QD
2: json
3: csv
2: current
3: previous
2: point
3: rectangle
Sample code to perform a download function in Python.
The requests module must be installed.
import requests cui_search_url = "https://product.gosat-gw.nies.go.jp/product_search/api/cui-search/" cookies = { "mail": "project_user@prototype.demo", "password": "project_user" } payload = { "level": 2, "mode": 1, "product": "GWT3F_L1B", "format":3, "version":1, "area":1, "start": "", "end": "" } urlData = requests.get(cui_search_url, params=payload, cookies=cookies) if urlData.status_code == requests.codes.ok: print(urlData) print(type(urlData)) print(urlData.headers["Content-Type"]) print(urlData.text) else: urlData.raise_for_status()