Skip to content

Instantly share code, notes, and snippets.

@naogify
Last active July 17, 2025 01:11
Show Gist options
  • Select an option

  • Save naogify/89ca1d7d303ecf0ee7722218f04944a7 to your computer and use it in GitHub Desktop.

Select an option

Save naogify/89ca1d7d303ecf0ee7722218f04944a7 to your computer and use it in GitHub Desktop.
全球数値予報モデルGPV (GSM全球域・日本域)のサンプルデータをダウンロードするスクリプト
#!/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