Re: global attributes

From: Dennis Shea (shea AT XXXXXX)
Date: Tue May 11 2004 - 13:21:00 MDT

  • Next message: Andrew Mai: "Re: Large Size netcdf file problem"

    >I would like to read all the global attributes and write them to an existing
    file, without knowing a priori what those attributes are. Any suggestions?
    >
     load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
     begin
         fin = addfile (....,"r") ; fin is pointer *and* variable
             :
         fout= addfile (....,"c") ; fout " " "
         
         copy_VarAtts (fin, fout)
       or
         fileattdef( fout, fin )
         
         :
     end

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



    This archive was generated by hypermail 2b29 : Tue May 11 2004 - 13:43:50 MDT