public void open(ucar.unidata.io.RandomAccessFile raf, ucar.nc2.NetcdfFile ncfile, ucar.nc2.util.CancelTask cancelTask) throws IOException { super.open(raf, ncfile, cancelTask); this.ncfile = ncfile; String location = raf.getLocation(); if (!location.startsWith("http:")) { File file = new File(location); if (file.exists()) lastModified = file.lastModified(); } // its a netcdf-3 file raf.order(RandomAccessFile.BIG_ENDIAN); header = new N3header(); header.read(raf, ncfile, null); // read header here //numrecs = header.numrecs; //recsize = header.recsize; //recStart = header.recStart; _open(raf); ncfile.finish(); }
@Override public void open(ucar.unidata.io.RandomAccessFile raf, ucar.nc2.NetcdfFile ncfile, ucar.nc2.util.CancelTask cancelTask) throws IOException { super.open(raf, ncfile, cancelTask); String location = raf.getLocation(); if (!location.startsWith("http:")) { File file = new File(location); if (file.exists()) lastModified = file.lastModified(); } // its a netcdf-3 file raf.order(RandomAccessFile.BIG_ENDIAN); header = new N3header(); header.read(raf, ncfile, null); // read header here //numrecs = header.numrecs; //recsize = header.recsize; //recStart = header.recStart; _open(raf); ncfile.finish(); }
@Override public void open(ucar.unidata.io.RandomAccessFile raf, ucar.nc2.NetcdfFile ncfile, ucar.nc2.util.CancelTask cancelTask) throws IOException { super.open(raf, ncfile, cancelTask); this.ncfile = ncfile; String location = raf.getLocation(); if (!location.startsWith("http:")) { File file = new File(location); if (file.exists()) lastModified = file.lastModified(); } // its a netcdf-3 file raf.order(RandomAccessFile.BIG_ENDIAN); header = new N3header(); header.read(raf, ncfile, null); // read header here //numrecs = header.numrecs; //recsize = header.recsize; //recStart = header.recStart; _open(raf); ncfile.finish(); }