Project

General

Profile

is it possible to remap a shape file to a netcdf?

Added by Natalia L about 5 years ago

Hi

I have the attached shapefile in wgs84 which contains emissions values per municipality (polygons). The first column is the ID of the polygon and the next three are the pollutant emissions (CO, NOx, Sox). I have a grid in spherical LCC projection in a netcdf file (grid.nc) and I want to create a netcdf file with the dimensions of the grid.nc containing the emission values of the shape file. So the emissions per polygon will be spatial distributed to the grid.nc.

Is this possible ? How I could convert the shape file to a netcdf ?

thank you

Natalia


Replies (2)

RE: is it possible to remap a shape file to a netcdf? - Added by Ralf Mueller about 5 years ago

I am pretty sure CDO will not be able to help you with shapefiles. NCL is a more promising tool for that: https://www.ncl.ucar.edu/Applications/shapefiles.shtml

cheers

RE: is it possible to remap a shape file to a netcdf? - Added by Stefan Muthers about 5 years ago

Another alternative can be found in the gdal-tools, e.g.,

gdal_rasterize -at -a VARIABLE -l LAYER SHPFILE YOURRASTERAS.GEOTIFF
    (1-2/2)