我有一个NetCDF文件(ERO
),它没有纬度/经度作为显式变量。当我致电ERO.variables.keys()
时,它将返回
odict_keys(['FCST_ERO_Surface_FULL', 'OBS_ALL_A365324_FULL_MAX_49'])
当我致电ERO.dimensions.items()
时,它将返回
('lat', <class 'netCDF4._netCDF4.Dimension'>: name = 'lat', size = 276)
('lon', <class 'netCDF4._netCDF4.Dimension'>: name = 'lon', size = 721)
当我致电ERO
时,它会返回
<class 'netCDF4._netCDF4.Dataset'>
root group (NETCDF4 data model, file format HDF5):
FileOrigins: File /export/hpc-lw-dtbdev5/merickson/ERO_verif/ERO_verif_day1_ALL//grid_stat_ALL_ERO_s2017082712_e2017082812_vhr09_240000L_20170828_120000V_pairs.nc generated 20191121_050829 UTC on host hpc-lw-dtbdev5.ncep.noaa.gov by the MET grid_stat tool
MET_version: V8.1
MET_tool: grid_stat
model: WRF
obtype: ANALYS
Projection: LatLon
lat_ll: 25.000000 degrees_north
lon_ll: -129.800000 degrees_east
delta_lat: 0.090000 degrees
delta_lon: 0.090000 degrees
Nlat: 276 grid_points
Nlon: 721 grid_points
dimensions(sizes): lat(276), lon(721)
variables(dimensions): float32 FCST_ERO_Surface_FULL(lat,lon), float32 OBS_ALL_A365324_FULL_MAX_49(lat,lon)
groups:
这些经纬度变量显然存在,但是我不知道如何访问它们以在底图上可视化它们。我看过的每个NetCDF /底图教程都使用具有lat和lon变量的NetCDF文件。希望我能清楚地解释这一点,任何帮助将不胜感激!