Re: [netcdf-java] (External):Re: NetCDF All Jar

Satyakam,

I also noticed this; it appears to be a harmless warning that the logger was not initialised. I ignored it.

If this message concerns you, I noticed that the toolsUI jar (which is a superset of the netcdfAll jar) does not have this warning, likely because it contains the slf4j implementation.

Kind  regards,
Ben.

On 30/07/17 12:30, Satyakam Acharya wrote:
Hi Ben,

Upon trying the below suggestion I get these errors listed here

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further 
details.

Thanks,
Satyakam
-----Original Message-----
From: Satyakam Acharya
Sent: Saturday, July 29, 2017 5:22 PM
To: Ben Caradoc-Davies <ben@xxxxxxxxxxxx>; netcdf-java@xxxxxxxxxxxxxxxx
Subject: RE: (External):Re: [netcdf-java] NetCDF All Jar

Hi Ben,

First of thanks a lot for your response.

We are converting all our input files in .csv format, for loading into our HDFS 
repository for further analysis purpose.

Types of extensions we are trying to convert to csv are as below

.op
.grb (version 1 and 2)
.nc
Netcdf

Can all these be handled by the jar ?

Thanks,
Satyakam



-----Original Message-----
From: Ben Caradoc-Davies [mailto:ben@xxxxxxxxxxxx]
Sent: Saturday, July 29, 2017 4:02 PM
To: Satyakam Acharya <Satyakam.Acharya@xxxxxxx>; netcdf-java@xxxxxxxxxxxxxxxx
Subject: (External):Re: [netcdf-java] NetCDF All Jar

Satyakam,

it appears that Grib2Dump was removed in 2013.

What output format do you want? The CDM utility "ncdump" also reads GRIB
files, or you could use "nccopy" to convert GRIB to NetCDF:
http://www.unidata.ucar.edu/software/thredds/v4.6/netcdf-java/reference/manPages.html

Dump to CDL:

java -Xmx1g -cp /path/to/netcdfAll-4.6.10.jar ucar.nc2.NCdumpW
data/grib2/ndfd.wmo -cdl > ndfd.cdl

Copy to NetCDF-3:

java -Xmx1g -cp /path/to/netcdfAll-4.6.10.jar ucar.nc2.write.Nccopy -i
data/grib2/ndfd.wmo -o ndfd.nc

Kind regards,
Ben.

On 30/07/17 02:56, Satyakam Acharya wrote:
Hi ,

I am new to Java and planning to use NetCDF to decode grib files.

I placed the jar in a folder and referring it for the same, but it errors out 
saying 'Could not find or load main class ucar.grib.grib2.Grib2Dump'.

Command issued is as below

CMD="java -cp <My CP>netcdfAl.jar ucar.grib.grib2.Grib2Dump data/grib2/ndfd.wmo > 
ndfd.dump"

Am I missing anything ?


Thanks ,
Satyakam Acharya

BI - Datawarehousing
Infosys Limited




_______________________________________________
NOTE: All exchanges posted to Unidata maintained email lists are
recorded in the Unidata inquiry tracking system and made publicly
available through the web.  Users who post to any of the lists we
maintain are reminded to remove any personal information that they
do not want to be made public.


netcdf-java mailing list
netcdf-java@xxxxxxxxxxxxxxxx
For list information or to unsubscribe, visit: 
http://www.unidata.ucar.edu/mailing_lists/



--
Ben Caradoc-Davies <ben@xxxxxxxxxxxx>
Director
Transient Software Limited <http://transient.nz/>
New Zealand



  • 2017 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdf-java archives: