Re: dumping resources values

From: Dennis Shea (shea AT XXXXXX)
Date: Wed Feb 19 2003 - 12:40:03 MST

  • Next message: Christian Pagé: "Re: dumping resources values"

    >Is there a way to dump resources values to the screen?

    Not clear about your question.

    Most frequently, resources are user defined options
    which modify the default behaviour of the gsn*
    graphical interfaces. These resources are passed
    as attributes of a variable. The following untested
    procedure might be what you want.

    procedure print_VarAtts(var) ; print attribute names and values
    local att_names, n
    begin
      att_names =getvaratts(var)
        if (.not.all(ismissing(att_names))) then
            nAtts = dimsizes(att_names)
          do n=0,nAtts-1
             print ("name="+att_names(n) +" = "+var@$att_names(n)$ )
          end do
      end if
    end

    regards,
    Dennis Shea

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



    This archive was generated by hypermail 2b29 : Wed Feb 19 2003 - 12:34:47 MST