parameters.py 文件源码

python
阅读 28 收藏 0 点赞 0 评论 0

项目:wxgen 作者: metno 项目源码 文件源码
def __init__(self, filename):
      self.filename = filename
      self.file = netCDF4.Dataset(self.filename, 'r')
      proj = pyproj.Proj(self.proj)
      if "latitude" not in self.file.variables or "longitude" not in self.file.variables:
         x, y = np.meshgrid(self.x, self.y)
         self._lons, self._lats = proj(x, y, inverse=True)
      else:
         self._lats = self.file.variables["latitude"][:]
         self._lons = self.file.variables["longitude"][:]
      self._field_cache = dict()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号