Re: _FillValue type mismatch

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Thu Mar 18 2010 - 09:37:37 MDT

-9999 is type integer [32-bits].

If your 'data' variable is type short [16 bits]

    data@_FillValue = inttoshort( -9999 )

On 03/18/2010 09:24 AM, Tong Qi wrote:
> Hello,
>
> I am trying to designate a _FillValue for a data field, but when I try
> data@_FillValue=-9999, I get
> "fatal:Type Mismatch: The type of missing value could not be converted
> to type of variable (Cirrus_Reflectance_Mean)"
>
> Both _FillValue and the data type are 16-bit integers. Where could the
> mismatch be?
>
> Thanks,
> -Tong
>
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

-- 
======================================================
Dennis J. Shea                  tel: 303-497-1361    |
P.O. Box 3000                   fax: 303-497-1333    |
Climate Analysis Section                             |
Climate & Global Dynamics Div.                       |
National Center for Atmospheric Research             |
Boulder, CO  80307                                   |
USA                        email: shea 'at' ucar.edu |
======================================================
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Mar 18 09:37:42 2010

This archive was generated by hypermail 2.1.8 : Fri Mar 19 2010 - 16:19:08 MDT