[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDFJava #UMK-286303]: Incorrect handling of string array?



Thanks Paul, Im working on a fix, probably wont be able to get it tested and 
out the door for another week. ill ping you when its ready. John

> John, This file was created using ncgen (netcdf library version 4.2.1.1)
> with the "-k 4" option from the CDL attached. The values for weight and
> max_weight were then inserted using a python script but the jetways
> variable was unchanged from the CDL. Paul.
> 
> 
> 
> 
> 
> 
> 
> 
> address@hidden> wrote:
> 
> > Hi Paul:
> >
> > How was this file created? netcdf-4 library? ifso, do you know what
> > version?
> >
> > John
> >
> > > File attached.
> > >
> > >
> > > address@hidden> wrote:
> > >
> > > > hi paul:
> > > >
> > > > can you send us the file?
> > > >
> > > > John
> > > >
> > > > > I have file that can be dumped correctly using the 'C" ncdump utility
> > > > note
> > > > > the "jetways" variable, i.e.:
> > > > >
> > > > >
> > > > > > ncdump -h traffic_weights.ncf
> > > > > netcdf traffic_weights {
> > > > > dimensions:
> > > > > jetways = 1209 ;
> > > > > hours = 24 ;
> > > > > days = 7 ;
> > > > > jetwaylen = 7 ;
> > > > > variables:
> > > > > float weight(days, hours, jetways) ;
> > > > > weight:long_name = "traffic weighting" ;
> > > > > weight:_FillValue = -1.f ;
> > > > > weight:valid_range = 0.f, 2000.f ;
> > > > > float max_weight(jetways) ;
> > > > > max_weight:long_name = "maximum traffic weighting for any
> > > > > day/hour" ;
> > > > > max_weight:_FillValue = -1.f ;
> > > > > max_weight:valid_range = 0.f, 2000.f ;
> > > > > char jetways(jetways, jetwaylen) ;
> > > > > jetways:long_name = "jetway segment identifier" ;
> > > > >
> > > > > // global attributes:
> > > > > :title = "INSITE traffic weighting" ;
> > > > > :institution = "Forecast Impact and Quality Assessment
> > > > > Section : GSD/ESRL/NOAA : http://esrl.noaa.gov/fiqas/"; ;
> > > > > :source = "INSITE" ;
> > > > > :version = "FIQAS 1.1" ;
> > > > > }
> > > > >
> > > > > But when I use the ToolsUI the viewer, ncdump, etc tabs give me:
> > > > >
> > > > > netcdf traffic_weights.ncf {
> > > > > dimensions:
> > > > > hours = 24;
> > > > > days = 7;
> > > > > jetwaylen = 7;
> > > > > jetways = 1209;
> > > > > variables:
> > > > > float weight(days=7, hours=24, jetways=1209);
> > > > > :long_name = "traffic weighting";
> > > > > :_FillValue = -1.0f; // float
> > > > > :valid_range = 0.0f, 2000.0f; // float
> > > > > float max_weight(jetways=1209);
> > > > > :long_name = "maximum traffic weighting for any day/hour";
> > > > > :_FillValue = -1.0f; // float
> > > > > :valid_range = 0.0f, 2000.0f; // float
> > > > > char jetways(jetways=1209);
> > > > > :_Netcdf4Coordinates = 0, 3; // int
> > > > > :long_name = "jetway segment identifier";
> > > > >
> > > > > :title = "INSITE traffic weighting";
> > > > > :institution = "Forecast Impact and Quality Assessment Section :
> > > > > GSD/ESRL/NOAA : http://esrl.noaa.gov/fiqas/";;
> > > > > :source = "INSITE";
> > > > > :version = "FIQAS 1.1";
> > > > > }
> > > > >
> > > > >
> > > > > The Java NetCDF implementation seems to incorrectly handle the
> > "jetways"
> > > > > variable and not find the second dimension (string length in this
> > > > > instance).
> > > > >
> > > > > Paul.
> > > > >
> > > > >
> > > > > --
> > > > > Paul Hamer
> > > > >
> > > > > NOAA Earth System Research Laboratory (ESRL)
> > > > > Global Systems Division (GSD)
> > > > > 325 Broadway R/GS5
> > > > > Boulder, CO 80305-3328
> > > > >
> > > > > phone : 303.497.6342
> > > > >
> > > > >
> > > >
> > > >
> > > > Ticket Details
> > > > ===================
> > > > Ticket ID: UMK-286303
> > > > Department: Support netCDF Java
> > > > Priority: Normal
> > > > Status: Open
> > > >
> > > >
> > >
> > >
> > > --
> > > Paul Hamer
> > >
> > > NOAA Earth System Research Laboratory (ESRL)
> > > Global Systems Division (GSD)
> > > 325 Broadway R/GS5
> > > Boulder, CO 80305-3328
> > >
> > > phone : 303.497.6342
> > >
> > >
> >
> >
> > Ticket Details
> > ===================
> > Ticket ID: UMK-286303
> > Department: Support netCDF Java
> > Priority: Normal
> > Status: Open
> >
> >
> 
> 
> --
> Paul Hamer
> 
> NOAA Earth System Research Laboratory (ESRL)
> Global Systems Division (GSD)
> 325 Broadway R/GS5
> Boulder, CO 80305-3328
> 
> phone : 303.497.6342
> 
> 


Ticket Details
===================
Ticket ID: UMK-286303
Department: Support netCDF Java
Priority: Normal
Status: Open


NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.