[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [jmadata-users33] software to read GPV (and to convert intoNetCDF)
ËÙÇ·ÆâÍÍ
(Bjmadata-users ¤Î³§ÍÍ
(B
(BËɺҲʸ¦¤ÎÎëÌڤǤ¹¡£
(B
(B> > ¤Þ¤º¡¢±ôľÊý¸þ¤Î´Ø¿ô¤¬ p ¤Ë¤Ê¤Ã¤Æ¤¤¤ë¤Î¤ò level ¤ËÊѤ¨¤Æ¤ß¤Þ¤·¤¿¡£
(B> COARDS ¤Ç¤Ï°µÎϤκÂɸ̾¤Ï level ¤Ç¤Ê¤¯¤Æ¤â¤¤¤¤¤Î¤Ç¤Ï¤Ê¤¤¤Ç¤·¤ç¤¦¤«¡£
(B
(B¤½¤¦¤Ê¤ó¤Ç¤¹¤Í¡£¼ê¸µ¤Ë¤¢¤Ã¤¿ netcdf ¤Î¥Ç¡¼¥¿¤¬ NCEP ¤Î¤ä¤Ä¤À¤Ã¤¿¤â¤Î¤Ç¡¢
(Bñ½ã¤Ë¤½¤ì¤ò¿¿»÷¤·¤Æ¤ß¤Þ¤·¤¿¡£
(B
(B> »þ´Ö¤Ï¤Á¤ã¤ó¤È½ñ¤½Ð¤µ¤ì¤ë¤±¤É¡¢¤½¤ÎÆâÍƤ¬¡Ö1ǯ1·î1Æü00Z ¤«¤é3»þ
(B> ´Ö¤ª¤¡×¤Ê¤Î¤Ç¤¹¤Í¡Ê1ǯ1·î1Æü¤«¤é¤Ç¤Ê¤¯³Æǯ¤Î1·î1Æü¤«¤é¡©¡Ë¡£¤½
(B> ¤Î¾ì¹ç¤Îñ°Ì¤Ï¡¢"days since 2002-01-01 00:00+00" ¤Ê¤É¤È¤·¤Æ
(B> since °Ê²¼¤Ç¥ª¥Õ¥»¥Ã¥È¤òɽ¤¹¤³¤È¤Ë¤Ê¤ê¤Þ¤¹
(B> (http://www.unidata.ucar.edu/packages/udunits/)¡£Ã±°Ì¤Ï¤â¤·¤«¤·
(B> ¤Æ hours ¤Ç¤·¤ç¤¦¤«¡£1ǯ¤Î»Ï¤á¤«¤é¤È¤Ê¤ë¤È¡¢days ¤ËÊѤ¨¤¿Êý¤¬Ê¬
(B> ¤«¤ê¤ä¤¹¤¤¤Ç¤¹¤Í¡£
(B
(B¼Â¤Ï¡¢Åê¹Æ¤·¤¿Êѹ¹¤À¤È¡¢GrADS ¤Ç¤Ï»þ´Ö¼´Êý¸þ¤Ë¤Ï¤Á¤ã¤ó¤È
(Bɽ¼¨¤Ç¤¤Æ¤¤¤Þ¤»¤ó¤Ç¤·¤¿¡£Ì¤³Îǧ¤Î¤Þ¤ÞÅê¹Æ¤·¤Æ¤·¤Þ¤¤¤Þ¤·¤¿¡£
(BËÙÇ·Æ⤵¤ó¤Î¤ª¤Ã¤·¤ã¤ëÄ̤ê¤Ê¤Î¤Ç¤¹¤¬¡¢¤½¤Î¸å¡¢gpv2nc.rb ¤Î»þ´Ö¤ÎÉôʬ¤Ï
(B--------------------------------------------------------------¤³¤³¤«¤é
(B output.def_var('time', "sfloat", [dimt])
(B output.var('time').put_att('units', 'hours since 2002-08-30 18:00:0.0')
(B output.var('time').put_att('long_name', 'Time')
(B output.var('time').put_att('actual_range' , '0, 18')
(B--------------------------------------------------------------¤³¤³¤Þ¤Ç
(B¤È¤¤¤¦¤è¤¦¤Ë¤·¤Þ¤·¤¿¡£¤³¤ì¤ÇºîÀ®¤µ¤ì¤¿ netcdf ¥Õ¥¡¥¤¥ë¤ò ncdump ¤Ç
(B¸«¤ë¤È¡¢»þ´Ö¤Ë´Ø¤¹¤ëÄêµÁ¤ÎÉôʬ¤Ï
(B--------------------------------------------------------------¤³¤³¤«¤é
(B float time(time) ;
(B time:units = "hours since 2002-08-31 18:00:0.0" ;
(B time:long_name = "Time" ;
(B time:actual_range = "0, 18" ;
(B--------------------------------------------------------------¤³¤³¤Þ¤Ç
(B¤È¤¤¤¦¤è¤¦¤Ë¤Ê¤ê¡¢¥Ç¡¼¥¿¤ÎÉôʬ¤â
(B--------------------------------------------------------------¤³¤³¤«¤é
(B time = 0, 3, 6, 9, 12, 15, 18 ;
(B--------------------------------------------------------------¤³¤³¤Þ¤Ç
(B¤Ç¤·¤¿¤Î¤Ç¡Ê¤³¤ì¤Ï¤â¤Á¤í¤óºÇ½é¤«¤é¤Á¤ã¤ó¤È½Ð¤Æ¤¤¤¿¤Î¤Ç¤¹¤¬¡Ë¡¢
(B¤¦¤Þ¤¯ GrADS ¤Ç¸«¤¨¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤·¤¿¡£
(B
(B¤â¤È¤â¤È¤Î¥×¥í¥°¥é¥à¤Î¾ì¹ç¡¢gpv2nc.rb ¤Ï /usr/bin/gpv2nv ¤È¤·¤Æ
(B¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤Þ¤¹¤¬¡¢º£¤Î¤È¤³¤í¡¢gpv2nc.rb ¤ò¼«Ê¬¤Î¥Ç¥£¥ì¥¯¥È¥ê¤Ë
(B¥³¥Ô¡¼¤·¤Æ¡¢¥Õ¥¡¥¤¥ëËè¤Ë»þ´Ö¤ÎÉôʬ¤ò½ñ¤´¹¤¨¡¢
(B% ruby ./gpv2nc.rb -o 2002AUG31.MSM18PLM018_2.nc MSM18PLM018_2
(B¤È¤¤¤¦¤è¤¦¤Ë»È¤Ã¤Æ¤¤¤Þ¤¹¡£
(B
(B> > ¡ô ¤â¤Á¤í¤ó¡¢Ä¾ÀܲþÎɤ·¤Æ¤¯¤ì¤ì¤Ð¤¢¤ê¤¬¤¿¤¤¤Ç¤¹¤¬¡Ä¡Ä
(B> ¤½¤Î¤Ä¤â¤ê¤Ç¤¹¤¬¡¢¾¯¤·»þ´Ö¤¬¤«¤«¤ê¤Þ¤¹¤Î¤Ç¡¢¤â¤·¤³¤ì¤Þ¤Ç¤Î¤´Êѹ¹
(B> ¤ÇÉÔÅԹ礬¤Ê¤±¤ì¤Ð¤·¤Ð¤é¤¯¤½¤ì¤ò¤ª»È¤¤²¼¤µ¤¤¡£
(B
(B¤ª¼ê¿ô¤ª¤«¤±¤·¤Þ¤¹¡£¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£
(B¤¢¤Þ¤êµÞ¤¤¤Ç¤Ï¤ª¤ê¤Þ¤»¤ó¡£
(B
(B--------------------------------------------------
(B ÎëÌÚ ¿¿°ì ¡¿ ËɺҲʳص»½Ñ¸¦µæ½ê Áí¹çËɺҸ¦µæÉôÌç
(B e-mail : ssuzuki@xxxxxx
(B--------------------------------------------------