[ncl-talk] Fwd: Regridding from fine to coarse resolution by aggregating not interpolating
Dennis Shea
shea at ucar.edu
Mon Sep 29 17:30:06 MDT 2014
This response was inadvertently not sent to ncl-talk at ucar.edu
---------- Forwarded message ----------
From: Dennis Shea <shea at ucar.edu>
Date: Mon, Sep 29, 2014 at 2:40 PM
Subject: Re: [ncl-talk] Regridding from fine to coarse resolution by
aggregating not interpolating
To: "Silva, Raquel" <rasilva at live.unc.edu>
Cc: Carl Schreck <cjschrec at ncsu.edu>
You should be able to bin. nlat and mlon *can* be different sizes.
I just ran: Example 2 (random data):
*http://www.ncl.ucar.edu/Applications/binning.shtml
<http://www.ncl.ucar.edu/Applications/binning.shtml>*
You can download the script and run it. Here nlat=36 and mlon=61
===
On Mon, Sep 29, 2014 at 2:11 PM, Silva, Raquel <rasilva at live.unc.edu> wrote:
> Hi Carl and Dennis,
>
>
> Thanks for your quick responses.
>
>
> I'm getting the following error:
>
> fatal:bin_sum: zlat must be the same size as zlon
>
>
> where
>
> zlat = z_in->lat
> zlon = z_in->lon
>
> I thought that I could have different sizes for longitude and latitude.
>
>
> Thanks,
>
> Raquel
> ------------------------------
> *From:* Dennis Shea <shea at ucar.edu>
> *Sent:* Monday, September 29, 2014 4:05 PM
> *To:* Carl Schreck
> *Cc:* Silva, Raquel; ncl-talk at ucar.edu
> *Subject:* Re: [ncl-talk] Regridding from fine to coarse resolution by
> aggregating not interpolating
>
> Also, see:
>
> http://www.ncl.ucar.edu/Applications/
>
> on the right under "Data Analysis", Click "Binning"
>
> There are a few examples.
>
> ===
> If you are new to NCL, pleasesee
>
> http://www.ncl.ucar.edu/Document/Manuals/
>
> [1] Mini-Language Manual (concise but detailed language overview)
>
> [2] the DKRZ tutorials. This is a rather large pdf.
> The 1st contains a subset of the Mini-Language Manual plu many
> examples.
> The 2nd has a lot of exercises. Unfortunately, not all the data sets
> are available
> for general use.
>
> Cheers
>
>
> On Mon, Sep 29, 2014 at 1:00 PM, Carl Schreck <cjschrec at ncsu.edu> wrote:
>
>> Hi Raquel,
>>
>> I believe bin_sum will do what you're looking for:
>> http://www.ncl.ucar.edu/Document/Functions/Built-in/bin_sum.shtml
>>
>> Carl
>>
>> On Mon, Sep 29, 2014 at 2:25 PM, Silva, Raquel <rasilva at live.unc.edu>
>> wrote:
>>
>>> Hi all,
>>>
>>>
>>> I need to regrid global data from a fine (30"x30") to a
>>> coarser (0.7x0.5 deg) resolution so that each output cell contains the sum
>>> of the input cells that are encompassed by the extent of that cell. Could
>>> you please let me know if there is an ncl function I could use?
>>>
>>>
>>> Thanks,
>>> Raquel
>>>
>>> _______________________________________________
>>> ncl-talk mailing list
>>> List instructions, subscriber options, unsubscribe:
>>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>>
>>>
>>
>>
>> --
>>
>> <http://www.cicsnc.org/>
>> <http://www.researcherid.com/rid/B-8711-2011>
>> * Cyclone <http://www.cyclonecenter.org/>*Center.org
>> <http://www.cyclonecenter.org/> *Carl J. Schreck III, PhD*
>> *Research Associate*
>> Cooperative Institute for Climate and Satellites NC
>> <http://www.cicsnc.org/>
>> North Carolina State University <http://ncsu.edu/>
>> NOAA's National Climatic Data Center <http://ncdc.noaa.gov/>
>> 151 Patton Ave, Asheville, NC 28801
>> e: cjschrec at ncsu.edu
>> o: +1 828 257 3140
>> Publications
>> <http://scholar.google.com/citations?hl=en&user=th8ONEcAAAAJ&view_op=list_works&sortby=pubdate>
>> monitor.cicsnc.org/mjo
>>
>> _______________________________________________
>> ncl-talk mailing list
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20140929/5b31f83a/attachment.html
More information about the ncl-talk
mailing list