netcdf4 extract for subset of lat lon

前端 未结 7 752
时光取名叫无心
时光取名叫无心 2020-11-30 06:56

I would like to extract a spatial subset of a rather large netcdf file. From Loop through netcdf files and run calculations - Python or R

from pylab import          


        
相关标签:
7条回答
  • 2020-11-30 07:49

    If you are working in Linux or macOS this can be handled very easily using nctoolkit (https://nctoolkit.readthedocs.io/en/latest/):

    import nctoolkit as nc
    data = nc.open_data('/usgs/data2/rsignell/models/ncep/narr/air.2m.1989.nc')
    data.crop(lon = [-(96+31/60), -(89+5/6)], lat = [40 + 36/60, 43 + 30/60])
    
    0 讨论(0)
提交回复
热议问题