We integrate the Java GeoTools and NetCDF libraries into Stata and introduce a new suite of commands for reading and processing geospatial raster data entirely within Stata. These commands enable Stata users to seamlessly extract data from GeoTIFF and NetCDF files, reproject geographic coordinates, match raster data with geographical locations, and compute zonal statistics. By eliminating round trips to external GIS or scripting environments, the commands streamline workflows and improve reproducibility of spatial analyses conducted in Stata. We document the command syntax and provide worked examples that illustrate typical use cases—metadata inspection, subsetting, coordinate reference systems harmonization, polygon-based aggregation, and point-based exposure estimation—demonstrating how the package supports end-to-end spatial data preparation and analysis.
Du et al. (Mon,) studied this question.