爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 3014|回复: 6

java版的好慢啊

[复制链接]

新浪微博达人勋

发表于 2013-12-2 23:42:05 | 显示全部楼层 |阅读模式

登录后查看更多精彩内容~

您需要 登录 才可以下载或查看,没有帐号?立即注册 新浪微博登陆

x
我用java版的打开WRF输出的GRADS格式文件,大概有1G多的样子,绘制气压等值线,结果等了1个小时图片还没有绘制出来。
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2013-12-3 10:51:18 | 显示全部楼层
绘图速度跟文件的大小没有太大关系,主要看格点数据的格点数及分布情况,气压等值线不太可能需要那么长时间,估计是数据问题或者软件bug。Java版的MeteoInfo启动可能会慢一点,绘图方面不会比C#版的慢。
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2013-12-3 18:20:30 | 显示全部楼层
感谢王老师回复,这个数据我用grads读取是没有问题的。还有用C#1.1.0.0版打开这个数据时,浮动窗口里面的“要素”、“时次”等等项目里面都没有显示内容。
我的.ctl文件内容如下:
dset ^wrf2grads_d01_2012121900.dat
options  byteswapped
undef 1.e30
title  OUTPUT FROM WRF V3.4.1 MODEL
xdef   99 levels
    103.8930   
    104.0176   
    104.1422   
    104.2669   
    104.3915   
    104.5161   
    104.6408   
    104.7654   
    104.8900   
    105.0147   
    105.1393   
    105.2639   
    105.3886   
    105.5132   
    105.6378   
    105.7625   
    105.8871   
    106.0117   
    106.1364   
    106.2610   
    106.3856   
    106.5103   
    106.6349   
    106.7595   
    106.8842   
    107.0088   
    107.1334   
    107.2581   
    107.3827   
    107.5073   
    107.6320   
    107.7566   
    107.8812   
    108.0059   
    108.1305   
    108.2551   
    108.3798   
    108.5044   
    108.6290   
    108.7537   
    108.8783   
    109.0029   
    109.1276   
    109.2522   
    109.3768   
    109.5015   
    109.6261   
    109.7507   
    109.8754   
    110.0000   
    110.1246   
    110.2493   
    110.3739   
    110.4985   
    110.6232   
    110.7478   
    110.8724   
    110.9971   
    111.1217   
    111.2463   
    111.3710   
    111.4956   
    111.6202   
    111.7449   
    111.8695   
    111.9941   
    112.1188   
    112.2434   
    112.3680   
    112.4927   
    112.6173   
    112.7419   
    112.8666   
    112.9912   
    113.1158   
    113.2405   
    113.3651   
    113.4897   
    113.6144   
    113.7390   
    113.8636   
    113.9883   
    114.1129   
    114.2375   
    114.3622   
    114.4868   
    114.6114   
    114.7361   
    114.8607   
    114.9853   
    115.1100   
    115.2346   
    115.3592   
    115.4839   
    115.6085   
    115.7331   
    115.8578   
    115.9824   
    116.1070   
ydef   99 levels
    13.64973   
    13.77081   
    13.89182   
    14.01278   
    14.13367   
    14.25450   
    14.37527   
    14.49596   
    14.61659   
    14.73716   
    14.85766   
    14.97810   
    15.09846   
    15.21875   
    15.33898   
    15.45914   
    15.57923   
    15.69925   
    15.81920   
    15.93908   
    16.05888   
    16.17862   
    16.29828   
    16.41787   
    16.53738   
    16.65682   
    16.77618   
    16.89548   
    17.01469   
    17.13383   
    17.25290   
    17.37188   
    17.49079   
    17.60963   
    17.72838   
    17.84705   
    17.96564   
    18.08417   
    18.20260   
    18.32095   
    18.43923   
    18.55743   
    18.67554   
    18.79357   
    18.91151   
    19.02938   
    19.14716   
    19.26485   
    19.38247   
    19.49999   
    19.61744   
    19.73479   
    19.85207   
    19.96925   
    20.08634   
    20.20335   
    20.32027   
    20.43710   
    20.55385   
    20.67050   
    20.78707   
    20.90354   
    21.01992   
    21.13622   
    21.25243   
    21.36854   
    21.48456   
    21.60049   
    21.71632   
    21.83206   
    21.94770   
    22.06326   
    22.17872   
    22.29408   
    22.40936   
    22.52453   
    22.63961   
    22.75459   
    22.86947   
    22.98425   
    23.09895   
    23.21354   
    23.32803   
    23.44243   
    23.55672   
    23.67093   
    23.78503   
    23.89902   
    24.01292   
    24.12671   
    24.24040   
    24.35400   
    24.46749   
    24.58088   
    24.69417   
    24.80736   
    24.92043   
    25.03341   
    25.14629   
