Re: regarding the script mjoclivar_15

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Thu Oct 13 2011 - 14:03:39 MDT

Dear Bidyut,

The ncl-talk email list is more appropriate for asking questions about NCL.
The ncarg-talk is for people who have NCAR Graphics questions.

The error is telling you exactly what the problem is. You are trying to subscript
either monInfo or namMonth with an invalid subscript.

Remember that subscripting in NCL starts at index 0 and not 1. It may be that
you need to move the "nMon = nMon+1" call to after the two lines after it.

      if (iday(nt).eq.1) then
          monInfo(nMon,0) = namMonth(imon(nt)-1)
          monInfo(nMon,1) = colMonth(imon(nt)-1)
          nMon = nMon+1
      end if

--Mary

On Oct 13, 2011, at 8:18 AM, Bidyut Bikash Goswami wrote:

> Dear ncarg-talk,
>
> Please help me rectifying the error :
>
> ============
> fatal:Subscript out of range, error in subscript #0
> fatal:Execute: Error occurred at or near line 125 in file mjoclivar_15.nc
> ============
>
> which I am getting, trying to run the attached script.
>
>
> Sorry for the troubling.
>
>
> Thanks,
> Bidyut<mjoclivar_15.ncl>_______________________________________________
> ncarg-talk mailing list
> ncarg-talk@ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/ncarg-talk

_______________________________________________
ncarg-talk mailing list
ncarg-talk@ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncarg-talk
Received on Thu Oct 13 14:03:43 2011

This archive was generated by hypermail 2.1.8 : Fri Dec 02 2011 - 16:06:09 MST