2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

GDAL使ってNetCDFをGeoTIFFに変換

Posted at

はじめに

Windowsを前提にしています。

準備

  1. Dockerを使います。事前にDockerをインストールしてください。参考:Windows 11にDocker Desktopを入れる手順(令和5年最新版)
  2. Cドライブにwrkフォルダを作成してください。Dockerコンテナとの共有フォルダにします。ここに変換したいファイルを置いておきます。

GDALの起動

PowerShell(もしくはコマンドプロンプト)を起動して以下のコマンドを入力すます。

> docker run --rm -it -v 'c:/wrk:/root/wrk' osgeo/gdal:alpine-normal-3.6.3

GDALが起動して、プロンプトが # に変わります。
共有フォルダへ移動します。/root/wrk

圧縮を DEFLATE でGeoTIFFに変換

> gdal_translate -if netCDF -of Gtiff -co COMPRESS=DEFLATE input.nc output.tiff 

可逆圧縮のDEFLATEを付けておくのがおすすめ。画像ならJPEG(不可逆)を選択するととても小さくなるよ。

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?