zdef   18 levels  
1000.00000
990.00000
980.00000
970.00000
960.00000
950.00000
925.00000
900.00000
875.00000
850.00000
800.00000
700.00000
600.00000
500.00000
400.00000
300.00000
200.00000
100.00000
tdef   37 linear 00Z19DEC2012      60MN      
VARS   95
LU_INDEX       1  0  LAND USE CATEGORY (-)
VAR_SSO        1  0  variance of subgrid-scale orography (m2)
LAP_HGT        1  0  Laplacian of orography (m)
U             18  0  x-wind component (m s-1)
V             18  0  y-wind component (m s-1)
W             18  0  z-wind component (m s-1)
PH            18  0  perturbation geopotential (m2 s-2)
PHB           18  0  base-state geopotential (m2 s-2)
T             18  0  perturbation potential temperature (theta-t0) (K)
MU             1  0  perturbation dry air mass in column (Pa)
MUB            1  0  base state dry air mass in column (Pa)
NEST_POS       1  0  - (-)
P             18  0  perturbation pressure (Pa)
PB            18  0  BASE STATE PRESSURE (Pa)
P_HYD         18  0  hydrostatic pressure (Pa)
Q2             1  0  QV at 2 M (kg kg-1)
T2             1  0  TEMP at 2 M (K)
TH2            1  0  POT TEMP at 2 M (K)
PSFC           1  0  SFC PRESSURE (Pa)
U10            1  0  U at 10 M (m s-1)
V10            1  0  V at 10 M (m s-1)
QVAPOR        18  0  Water vapor mixing ratio (kg kg-1)
QCLOUD        18  0  Cloud water mixing ratio (kg kg-1)
QRAIN         18  0  Rain water mixing ratio (kg kg-1)
SHDMAX         1  0  ANNUAL MAX VEG FRACTION (-)
SHDMIN         1  0  ANNUAL MIN VEG FRACTION (-)
SNOALB         1  0  ANNUAL MAX SNOW ALBEDO IN FRACTION (-)
TSLB           4  0  SOIL TEMPERATURE (K)
SMOIS          4  0  SOIL MOISTURE (m3 m-3)
SH2O           4  0  SOIL LIQUID WATER (m3 m-3)
SMCREL         4  0  RELATIVE SOIL MOISTURE (-)
SEAICE         1  0  SEA ICE FLAG (-)
XICEM          1  0  SEA ICE FLAG (PREVIOUS STEP) (-)
SFROFF         1  0  SURFACE RUNOFF (mm)
UDROFF         1  0  UNDERGROUND RUNOFF (mm)
IVGTYP         1  0  DOMINANT VEGETATION CATEGORY (-)
ISLTYP         1  0  DOMINANT SOIL CATEGORY (-)
VEGFRA         1  0  VEGETATION FRACTION (-)
GRDFLX         1  0  GROUND HEAT FLUX (W m-2)
ACGRDFLX       1  0  ACCUMULATED GROUND HEAT FLUX (J m-2)
SNOW           1  0  SNOW WATER EQUIVALENT (kg m-2)
SNOWH          1  0  PHYSICAL SNOW DEPTH (m)
CANWAT         1  0  CANOPY WATER (kg m-2)
SSTSK          1  0  SKIN SEA SURFACE TEMPERATURE (K)
LAI            1  0  Leaf area index (area/area)
MAPFAC_M       1  0  Map scale factor on mass grid (-)
MAPFAC_MX      1  0  Map scale factor on mass grid, x direction (-)
MAPFAC_MY      1  0  Map scale factor on mass grid, y direction (-)
MF_VX_INV      1  0  Inverse map scale factor on v-grid, x direction (-)
F              1  0  Coriolis sine latitude term (s-1)
E              1  0  Coriolis cosine latitude term (s-1)
SINALPHA       1  0  Local sine of map rotation (-)
COSALPHA       1  0  Local cosine of map rotation (-)
HGT            1  0  Terrain Height (m)
TSK            1  0  SURFACE SKIN TEMPERATURE (K)
RAINC          1  0  ACCUMULATED TOTAL CUMULUS PRECIPITATION (mm)
RAINSH         1  0  ACCUMULATED SHALLOW CUMULUS PRECIPITATION (mm)
RAINNC         1  0  ACCUMULATED TOTAL GRID SCALE PRECIPITATION (mm)
SNOWNC         1  0  ACCUMULATED TOTAL GRID SCALE SNOW AND ICE (mm)
GRAUPELNC      1  0  ACCUMULATED TOTAL GRID SCALE GRAUPEL (mm)
HAILNC         1  0  ACCUMULATED TOTAL GRID SCALE HAIL (mm)
REFL_10CM     18  0  Radar reflectivity (lamda = 10 cm) (dBZ)
CLDFRA        18  0  CLOUD FRACTION (-)
SWDOWN         1  0  DOWNWARD SHORT WAVE FLUX AT GROUND SURFACE (W m-2)
GLW            1  0  DOWNWARD LONG WAVE FLUX AT GROUND SURFACE (W m-2)
SWNORM         1  0  NORMAL SHORT WAVE FLUX AT GROUND SURFACE (SLOPE-DEPENDENT) (W m-2)
OLR            1  0  TOA OUTGOING LONG WAVE (W m-2)
XLAT           1  0  LATITUDE, SOUTH IS NEGATIVE (degree_north)
XLONG          1  0  LONGITUDE, WEST IS NEGATIVE (degree_east)
ALBEDO         1  0  ALBEDO (-)
CLAT           1  0  COMPUTATIONAL GRID LATITUDE, SOUTH IS NEGATIVE (degree_north)
ALBBCK         1  0  BACKGROUND ALBEDO (-)
EMISS          1  0  SURFACE EMISSIVITY (-)
NOAHRES        1  0  RESIDUAL OF THE NOAH SURFACE ENERGY BUDGET (W m{-2})
TMN            1  0  SOIL TEMPERATURE AT LOWER BOUNDARY (K)
XLAND          1  0  LAND MASK (1 FOR LAND, 2 FOR WATER) (-)
UST            1  0  U* IN SIMILARITY THEORY (m s-1)
PBLH           1  0  PBL HEIGHT (m)
HFX            1  0  UPWARD HEAT FLUX AT THE SURFACE (W m-2)
QFX            1  0  UPWARD MOISTURE FLUX AT THE SURFACE (kg m-2 s-1)
LH             1  0  LATENT HEAT FLUX AT THE SURFACE (W m-2)
ACHFX          1  0  ACCUMULATED UPWARD HEAT FLUX AT THE SURFACE (J m-2)
ACLHF          1  0  ACCUMULATED UPWARD LATENT HEAT FLUX AT THE SURFACE (J m-2)
SNOWC          1  0  FLAG INDICATING SNOW COVERAGE (1 FOR SNOW COVER) (-)
SR             1  0  fraction of frozen precipitation (-)
LANDMASK       1  0  LAND MASK (1 FOR LAND, 0 FOR WATER) (-)
SST            1  0  SEA SURFACE TEMPERATURE (K)
geopt         18  0  Geopotential (m2/s2)
height        18  0  Model height (km)
tk            18  0  Temperature (K)
td            18  0  Dewpoint Temperature (C)
td2            1  0  Dewpoint Temperature at 2m (C)
rh            18  0  Relative Humidity (%)
rh2            1  0  Relative Humidity at 2m (%)
slp            1  0  Sea Levelp Pressure (hPa)
ENDVARS
@ global String comment TITLE =  OUTPUT FROM WRF V3.4.1 MODEL
@ global String comment START_DATE = 2012-12-19_00:00:00
@ global String comment SIMULATION_START_DATE = 2012-12-19_00:00:00
@ global String comment WEST-EAST_GRID_DIMENSION =   100
@ global String comment SOUTH-NORTH_GRID_DIMENSION =   100
@ global String comment BOTTOM-TOP_GRID_DIMENSION =    51
@ global String comment DX =     12000.00
@ global String comment DY =     12000.00
@ global String comment GRIDTYPE = C
@ global String comment DIFF_OPT =     1
@ global String comment KM_OPT =     4
@ global String comment DAMP_OPT =     0
@ global String comment DAMPCOEF =         0.20
@ global String comment KHDIF =         0.00
@ global String comment KVDIF =         0.00
@ global String comment MP_PHYSICS =     3
@ global String comment RA_LW_PHYSICS =     1
@ global String comment RA_SW_PHYSICS =     1
@ global String comment SF_SFCLAY_PHYSICS =     1
@ global String comment SF_SURFACE_PHYSICS =     2
@ global String comment BL_PBL_PHYSICS =     1
@ global String comment CU_PHYSICS =     1
@ global String comment SURFACE_INPUT_SOURCE =     1
@ global String comment SST_UPDATE =     0
@ global String comment GRID_FDDA =     0
@ global String comment GFDDA_INTERVAL_M =     0
@ global String comment GFDDA_END_H =     0
@ global String comment GRID_SFDDA =     0
@ global String comment SGFDDA_INTERVAL_M =     0
@ global String comment SGFDDA_END_H =     0
@ global String comment HYPSOMETRIC_OPT =     2
@ global String comment SF_URBAN_PHYSICS =     0
@ global String comment SHCU_PHYSICS =     0
@ global String comment MFSHCONV =     0
@ global String comment FEEDBACK =     1
@ global String comment SMOOTH_OPTION =     0
@ global String comment SWRAD_SCAT =         1.00
@ global String comment W_DAMPING =     0
@ global String comment MOIST_ADV_OPT =     1
@ global String comment SCALAR_ADV_OPT =     1
@ global String comment TKE_ADV_OPT =     1
@ global String comment DIFF_6TH_OPT =     0
@ global String comment DIFF_6TH_FACTOR =         0.12
@ global String comment OBS_NUDGE_OPT =     0
@ global String comment BUCKET_MM =        -1.00
@ global String comment BUCKET_J =        -1.00
@ global String comment PREC_ACC_DT =         0.00
@ global String comment OMLCALL =     0
@ global String comment ISFTCFLX =     0
@ global String comment ISHALLOW =     0
@ global String comment DFI_OPT =     0
@ global String comment WEST-EAST_PATCH_START_UNSTAG =     1
@ global String comment WEST-EAST_PATCH_END_UNSTAG =    99
@ global String comment WEST-EAST_PATCH_START_STAG =     1
@ global String comment WEST-EAST_PATCH_END_STAG =   100
@ global String comment SOUTH-NORTH_PATCH_START_UNSTAG =     1
@ global String comment SOUTH-NORTH_PATCH_END_UNSTAG =    99
@ global String comment SOUTH-NORTH_PATCH_START_STAG =     1
@ global String comment SOUTH-NORTH_PATCH_END_STAG =   100
@ global String comment BOTTOM-TOP_PATCH_START_UNSTAG =     1
@ global String comment BOTTOM-TOP_PATCH_END_UNSTAG =    50
@ global String comment BOTTOM-TOP_PATCH_START_STAG =     1
@ global String comment BOTTOM-TOP_PATCH_END_STAG =    51
@ global String comment GRID_ID =     1
@ global String comment PARENT_ID =     0
@ global String comment I_PARENT_START =     1
@ global String comment J_PARENT_START =     1
@ global String comment PARENT_GRID_RATIO =     1
@ global String comment DT =        60.00
@ global String comment CEN_LAT =        19.50
@ global String comment CEN_LON =       110.00
@ global String comment TRUELAT1 =        30.00
@ global String comment TRUELAT2 =        60.00
@ global String comment MOAD_CEN_LAT =        19.50
@ global String comment STAND_LON =       -98.00
@ global String comment POLE_LAT =        90.00
@ global String comment POLE_LON =         0.00
@ global String comment GMT =         0.00
@ global String comment JULYR =  2012
@ global String comment JULDAY =   354
@ global String comment MAP_PROJ =     3
@ global String comment MMINLU = USGS
@ global String comment NUM_LAND_CAT =    24
@ global String comment ISWATER =    16
@ global String comment ISLAKE =    -1
@ global String comment ISICE =    24
@ global String comment ISURBAN =     1
@ global String comment ISOILWATER =    14
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2013-12-3 21:06:11 | 显示全部楼层

