How to select the same area?
Added by Guilherme Martins almost 7 years ago
Dear users,
I'd like to cut my precipitation file using the area of 221_067_NetCDF.nc file (this is a polygon).
221_067_NetCDF.nc = shapefile
prec.nc = my precipitation file
I tried:
cdo remapbil,221_067_NetCDF.nc prec.nc tmp.nc
But the result (result.png) is not equal to 221_067_NetCDF.nc file.
Any help is very appreciated.
Best regards,
Guilherme.
221_067_NetCDF.nc (62.4 KB) 221_067_NetCDF.nc | Shapefile | ||
prec.nc (59.5 KB) prec.nc | Precipitation file | ||
prec.png (10.2 KB) prec.png | |||
shape.png (4.98 KB) shape.png | |||
result.png (6.47 KB) result.png |
Replies (4)
RE: How to select the same area? - Added by Karin Meier-Fleischer almost 7 years ago
Hi Guilherme,
cdo remapbil,221_067_NetCDF.nc prec.nc out_remap.nc cdo mul out_remap.nc 221_067_NetCDF.nc out_masked.nc
See attached PNG.
-Karin
plot_mask.png (38.2 KB) plot_mask.png | Plot file from out_masked.nc |
RE: How to select the same area? - Added by Guilherme Martins almost 7 years ago
Dear Karin,
Thank you! :-)
Guilherme.
RE: How to select the same area? - Added by kunal bali almost 7 years ago
Hello,
How can we create a shapefile in .nc file? Suppose if I want to create an Indian region shapefile then how is possible?
RE: How to select the same area? - Added by Karin Meier-Fleischer almost 7 years ago
Hi Kunal,
first, CDO can't create a shapefile. You can download the shapefiles for India from http://www.gadm.org/. If you want to convert it to netCDF format use, as an NCL user, the ncl_convert2nc command line tool.
-Karin