netcdf4 extract for subset of lat lon

前端 未结 7 786
时光取名叫无心
时光取名叫无心 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:36

    Note that this can be accomplished even quicker on the command line using NCO's ncks.

    ncks -v air -d latitude,40.,43. -d longitude,-89.,-96. infile.nc -O subset_infile.nc

提交回复
热议问题