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

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



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