LoginSignup
0
0

More than 5 years have passed since last update.

NCL / NetCDF > tag = sprinti("%02i", 314) / sprintf()

Last updated at Posted at 2016-11-04
動作環境
Xeon E5-2620 v4 (8コア) x 2
32GB RAM
CentOS 6.8 (64bit)
openmpi-1.8.x86_64 とその-devel
mpich.x86_64 3.1-5.el6とその-devel
gcc version 4.4.7 (とgfortran)

NetCDFファイルを描画するためのNCLについて。
NCAR Command Language (NCL)。
http://www2.mmm.ucar.edu/wrf/OnLineTutorial/Graphics/NCL/NCL_examples.htm

以下のような記述を見つけた。

tag = sprinti("%02i", 314)

整数の標準?出力にはsprinti()という関数があるようだ。

double型の場合は以下を使う。

1つの総称関数を整数とdouble両方の型に使えれば便利なのだが。

0
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
0
0