Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Conversion of netcdf file to stata

    I recently came across your gridded PM2.5 dataset for the United States, available in NetCDF format. This appears to be an incredibly valuable dataset for research. As I seek to conduct econometric analysis on pollution impacts, having the data in Stata format would significantly facilitate my work. Annual and monthly datasets are provided in NetCDF [.nc] format

    Data is uploaded on a public website [ https://sites.wustl.edu/acag/datasets/surface-pm2-5/ ]

    I noticed in the documentation that the data creator developed an R script to convert NetCDF data to Geotiff raster files. I was wondering - would it be possible to modify this conversion approach to output datasets compatible with Stata (e.g. .dta files), rather than Geotiff?

    If anyone has any suggestions for how I may transform the PM2.5 NetCDF data into analysis-ready .dta panel data usable in Stata, I would tremendously appreciate your guidance.

  • #2
    This is a Python problem

    Comment


    • #3
      This problem arose for me a few years ago with a student's data. I recall that MATLAB supports this dataset format but I didn't get further than that. The student perhaps solved the problem otherwise but I don't remember more.

      Comment


      • #4
        Incredibly thankful for all the invaluable information. This is honestly more doable on python. I honestly don't like R. Obviously, would have been more convenient for me if I could do this on stata. But, this is sort of the work which is more doable in python. Thanks everyone again for sharing their precious time!

        Comment

        Working...
        X