public static NetcdfFile openInMemory ( URI uri ) throws IOException { URL url = uri . toURL ( ) ; byte [ ] contents = IO . readContentsToByteArray ( url . openStream ( ) ) ; return openInMemory ( uri . toString ( ) , contents ) ; }
Read a remote CDM file into memory . All reads are then done from memory .