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

[netCDFJava #TXD-147542]: Need a help!



google "convert python code to java"

> Hello,
> 
> I need your help in a code java using netcdf.
> 
> i want to transform a python code to java; this code contains a
> compoundType.
> 
> I don't know how to create compound type in java.
> 
> i have the working code in Python:
> ncfile is a netcdf file variable..
> 
> Code:
> 
> ncfile.createDimension('
> number_of_contour_observations', 0)
> front_contour = np.dtype([('time_observation','S1',25),('contour','S1',18)])
> front_contour_t = ncfile.createCompoundType(front_contour,'front_contour')
> tobss = fire.GetDateTimeObsContours()
> front_contours =  ncfile.createVariable
> ('front_contours',front_contour_t,'number_of_contour_observations')
> 
> thanks
> 
> 
> --
> ============================
> 
> Bahaa NADER HANNA
> Doctorant en Informatique
> Faculté des Sciences et Techniques
> Université de Corse
> Bat 018, Quartier Grimaldi
> BP 52, 20250 Corte
> Email : address@hidden
> Tel.    : + 33 (0)6 77 20 52 11
> 
> ============================
> 
> 


Ticket Details
===================
Ticket ID: TXD-147542
Department: Support netCDF Java
Priority: Normal
Status: Closed