Re: xMon Avg in netcdf

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Wed Nov 23 2011 - 18:19:49 MST

[snip]
       printVarSummary(xMON)

        delete([/ fili, x, xMon, xMON, dimx, dimMon /] )
     end do ; nmo
   end do ; year

;*****************************************************
; Write monthly means to netCDF
; pleas read: http://www.ncl.ucar.edu/Applications/method_1.shtml
;*****************************************************
print('Writing out netcdf file')
system("/bin/rm -f RHMON.nc")
ncdf = addfile("RHMON.nc", "c")
filedimdef(ncdf,"time",-1, True)
ncdf->xMON = xMON

[snip]

should be

       printVarSummary(xMON)

;*****************************************************
; Write monthly means to netCDF
; pleas read: http://www.ncl.ucar.edu/Applications/method_1.shtml
;*****************************************************
       print('Writing out netcdf file')
       system("/bin/rm -f RHMON.nc")
       ncdf = addfile("RHMON.nc", "c")
       filedimdef(ncdf,"time",-1, True)
       ncdf->xMON = xMON

        delete([/ fili, x, xMon, xMON, dimx, dimMon /] )
     end do ; nmo
   end do ; year

On 11/23/11 5:12 PM, Idowu, Oluseun S. (UMKC-Student) wrote:
> Thanks Mateus,
>
> The script runs fine before shutting down at 199009. I've tried to
> detect why but no luck yet.
>
> Sam
>
>
> From: Mateus Teixeira <mateus.teixeira@gmail.com
> <mailto:mateus.teixeira@gmail.com>>
> Date: Wed, 23 Nov 2011 21:52:01 -0200
> To: "Idowu, Oluseun S. (UMKC-Student)" <oluseun.idowu@mail.umkc.edu
> <mailto:oluseun.idowu@mail.umkc.edu>>
> Cc: Dennis Shea <shea@ucar.edu <mailto:shea@ucar.edu>>, ncl forum
> <ncl-talk@ucar.edu <mailto:ncl-talk@ucar.edu>>
> Subject: Re: xMon Avg in netcdf
>
> Hi,
>
> It seems the error is in the string used with systemfunc() function.
>
> Print the strings given to this function. Maybe you can find the problem.
>
> Best regards,
>
> Mateus
>
>
>
> 2011/11/23 Idowu, Oluseun S. (UMKC-Student) <oluseun.idowu@mail.umkc.edu
> <mailto:oluseun.idowu@mail.umkc.edu>>
>
>
> I ran the code and at some point it crashed with the error message
> below.
> It works fine until it gets to 199009. Any idea please. Thanks
>
> (0) =====> Calculating Monthly Mean: 199009 <=====
> fatal:systemfunc: cannot create child process:[errno=12]
> fatal:Execute: Error occurred at or near line 37 in file
> nc2monavgID_RH.ncl
>
>
>
>
>
>
>
> On 11/23/11 4:27 PM, "Dennis Shea" <shea@ucar.edu
> <mailto:shea@ucar.edu>> wrote:
>
> >I don't think people are going to review the code.
> >It is your job to run the code and examine the results.
> >That is part of the process of learning.
> >
> >Good luck
> >
> >On 11/23/11 3:16 PM, Idowu, Oluseun S. (UMKC-Student) wrote:
> > > Hello,
> > >
> > > I'm trying to the monthly average output as a netCDF file. I've
> attached
> > > the code. Please help review the code for correctness. Thanks
> > >
> > >
> > >
> > >
> > > _______________________________________________
> > > 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
>
>
>
>
> --
> Mateus da Silva Teixeira
> https://linuxcounter.net/cert/466740.png
>
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Nov 23 18:19:55 2011

This archive was generated by hypermail 2.1.8 : Wed Nov 30 2011 - 19:52:47 MST