Re: question for lhtfl regrid

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Mon Nov 25 2013 - 08:54:20 MST

The following:

http://journals.ametsoc.org/doi/pdf/10.1175/1520-0493%281999%29127%3C2204%3AFASOCR%3E2.0.CO%3B2

contains

"Fluxes in particular must be remapped in a conservative manner
  in order to maintain the energy and water budgets of the coupled
  climate system."

===
The above is *not* the method used by NCL's area_conserve_remap_Wrap
but the idea is the same.

See also:
https://climatedataguide.ucar.edu/climate-data-tools-and-analysis/regridding-overview

On 11/24/13 7:29 PM, 远方的思恋 wrote:
> Dear NCL:
> Recently ,I perform areal conservative remapping from gaussian grid(192×94) to one fixed grid (144×72 grid) using area_conserve_remap_Wrap .However,when I use matlab to read the result,I found a little program.So ,I need your help .Can you tell me the principle of area_conserve_remap_Wrap ?I read the follow USL http://www.ncl.ucar.edu/Document/Functions/Contributed/area_conserve_remap_Wrap.shtml,
> but only the input and output are introduced. Could you help me check my code?
> "lhtfl.sfc.gauss.2012.nc" is source data,and "lhtfl_2007regrid.nc" is the data after the interpolation.
> I look forward to hearing from you.
>
>
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl"
>
> begin
> p= addfile("/home/administrator/lhtfl.sfc.gauss.2012.nc","r")
> f=p->lhtfl
> f=f(:,::-1,:)
> opt = False
> NLAT = 72
> MLON = 144
> LAT = latGlobeFo(NLAT, "LAT", "latitude" , "degrees_north")
> LON = lonGlobeFo(MLON, "LON", "longitude", "degrees_east" )
> X = area_conserve_remap_Wrap(f&lon, f&lat, f,LON, LAT, opt)
> X=X(:,::-1,:)
> out=addfile("lhtfl_2007newregrid.nc","c")
> out->X=X
> end
>
>
> 从QQ邮箱发来的超大附件
>
> data.tar.gz (20.14M, 2013年12月25日 10:28 到期)进入下载页面:http://mail.qq.com/cgi-bin/ftnExs_download?k=7830633901878acbb81827071e39051a0152500d5d0e010c150952000d1403035c544e000d0f5618005307080a5b04060b00530e38323751594402174c58451b5f4a6304&t=exs_ftn_download&code=80c98975
>
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Nov 25 08:54:35 2013

This archive was generated by hypermail 2.1.8 : Wed Dec 04 2013 - 20:42:38 MST