[ncl-talk] Regridding WRF corvilinear grid to gpm rain rectlinear grid
Ronald Opio
opioronald123 at gmail.com
Mon Dec 4 00:55:22 MST 2017
Hello Dennis.
I have tried this and am still experiencing the same problem. No change is
happening to the file I want to re-grid.
Please have a look at it and see. I have attached the wrf file as a google
drive link plus the script am using and the GPM rainfall file (precip.nc).
My intention is to regrid the wrf file so that it has the same dimensions
as the precip file.
Please help out.
Sincerely,
Ronald.
wrf.nc
<https://drive.google.com/file/d/1DEV9Kdp3VRH-7oHtBjNfvqhdyvY-9ABj/view?usp=drive_web>
On Wed, Nov 29, 2017 at 7:34 PM, Dennis Shea <shea at ucar.edu> wrote:
> regridding: I am not sure what you mean by:
> "It runs well, however, when I check the file after, I find that the WRF
> file still remains with its original grid size."
>
> ===
> *The original file is never overwritten*.
> ===
> Suggestion:
> rain = r1 + r2 ; all meta data is lost
> rain at long_name = "Total Rain" ; whatever
> rain at units = r1 at units
> copy_VarCoords(r1, rain)
>
> ---
> raingrid = ESMF_regrid(rain,Opt) ; Regrid "rain" to new grid
> printVarSummary(raingrd)
>
>
>
>
>
> On Wed, Nov 29, 2017 at 8:14 AM, Barry Lynn <barry.h.lynn at gmail.com>
> wrote:
>
>> Hi:
>>
>> Do you mean how to make single maps, or do you mean how to turn a pdf or
>> pngs into a gif?
>>
>> On Wed, Nov 29, 2017 at 2:52 PM, Ronald Opio <opioronald123 at gmail.com>
>> wrote:
>>
>>> Thank you Barry. Let me give this a try.
>>>
>>> Could you be having a script for animating total precipitation in this
>>> way https://www.youtube.com/watch?v=SW1rA-M6l4s ?
>>>
>>> If so, please share with me.
>>>
>>> Sincerely,
>>>
>>> Ronald.
>>>
>>> On Wed, Nov 29, 2017 at 2:24 PM, Barry Lynn <barry.h.lynn at gmail.com>
>>> wrote:
>>>
>>>> Dear Ronald:
>>>>
>>>> I have used regrid to regrid to both the original WRF grid and a more
>>>> sparse grid. However, its main task is to regrid to the original grid in
>>>> rectilinear coordinates (unless you tell it otherwise).
>>>>
>>>> You can interpolate from a fine grid to a coarse grid using the
>>>> programs available (e.g., area_hi2lores_Wrap).
>>>>
>>>> Please see lines 320,386 in the program attached (that calculates
>>>> frontogenesis). In this program, I used a more sparse version of the WRF
>>>> grid as the destination grid. If you are going to use a grid from a
>>>> different data set, then it would be best if the new grid will be smaller
>>>> than the WRF grid (so you don't interpolate zeros).
>>>>
>>>> Barry
>>>>
>>>> On Wed, Nov 29, 2017 at 11:16 AM, Ronald Opio <opioronald123 at gmail.com>
>>>> wrote:
>>>>
>>>>> Hello colleagues.
>>>>>
>>>>> I am trying to regrid my WRF output file so as to match the gpm
>>>>> rainfall data set grid, however the script is not working.
>>>>>
>>>>> I am using ESMF_regrid function. It runs well, however, when I check
>>>>> the file after, I find that the WRF file still remains with its original
>>>>> grid size.
>>>>>
>>>>> Please help me out. What could the problem be?
>>>>>
>>>>> I have attached the script herein.
>>>>>
>>>>>
>>>>>
>>>>> Ronald.
>>>>>
>>>>> _______________________________________________
>>>>> ncl-talk mailing list
>>>>> ncl-talk at ucar.edu
>>>>> List instructions, subscriber options, unsubscribe:
>>>>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Barry H. Lynn, Ph.D
>>>> Senior Lecturer,
>>>> The Institute of the Earth Science,
>>>> The Hebrew University of Jerusalem,
>>>> Givat Ram, Jerusalem 91904, Israel
>>>> Tel: 972 547 231 170
>>>> Fax: (972)-25662581
>>>>
>>>> C.E.O, Weather It Is, LTD
>>>> Weather and Climate Focus
>>>> http://weather-it-is.com
>>>> Jerusalem, Israel
>>>> Local: 02 930 9525
>>>> Cell: 054 7 231 170
>>>> Int-IS: x972 2 930 9525
>>>> US 914 432 3108 <(914)%20432-3108>
>>>>
>>>
>>>
>>
>>
>> --
>> Barry H. Lynn, Ph.D
>> Senior Lecturer,
>> The Institute of the Earth Science,
>> The Hebrew University of Jerusalem,
>> Givat Ram, Jerusalem 91904, Israel
>> Tel: 972 547 231 170
>> Fax: (972)-25662581
>>
>> C.E.O, Weather It Is, LTD
>> Weather and Climate Focus
>> http://weather-it-is.com
>> Jerusalem, Israel
>> Local: 02 930 9525
>> Cell: 054 7 231 170
>> Int-IS: x972 2 930 9525
>> US 914 432 3108 <(914)%20432-3108>
>>
>> _______________________________________________
>> ncl-talk mailing list
>> ncl-talk at ucar.edu
>> 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/20171204/7acd7c1a/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: trial
Type: application/octet-stream
Size: 1479 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20171204/7acd7c1a/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: precip.nc
Type: application/x-netcdf
Size: 27390 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20171204/7acd7c1a/attachment.nc>
More information about the ncl-talk
mailing list