Re: about T-Test Operator

From: Mary Haley (haley AT ucar.edu)
Date: Mon Jan 17 2005 - 17:06:58 MST

  • Next message: Li Tao: "how to read from many binary files:"

    On Jan 17, 2005, at 12:45 PM, liping deng wrote:

    > Hello!
    >  
    > When I want to using t-test code
    >  
    > in at_t-testfunc.ncl
    >  
    > this one does not work:
    >  T_TESTSUBS:: at_t_test_time_spatial* | grep
    > -(nobs,nlat,nlon,x,y,t_test,miss)
    >
    >  T_TESTSUBS::
    > at_t_test_time_spatial_bylev(nobs,nlev,nlat,nlon,x,y,t_test,miss)
    >
    > Do anyone know waht is this mean here ----  ::
    >  
    > Error:
    > fatal:error in statement
    > fatal:Variable (x) is undefined
    > fatal:Execute: Error occurred at or near line 5509 in file
    > $NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl
    > fatal:syntax error: line 26 in file
    > /home/gcm/ncl/CCM3/Ttest/at_t-testfunc.ncl before or near :
    >   T_TESTSUBS:
    > ------------^

    Dear Liping,

    I believe the following error message that you got:

    > fatal:syntax error: possibly an undefined procedure

    is the key to why this isn't working. The
    "at_t_test_time_spatial_bylev" apparently is not defined anywhere,
    and thus it doesn't know how to call it.

    I can tell from the syntax of this line that you are trying to load a
    shared object. With this in mind, there
    could be a few things wrong:

        1. You haven't created the appropriate shared object.

        2. You've created the shared object, but you are not loading it with
    the NCL "load" command.

        3. The subroutine "at_t_test_time_spatial_bylev" is not in the *.f
    or *.f90 file used to create the
             shared object (check your spellings).

       4. You are using "g77" to compile the shared object, and because of
    the underscores in your
            subroutine name, "g77" is appending an extra underscore in your
    *.so file, and thus causing
            NCL not to see your subroutine. If this is the case, try
    compiling the Fortran routine with the
            -fno-second-underscore option (this may not be the exact option
    name, I'm naming it from
            memory).

    Please email me separately if you have any questions.

    --Mary

    > fatal:Syntax Error in block, block not executed
    > fatal:syntax error: line 64 in file
    > /home/gcm/ncl/CCM3/Ttest/at_t-testfunc.ncl before or near :
    >   T_TESTSUBS:
    > ------------^
    >
    > fatal:syntax error: possibly an undefined procedure
    > fatal:Syntax Error in block, block not executed
    > fatal:(missing) has no file extension, can't determine type of file to
    > open
    > warning:_NclIIsFileVar: undefined file returning missing value
    > fatal:The result of the conditional expression yields a missing value.
    > NCL can not determine branch, see ismissing function
    > fatal:Execute: Error occurred at or near line 343
    > Thank you very much!
    > liping
    >
    > Do you Yahoo!?
    > Yahoo! Mail - 250MB free storage. Do more. Manage
    > less._______________________________________________
    > ncl-talk mailing list
    > ncl-talk@ucar.edu
    > http://mailman.ucar.edu/mailman/listinfo/ncl-talk


    _______________________________________________
    ncl-talk mailing list
    ncl-talk@ucar.edu
    http://mailman.ucar.edu/mailman/listinfo/ncl-talk



    This archive was generated by hypermail 2b29 : Mon Jan 17 2005 - 22:09:44 MST