LoginSignup
0
1

More than 5 years have passed since last update.

WRF > NCL > (/contour/) の意味 > 変数contourという要素数1のArrayの指定

Last updated at Posted at 2016-07-29

WRF(Weather Research and Forecasting Model)で使うことになるNCAR Command Language (NCL)。

http://www2.mmm.ucar.edu/wrf/OnLineTutorial/Graphics/NCL/Examples/BASIC/basic_plot_setup.htm
の4つ目のサンプルではplotとmapを重ねて表示している。

そのNCLファイルの中で以下の記載がある。

plot = wrf_map_overlays(a,wks,(/contour/),pltres,mpres)  ; Plot the data over a map background

(/contour/)という記載が独特で、この情報は今のところ見つかっていない。

wrf_map_overlaysにも使用例は記載されているが、意味については記載なし。

以下の記載を見ると(/vector/)という使い方もあるのだろうか、と思い(/vector/)と指定してもエラーとなった。

plots
Plots to overlay over map background, possibly created by calls to wrf_contour and/or wrf_vector.

こういう事項は検索が難しいので、どこかのページで偶然見つけるしかなさそう。

Array表記?

The NCL syntax (/.../) is used to manually create an array by specifying the array's values:
aInt = (/1,2,3/)
aStr= (/"a","b","c"/)

要素数1のArrayなのだろうか?

該当のコードで

  contour = wrf_contour(a,wks,ter,res)

  pltres = True                              ; Set plot options
  mpres = True                               ; Set map options
  plot = wrf_map_overlays(a,wks,(/contour/),pltres,mpres)  ; Plot the data over a map background

という記載と

plots
Plots to overlay over map background, possibly created by calls to wrf_contour and/or wrf_vector.

という記載から理解したのは、contourというのは変数名で、plotsはwrf_map_overlaysplots [*] : graphic,という記載があり、この[*]はArrayを指定するようだ。

plots[*]に要素数1のArray `(/ contour /)'を指定している、ということのようだ。

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