Python Modules to Process Polygons and HDF5 Fille Types

Published on by in Academic

I would like to know if anyone has good suggestions on Python modules to average gridded/raster values that are contained within a polygon.

I would like to stay away from ArcPy.

I am also looking for good suggestions for post processes HDF5/netCDF files. 

Taxonomy

2 Answers

  1. All I'd add to Raj’s answer is to recommend h5py if you're working with plain HDF5 files (a netCDF4 file is an HDF5 file under the hood).  Also, xarray is nice for working with netCDF4 files.

  2. Katelyn Costanza, P.E., CFM I prefer netCDF4 library in python for HDF5/netCDF4. You might have to install additional libraries for HDF5. 
    For Zonal statistics, i prefer rasterstats library.