/** * Make a dataset with the file * * @return dataset */ private RaobDataSet doMakeRaobDataSet() { SoundingAdapter adapter = null; try { adapter = new NetcdfSoundingAdapter(file); } catch (Exception ill) { } if (adapter == null) { try { adapter = new CMASoundingAdapter(file); } catch (Exception exc) { LogUtil.logException("Reading sounding:" + file, exc); return null; } } if (adapter == null) { throw new IllegalArgumentException("Could not open sounding file:" + file); } SoundingOb[] obs = adapter.getSoundingObs(); return new RaobDataSet(adapter, Misc.toList(obs)); }