NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

Re: [netcdfgroup] Undefined or forward referenced enum constant

Hi Ajay,

Are you storing numeric values or a character?

If values, I think you need to use a byte instead of a char, and your 
_FillValue probably needs adjusting to the byte range.


Tim



From: netcdfgroup-bounces@xxxxxxxxxxxxxxxx 
[mailto:netcdfgroup-bounces@xxxxxxxxxxxxxxxx] On Behalf Of Ajay Krishnan - NOAA 
Affiliate
Sent: Wednesday, December 04, 2013 6:02 PM
To: netcdfgroup@xxxxxxxxxxxxxxxx
Subject: [netcdfgroup] Undefined or forward referenced enum constant

Hello Everyone.

I have a cdl dataset where one of the variables is a 'char' It has been defined 
as below:
 char wave_direction(station, obs) ;
          wave_direction:long_name = "wave_direction";
          wave_direction:standard_name = "wave_direction";
          wave_direction:nodc_name = "wave direction";
          wave_direction:units = "" ;
          wave_direction:scale_factor = 0.0f ;
          wave_direction:add_offset = 0.0f ;
          wave_direction:coordinates = "time lat lon" ;
          wave_direction:_FillValue = "-999";


When I run an ncgen on the above file, I get the following error: "Undefined or 
forward referenced enum constant:"
What does this mean and how can I fix it?

Thanks,
Ajay
  • 2013 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: