登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
数据格式为: 文件名:fnl_20110411_00_00.grib2 float TMP_P0_L1_GLL0 ( lat_0, lon_0 ) center : US National Weather Service - NCEP (WMC) production_status : Operational products long_name : Temperature units : K _FillValue : 1e+20 grid_type : Latitude/longitude parameter_discipline_and_category : Meteorological products, Temperature parameter_template_discipline_category_number : ( 0, 0, 0, 0 ) level_type : Ground or water surface level : 0 forecast_time : 0 forecast_time_units : hours initial_time : 04/11/2011 (00:00) 语法: load"$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl" load"$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl" begin f = addfile("/home/liuzhe/fnl_data/fnl_20110411_00_00.grib2","r") V = f->TMP_P0_L1_GLL0 print(V) End print(V)的结果: (175,138) 236.8 (175,139) 237 (175,140) 237.3 (175,141) 237.5 (175,142) 237.8 (175,143) 238.1 (175,144) 238.5 (175,145) 239 (175,146) 239.4 (175,147) 239.9 (175,148) 240.4 (175,149) 240.9 (175,150) 241.4 (175,151) 241.9 (175,152) 242.3 (175,153) 242.7 (175,154) 243 (175,155) 243.3 (175,156) 243.6 (175,157) 243.9 (175,158) 244.1 为什么第一维坐标(纬度)会出现175,而纬度的范围是(-90,90),怎嘛会出现175,? 我的理解是175代表的不是纬度,而是数组的横坐标。 第二个问题: 文件名: fnl_20110411_00_00.grib2 fnl_20110411_06_00.grib2 fnl_20110411_12_00.grib2 fnl_20110411_18_00.grib2 这四个文件都具有一个元数据(只有initial_time : 04/11/2011 (00:00)(这个时间点不同而已)) loat TMP_P0_L1_GLL0 ( lat_0, lon_0 ) center : US National Weather Service - NCEP (WMC) production_status : Operational products long_name : Temperature units : K _FillValue : 1e+20 grid_type : Latitude/longitude parameter_discipline_and_category : Meteorological products, Temperature parameter_template_discipline_category_number : ( 0, 0, 0, 0 ) level_type : Ground or water surface level : 0 forecast_time : 0 forecast_time_units : hours initial_time : 04/11/2011 (00:00)(这个时间点不同而已) 语法: load"$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl" load"$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl" ;---Open file and read in data begin diri = "/home/liuzhe/fnl_data/" fils = systemfunc("ls "+diri +"fnl_20110411*.grib2") f = addfiles(fils,"r") ListSetType(f, "cat") V = f[:]->TMP_P0_L1_GLL0 print(V) End printVarSummary(V) Variable: V Type: float Total Size: 1042560 bytes 260640 values Number of Dimensions: 2 Dimensions and sizes: [lat_0 | 724] x [lon_0 | 360] Coordinates: lat_0: [90..-90] lon_0: [ 0..359] Number Of Attributes: 13 center : US National Weather Service - NCEP (WMC) production_status : Operational products long_name : Temperature units : K _FillValue : 1e+20 grid_type : Latitude/longitude parameter_discipline_and_category : Meteorological products, Temperature parameter_template_discipline_category_number : ( 0, 0, 0, 0 ) level_type : Ground or water surface level : 0 forecast_time : 0 forecast_time_units : hours initial_time : 04/11/2011 (00:00) Print(v)结果: (718,125) 229 (718,126) 229.7 (718,127) 230.3 ...................................... (718,355) 219.7 (718,356) 219.5 (718,357) 219.3 (718,358) 219.2 (718,359) 219 (719,0) 219.2 (719,1) 219.1 .................................. (723,352) 225.6 (723,353) 225.6 (723,354) 225.6 (723,355) 225.6 (723,356) 225.6 (723,357) 225.6 (723,358) 225.6 (723,359) 225.6 问题: 这个718 是怎嘛来的?是简单将一个文件的数组的左边维数乘以4吗? 这个数组对应的值,感觉与单个文件的数组对应的值,不一样呢?
|