你没看之前的帖子,这个已经做了更新(MeteoInfo最新文件
http://bbs.06climate.com/forum.p ... 126&fromuid=106


Java版也已经更新了,不过没有上传更新的文件,如果你需要可以传上来。
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2013-12-3 23:19:07 | 显示全部楼层
谢谢王老师,本人对java编程稍微学了点,想基于JAVA版的METEOINFO搞一搞二次开发,如果能有最新版的就最好了。另外想请教一下王老师,怎么样才能把java的图形编程学好?有什么好的书籍可以推荐吗?
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2013-12-5 14:10:18 | 显示全部楼层
zhoulm177 发表于 2013-12-3 23:19
谢谢王老师,本人对java编程稍微学了点,想基于JAVA版的METEOINFO搞一搞二次开发,如果能有最新版的就最好了 ...

已做了更新,见此贴:MeteoInfo最新文件
http://bbs.06climate.com/forum.p ... 126&fromuid=106

可以找找Java2D的资料看看
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2013-12-6 13:09:26 | 显示全部楼层
MeteoInfo 发表于 2013-12-5 14:10
已做了更新,见此贴:MeteoInfo最新文件
http://bbs.06climate.com/forum.php?mod=viewthread&tid=1126& ...

谢谢王老师分享。我好好学习一下了。
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

Copyright ©2011-2014 bbs.06climate.com All Rights Reserved.  Powered by Discuz! (京ICP-10201084)

本站信息均由会员发表,不代表气象家园立场,禁止在本站发表与国家法律相抵触言论

快速回复 返回顶部 返回列表