[ncl-talk] Join several netcdf files
Doumbia
thiernodoumbia at yahoo.fr
Thu Apr 14 08:58:09 MDT 2016
Dear ncl users,
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.
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.
Does anyone know how to combine these files ?
Please find attached two samples of my regridding data.
Also, I am wondering if the regredding method that I used is the best one for this type of data ?
Here are the command lines I used for the regridding.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: regrid_ll_con_2010_CO2_emiss.nc
Type: application/octet-stream
Size: 7591 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160414/d043fc07/attachment.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: regrid_ll_alg_2010_CO2_emiss.nc
Type: application/octet-stream
Size: 26911 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160414/d043fc07/attachment-0001.obj
-------------- next part --------------
%--------------------------------------------
interp_method = ?conserve?
latS = min(lat)
latN = max(lat)
lonW = min(lon)
lonE = max(lon)
Opt = True
Opt at ForceOverwrite = True
Opt at InterpMethod = interp_method
Opt at WgtFileName = ?Rect_2_1deg.nc?
Opt at SrcInputFileName = srcFileName
Opt at DstGridType = ?0.1deg?
Opt at DstTitle = ?Emission at 0.1 degree resolution?
Opt at DstLLCorner = (/ latSn, lonW /)
Opt at DstURCorner= (/ latN, lonE /)
Opt at SrcRegional = True
Opt at DstRegional = True
Var_regrid = ESMF_regrid(satGV, Opt)
%-------------------------------------------------------------
Thanks you for your help,
Thierno
LATMOS/IPSL, CNRS
Paris
More information about the ncl-talk
mailing list