Mireia,
Try change:
globalAtt@TRUELAT2 = "60.f"
globalAtt@TRUELAT1 = "30.f"
to:
globalAtt@TRUELAT2 = 60.
globalAtt@TRUELAT1 = 30.
As in your code, you are setting those attributes to strings,
and that is why they are in quote when you read them.
Wei
huangwei@ucar.edu
VETS/CISL
National Center for Atmospheric Research
P.O. Box 3000 (1850 Table Mesa Dr.)
Boulder, CO 80307-3000 USA
(303) 497-8924
On Jul 23, 2012, at 3:34 PM, Mireia Udina wrote:
> Hi,
> 
> I am building a netcdf file for WRF input. When writing global 
> attributes, I need the following lines:
> 
> :TRUELAT1 = 60.f ;
> :TRUELAT2 = 30.f ;
> 
> In my ncl cript
> 
> ff = addfile(dir+fname+".nc","c")
> globalAtt@TRUELAT2 = "60.f"
> globalAtt@TRUELAT1 = "30.f"
> fileattdef( ff, globalAtt )
> 
> 
> The result in ff file is that they appear as:
> 
> 
> // global attributes:
>     :TRUELAT1 = "60.f" ;
>     :TRUELAT2 = "30.f" ;
> 
> and I do not want quotes on it (between 60.f and 30.f).
> 
> Any clue?
> 
> -- 
> Mireia
> _______________________________________________
> 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
Received on Mon Jul 23 16:00:29 2012
This archive was generated by hypermail 2.1.8 : Tue Jul 24 2012 - 09:48:26 MDT