We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpIntegration › NetCDF in Processing
Page Index Toggle Pages: 1
NetCDF in Processing (Read 1121 times)
NetCDF in Processing
Feb 22nd, 2006, 7:32am
 
Hi,

I was wondering if anyone had any experience using NetCDF Data
sets in processing.

Thanks
Yashas.
Re: NetCDF in Processing
Reply #1 - May 24th, 2006, 7:18pm
 
I'm trying to figure this out also. There's a java netCDF library to be had...

http://www.unidata.ucar.edu/software/netcdf-java/

but after installing it in the Code folder of my sketch, I'm still having trouble. Here's my test program:


import ucar.*;
import java.io.IOException;

void setup() {
 try {
   NetcdfFile nc = NetcdfFile.open("/Users/neil/Desktop/testfile.nc");
   nc.close();
 } catch(IOException ioe) {}
}

and here's the error I get:

Exception in thread "Thread-2" java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
at ucar.nc2.NetcdfFile.<clinit>(NetcdfFile.java:55)

can someone translate this? What exactly is it looking for that it can't find?

thanks,
neil



Re: NetCDF in Processing
Reply #2 - May 29th, 2006, 8:38pm
 
update: I solved the problem above by downloading the slf4j library (not that I have any idea what it does) and adding

import org.slf4j.LoggerFactory;

this makes the netcdf library happy, and I got processing to read and display a netcdf variable. yashas, are you still working on this?
Page Index Toggle Pages: 1