Re: Problem when output NetCDF

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Tue, 11 Sep 2007 10:45:59 -0600 (MDT)

Dear Liang,

The _FillValue value must be the same type as the variable it is
attached to. You are setting your variable to an integer (0), and then
trying to set your _FillValue to a float (-9999.9). Try changing the
first line below to:

  latentHeatAtt = 0.0

--Mary

On Tue, 11 Sep 2007, Liang Guo wrote:

> Dear All,
>
> I am convert .hdf file to .nc file.
>
> I add missing value attribution to one of variables, as follow:
> ...
> latentHeatAtt = 0
> *latentHeatAtt@_FillValue = -9999.9
> *latentHeatAtt_at_units = "deg/hr"
> latentHeatAtt_at_long_name = "Latent Heating"
> filevarattdef( fout, "latentHeat", latentHeatAtt )
> ...
>
> But, it does not work. Here is the mistake information:
> *"fatal:Type Mismatch: The type of missing value could not be converted to
> type of variable (latentHeatAtt)
> fatal:Execute: Error occurred at or near line 63 in file readNC.ncl"*
>
> What's matter?
>
> Thanks.
>
> Liang
> 2007/09/11
>
_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Sep 11 2007 - 10:45:59 MDT

This archive was generated by hypermail 2.2.0 : Tue Sep 11 2007 - 10:46:49 MDT