<div dir="ltr"><div><div><div>[1] Is conservative regridding &quot;...the best one for this type of data&quot;. YES!<br><br></div>[2] It is possible to &quot;join&quot; different regridded variables with different dimension sizes&quot; on a single file BUT you must provide a unique name and, where grids are different sizes, vreate unique names for (sa) the lat and lon dimensions.<br><br></div>Your source files: regrid_ll_alg_2010_CO2_emiss  and regrid_ll_con_2010_CO2_emiss<br><br></div><div>have the same named dimensions &#39;lat&#39; and &#39;lon&#39; and the same variable name &#39;emiss&#39; on both files.<br><br></div><div>netCDF requires unique names so <br><br>regrid_ll_alg_2010_CO2_emiss:  lat_alg, lon_alg, emiss_alg<br><br>regrid_ll_con_2010_CO2_emiss:  lat_con, lon_con, emiss_con<br><br></div><div>Then you could use (say) ncks to append each file to the &#39;big&#39; file.<br><br></div><div>Good luck<br></div><div><br><br><br></div><div><br></div><br><div><div><br><br> </div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 14, 2016 at 8:58 AM, Doumbia <span dir="ltr">&lt;<a href="mailto:thiernodoumbia@yahoo.fr" target="_blank">thiernodoumbia@yahoo.fr</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear ncl users,<br>
<br>
I have several high resolution data (0.00833 x 0.00833 degree, about 0.86 km2 in the equator), representing different gas flaring regions in Africa (11 netcdf files). I am first regridding them to 0.1 x 0.1 degree using ESMP_regrid conserve method.<br>
<br>
Now, I would like to join all of them to make one netcdf file. Let me precise that files have the same variable but the lat and lon dimension sizes differ between files.<br>
<br>
Does anyone know how to combine these files ?<br>
<br>
Please find attached two samples of my regridding data.<br>
<br>
Also, I am wondering if the regredding method that I used is the best one for this type of data ?<br>
<br>
Here are the command lines I used for the regridding.<br><br>
<br>
%--------------------------------------------<br>
interp_method = “conserve”<br>
<br>
latS  = min(lat)<br>
latN  = max(lat)<br>
lonW = min(lon)<br>
lonE  = max(lon)<br>
<br>
Opt = True<br>
<br>
Opt@ForceOverwrite = True<br>
<br>
Opt@InterpMethod = interp_method<br>
Opt@WgtFileName = “Rect_2_1deg.nc”<br>
<br>
Opt@SrcInputFileName = srcFileName<br>
<br>
Opt@DstGridType = “0.1deg”<br>
Opt@DstTitle         = “Emission at 0.1 degree resolution”<br>
Opt@DstLLCorner = (/ latSn,  lonW /)<br>
Opt@DstURCorner= (/ latN, lonE /)<br>
<br>
Opt@SrcRegional  = True<br>
Opt@DstRegional  = True<br>
<br>
Var_regrid  = ESMF_regrid(satGV, Opt)<br>
<br>
%-------------------------------------------------------------<br>
<br>
Thanks you for your help,<br>
Thierno<br>
LATMOS/IPSL, CNRS<br>
Paris<br>_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>