<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hello,<div><br></div><div>I'd like to reproject a netCDF file through the command:</div><div><br></div><div><div><i><font face="verdana, sans-serif" color="#000000" style="background-color:rgb(238,238,238)">gdalwarp -t_srs '+proj=lcc +units=m +a=6370000.0 +b=6370000.0 +lat_1=30.0 +lat_2=60.0 +lat_0=39.51 +lon_0=-120.0 +x_0=0 +y_0=0 +k_0=1.0 +nadgrids=@null +wktext  +no_defs' -of netCDF NETCDF:"cut_wrf2d_d01_CTRL_EU10_200010-200012.nc":EU10 reprj_EU10.tif</font></i></div></div><div><br></div><div>and then I tried clip the tiff file using a shapefile:</div><div><span style="background-color:rgb(243,243,243)"><br></span></div><div><font face="verdana, sans-serif" style="background-color:rgb(238,238,238)">gdalwarp -q -cutline d01_domain_4km.shp -crop_to_cutline -of Gtiff reprj_EU10.tif clip_EU10.tif</font><br></div><div><br></div><div>But I have got the following error:</div><div><br></div><div><i><font face="verdana, sans-serif" style="background-color:rgb(238,238,238)">ERROR 1: Cannot compute bounding box of cutline.</font></i><br></div><div><br></div><div>This is because the reprojected file (<font face="verdana, sans-serif" color="#000000" style="font-style:italic;background-color:rgb(238,238,238)">reprj_EU10.tif</font><font color="#000000" style="background-color:rgb(255,255,255)" face="arial, helvetica, sans-serif">) is not in the right position on the map.  Its lower left corner is in the origin (0,0) which aren't the right coordinates.</font></div><div><font color="#000000" face="arial, helvetica, sans-serif">I have tried with another command too:</font></div><div><font color="#000000" face="arial, helvetica, sans-serif"><br></font></div><div><font color="#000000"><font face="verdana, sans-serif" style="background-color:rgb(238,238,238)"><i>gdal_translate -a_srs d01_domain_4km.prj -of netCDF NETCDF:"cut_wrf2d_d01_CTRL_EU10_200010-200012.nc":EU10 reprj_EU10.tif</i></font><br></font></div><div><font color="#000000"><font face="verdana, sans-serif" style="background-color:rgb(238,238,238)"><br></font></font></div><div><font color="#000000"><font style="background-color:rgb(255,255,255)" face="arial, helvetica, sans-serif">But I got the same error of the first attempt. I don't have any idea of how to solve this problem.</font></font></div><div><font color="#000000"><font style="background-color:rgb(255,255,255)" face="arial, helvetica, sans-serif"><br></font></font></div><div><font color="#000000"><font style="background-color:rgb(255,255,255)" face="arial, helvetica, sans-serif">Thanks.</font></font></div><div><font color="#000000"><font style="background-color:rgb(255,255,255)" face="arial, helvetica, sans-serif"><br></font></font></div><div><font color="#000000"><font style="background-color:rgb(255,255,255)" face="arial, helvetica, sans-serif">Ottavio</font></font></div></div></div></div></div></div></div>