Last active
July 17, 2025 01:11
-
-
Save naogify/89ca1d7d303ecf0ee7722218f04944a7 to your computer and use it in GitHub Desktop.
全球数値予報モデルGPV (GSM全球域・日本域)のサンプルデータをダウンロードするスクリプト
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| WORKDIR="gsm_gl" | |
| SRC_FILENAME="Z__C_RJTD_20171205000000_GSM_GPV_Rgl_FD0006_grib2.bin" | |
| DST_FILENAME="jms-sample.grib2" | |
| # 1. zipファイルをダウンロード | |
| curl -O https://www.data.jma.go.jp/developer/gpv_sample/gsm_gl.zip | |
| # 2. unzip | |
| unzip gsm_gl.zip | |
| # 3. ファイルをカレントディレクトリに移動+リネーム | |
| mv "${WORKDIR}/${SRC_FILENAME}" "./${DST_FILENAME}" | |
| # 4. 作業用フォルダとzipファイルを削除 | |
| rm -rf "${WORKDIR}" gsm_gl.zip | |
| echo "完了しました!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment