Scheduled Downtime
On Tuesday 24 October 2023 @ 5pm MT the forums will be in read only mode in preparation for the downtime. On Wednesday 25 October 2023 @ 5am MT, this website will be down for maintenance and expected to return online later in the morning.
Normal Operations
The forums are back online with normal operations. If you notice any issues or errors related to the forums, please reach out to help@ucar.edu

IOSP netCDF

 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{}}}
 
Top