alanpaulkwan@gmail_com
New Member
I apologize if this is the wrong place for this.I downloaded a .OIS file from here: http://www.ngdc.noaa.gov/next-web/cart.htmlI then used the Java library (code below). It complains I did not have a valid .CDM file. What's wrong with what I am doing? DO I need to register the IOSP explicitly?Edit: Reading it says that if the IOSP is part of the .jar file (which DMSP is) it should automatically be registered. So, I'm not sure what exactly to say other than it's not clear to me what's missing. Another thing I'd very much like to know is if I wanted to output the contents in a simple manner, how would I do that? Does anyone have simple examples? I just kind of to dump the records of the file into something like netCDF or heck even a CSV. Here is an example of an unzipped file.https://www.dropbox.com/s/96d0m8fv1dkyfdo/F12199501290143.OIS?dl=0 package processOISexample;import ucar.nc2.NetcdfFile;import ucar.nc2.iosp.*;publicclass main {publicstaticvoid main(String[] args)throwsIOException{// Identify the files to runStrings="C:/Users/Alan/Desktop/sampledata/F12199501290001.OIS";try{ NetcdfFile ncfile1 =NetcdfFile.open(s); ncfile1.close();}finally{}}}