Re: Interpolate from Fixed grid to Gaussian

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Wed Jul 31 2013 - 06:21:16 MDT

Not sure what is meant by "output data is blank"

The following test works fine here

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"

  f = addfile("CERES_EBAF-TOA_Ed2.6_Subset_CLIM01-CLIM12.nc","r")
  x = f->toa_sw_clr_clim(0,:,:) ; (180,360)

  print("nmsg="+num(ismissing(x)))
  print("x: min="+min(x)+" ; max="+max(x))

  xg = f2gsh_Wrap(x,(/190,384/),0)
  printVarSummary(xg)
  print("xg: min="+min(xg)+" ; max="+max(xg))

  xg126 = f2gsh_Wrap(x,(/190,384/),126)
  printVarSummary(xg126)
  print("xg126: min="+min(xg126)+" ; max="+max(xg126))

On 7/30/13 5:39 AM, gibies george wrote:
> On 30 July 2013 15:41, gibies george <gibies@tropmet.res.in> wrote:
>
>> Dear NCL Users,
>>
>> I have a 2.0 degree fixed grid data to be interpolated to t126 gaussian
>> grid.
>>
>> I have used "f2gsh_Wrap" function as follows
>>
>> mld= f2gsh_Wrap (mld_ann_clim(:,0:178),(/190,384/),126)
>>
> I also tried with no truncation option
> mld= f2gsh_Wrap (mld_ann_clim(:,0:178),(/190,384/),0)
>
>
>> Even if the function don't show any error message the output data is
>> blank.
>>
>> Does anybody have a solution ?
>>
>> Thanking you in advance.
>>
>>
>>
>> *Gibies George,
>> CSIR-Senior Research Fellow,*
>> *Program for Model development and seasonal prediction,
>> Climate and Global Modelling Division,
>> Indian Institute of Tropical Meteorology,
>> Dr. Homi Bhabha Road,
>> NCL (P. O.), Pashan,
>> Pune 411008, India.
>> Tel. Off. +912025904423*
>> *Mobile : +919028523910
>> +919881707796
>> *
>>
>> *http://sites.google.com/site/gibiesge/*
>>
>>
>> Every 3000 pages cost a tree; please do not print this e-mail unless you
>> really need.
>>
>> *SAVE TREES, SAVE MOTHER EARTH*
>>
>>
>
>
>
>
> _______________________________________________
> 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 Wed Jul 31 06:21:18 2013

This archive was generated by hypermail 2.1.8 : Thu Aug 01 2013 - 15:55:04 MDT