Abstract
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.
Keywords
Get full access to this article
View all access options for this article.
References
Supplementary Material
Please find the following supplemental material available below.
For Open Access articles published under a Creative Commons License, all supplemental material carries the same license as the article it is associated with.
For non-Open Access articles published, all supplemental material carries a non-exclusive license, and permission requests for re-use of supplemental material or any part of supplemental material shall be sent directly to the copyright owner as specified in the copyright notice associated with the article.
