[ncl-talk] [ncl-install] About Sum of variable
Dennis Shea
shea at ucar.edu
Sun Sep 8 20:51:52 MDT 2019
There are several ways to do this. A simple approach is attached.
*%>* ncl GovindJha_1.ncl
On Sun, Sep 8, 2019 at 5:12 AM Govind Jha via ncl-install <
ncl-install at ucar.edu> wrote:
> Dear Sir,
>
> I have 12 monthly netcdf files having variable called rain .I wish to
> calculate seasonal rainfall from monthly rainfall in NCL.
> for eg: monsoon season= sum of jun,july,aug and sept.
>
> How could I calculate it.
>
> Here the the monthly netcdf files.
>
> a = "/home/gopi/Build_WRF/work/MODE_analyis/Nirmala/GPM_july_2016" ; or
> manual precipitaiton same will work
> a1 = addfile(a+".nc","r")
> gp = a1 ->rain
>
>
> gsrc_lat = a1->lat ;;---Change (maybe)
> gsrc_lon = a1->lon ;;---Change (maybe)
>
> APCP = gp
> APCP!0 = "lat"
> APCP!1 = "lon"
> ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
> a2 = "/home/gopi/Build_WRF/work/MODE_analyis/Nirmala/GPM_jun_2016" ; or
> manual precipitaiton same will work
> a3 = addfile(a2+".nc","r")
> gp1 = a3 ->rain
>
> gsrc_lat = a3->lat ;;---Change (maybe)
> gsrc_lon = a3->lon ;;---Change (maybe)
>
> APCP1 = gp1
> APCP1!0 = "lat"
> APCP1!1 = "lon"
>
>
> g = array_append_record (APCP, APCP1, 0)
>
>
> gp3 = g
> gp3!0 = "lat"
> gp3!1 = "lon"
>
> Any help and suggestion would be highly appreciated.
>
> Thank you in advance.
>
>
>
> With Regards
> ..................................................
> *Govind Kumar Jha*
> ...................................................
> Assistant Meteorologist
> (Agro-Meteorology Section)
> Department of Hydrology and Meteorology (DHM)
> P.O. Box 406 Naxal, Nagpokhari, Kathmandu, Nepal
> Tel: +977 1 4436272, 4432409
> Fax: +977 1 4429919, 4432137
> www.dhm.gov.np, www.hydrology.gov.np, www.mfd.gov.np
>
> .............................................................................
> Mobile Number: 9779846265433
> Email Id: govind_jha65 at yahoo.com
> ..........................................................
>
> _______________________________________________
> ncl-install mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-install
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20190908/a2a1f290/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: GovindJha_1.ncl
Type: application/octet-stream
Size: 2352 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20190908/a2a1f290/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Govind_2016.png
Type: image/png
Size: 76670 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20190908/a2a1f290/attachment.png>
More information about the ncl-talk
mailing list