NOAA の Climate Data Online REST Web サービス ( http://www.ncdc.noaa.gov/cdo-web/webservices/v2#data )を使用して Python プログラムを作成しようとしています。しかし、リクエスト応答でエラーが発生しています。コマンドラインからcurlでリクエストをしようとすると、次のように入力しました:
curl -H "token:<MYTOKEN>" http://www.ncdc.noaa.gov/cdo-web/api/v2/data?datasetid=GHCND&locationid=ZIP:22405&startdate=1999-10-05&enddate=1999-10-25
次の応答が返されます。
[1] 24322
[2] 24323
[3] 24324
phil@philUbu:~$ <?xml version="1.0" encoding="UTF-8" standalone="yes"?><response><statusCode>400</statusCode><userMessage>There was an error with the request.</userMessage><developerMessage>Required parameter 'startdate' is missing.</developerMessage></response>
[1] Done curl -H "token:..." http://www.ncdc.noaa.gov/cdo-web/api/v2/data?datasetid=GHCND
[2]- Done locationid=ZIP:22405
[3]+ Done startdate=1999-10-05
何らかの理由で開始日が欠落していると思われますが、それを含めており、ドキュメントに従って適切な形式になっています。問題が何であるかについて何か考えがある人はいますか?