#!/usr/bin/env ruby1.8 # #= dcmodel thumbnail generate ruby script # # Editor :: sugiyama # Version:: 2006/01/06 17:45:38 # #== Overview # #This file is generate by following ruby script automatically. # # /GFD_Dennou_Club/ftp/arch/dcmodel/bin/dcmodel-thum.rb # version "$Revision: 1.24 $ : $Date: 2005/12/09 07:45:36 $" # #Please edit this file according to your purpose. # #== Usage # #Please check following sample page and reference manual. # # http://www.gfd-dennou.org/arch/dcmodel/doc/dcmodel-tools/dcmodel-thum-sample # http://www.gfd-dennou.org/arch/dcmodel/doc/dcmodel-tools/dcmodel-thum-rdoc # ################################################## require "/GFD_Dennou_Club/ftp/arch/dcmodel/bin/dcmodel-thum.rb" ###################################################### # DCModelThumbnail のインスタンスを作成 (必須) thumb = DCModelThumbnail.new # サムネイル実行コマンド (必須)。最後に実行すること END{ thumb.create } # コピーライト #thumb.copyright = "GFD Dennou Club" # 作成されるサムネイルのファイル名 (拡張子除く) thumb.index = "../uranus" # 作成されるサムネイルの拡張子名 #thumb.index_ext = ".htm" # 「情報ファイル (infofile)」のファイル名 thumb.infofile = "#{File.basename(thumb.index)}.txt" # 画像ファイルとして認識させたい拡張子の追加。 # デフォルトでは gif, png, jpg, jpeg, GIF, PNG, JPG, JPEG が認識される。 #thumb.ext_list.push("bmp") # headlimit に当てはまらないものは画像としては無視され、 # 当てはまるものは「情報ファイル」において、接頭部分 headlimit が # 省略可能になる。 #thumb.headlimit = "headlimit_" # 絵のあるディレクトリの名前。必ず存在していなければならない。 thumb.figdir = "../figdir" # サムネイル画像を置くディレクトリの名前 thumb.thumbnaildir = "../thumbdir" # サムネイル画像の拡張子名 #thumb.thumbnailtail = "_thumb.png" # サムネイル画像化する元画像のページ番号 #thumb.thumbnailpage = "1" # convert コマンドおよびオプション。この後ろに画像サイズが 200x150 # のような形式で指定される。 #thumb.convert_cmd = "convert -depth 8 -geometry" # convert コマンドが実行される際、既に出力先のファイルがある場合に # 上書きするためのフラグ。これが false の場合、出力先のファイルが # 存在し、且つ元のファイルよりも新しい場合は変換を行わない。 #thumb.convert_overwrite = false # スタイルシートファイル #thumb.css = "/GFD_Dennou_Club/ftp/arch/dcmodel/htmltools/dcmodel.css" # rd2 コマンドへのパス #thumb.rd2_path = "/usr/bin/rd2" # rd2-ext-lib へのライブラリへのパス #thumb.rd2htmlextlib = "/GFD_Dennou_Club/ftp/arch/dcmodel/lib/ruby/1.8" # SIGEN ファイルを作らない場合は false にセットする #thumb.mksigen = false # HTML のロボット検索を禁止する場合には true にセットする #thumb.norobots = true # 画像ファイルサイズ (幅) #thumb.img_width = 400 # 画像ファイルサイズ (高さ) #thumb.img_height = 300 # 横にならべるファイル数 #thumb.figtable_num = 2 # スタイルシートを直接設定するためのもの # (css ファイルに書き込む情報を直接指定できる) #thumb.style = <<-STYLE # a:link { color:#269900; } # a:visited { color:#269900; } # a:hover { color:#99FF33; } #STYLE # html の作成者情報 (デフォルトはユーザアカウント名が自動取得される) #thumb.html_author = "deepconv" # html ヘッダのタイトル thumb.title = "dcmodel-thum : 実験結果サムネイル簡易作成スクリプト" # 本体に書き出すメッセージ。サムネイルの部分よりも上に出力される。 # この変数自体は Array オブジェクトで、その内部に String オブジェクトが # 格納される。 thumb.message = Array.new # "=" ではなく、"<<" で代入することに注意!! thumb.message << <<-Message =begin [((<地球流体電脳倶楽部|URL:http://www.gfd-dennou.org>))] [(()) | (())] [(())] = The equilibrium profiles of the Uranian atmospheres ==Intro The equilibrium profiles of the Uranian atmospheres are calculated to pass through the following temperature and pressure points that are determined from observations: 101 K at 2.3 times 10^{5} Pa from Lindal et al. [1987] for Uranus. All of the components considered in our calculations are listed as follows. * Gas: H2, He, H2O, NH3, H2S, CH4 * Liquid: H2O, NH3, H2S, CH4 * Solid: H2O, NH3, H2S, CH4, NH4CH H2O(l), NH3(l), and H2S(l) are assumed to form an ideal solution, while CH4(l) is isolated. Any combination of H2O(s), NH3(s), H2S(s), CH4(s), and NH4SH(s) is assumed not to be a solid solution. The ratio of ortho- to para-hydrogen is assumed to be that of the equilibrium value. The abundances of non-condensible elements such as H and He are taken at the solar abundance, and the abundances of condensible elements, such as C, N, O, and S, are varied from 1 $\times$ solar to 50 times solar abundance. The solar abundance adopted in the present study is that revised by Asplund et al. [2005], whereas that of Anders and Grevesse [1989] is used in the previous studies cited above. Each elemental abundance of He, C, N, O, and S is reduced from that of Anders and Grevesse [1989] by 13\%, 33\%, 46\%, 46\%, and 15\%, respectively. ==Output =end Message