Giter VIP home page Giter VIP logo

Comments (3)

JohnLCaron avatar JohnLCaron commented on July 2, 2024
  1. NetcdfFile.open will write disk indices, but never reads all data into
    memory at once. So normal netcdf calls should work just fine no matter how
    big the data file.

  2. use Grib1RecordScanner or Grib2RecordScanner for one record at a time
    processing.

John

On Thu, Jan 8, 2015 at 8:28 AM, Harsha Veeramachaneni <
[email protected]> wrote:

I would like to be able to sequentially read one records from a large
grib2 file (too large to read all at once) and extract data for a
particular variable. I use NetcdfFile.openInMemory(String, byte []) to do
that. However, because even for small records the call writes out an index
file to disk reading the whole file takes hours.

Is there any way to disable the index file creation? Or any way to
circumvent openInMemory() by using some low-level methods?


Reply to this email directly or view it on GitHub
#93.

from thredds.

innuo avatar innuo commented on July 2, 2024

Thanks, John. Actually I am trying to process all the records in parallel using spark. The disk reads and writes add a lot of overhead to processing the small records.

Thanks for the suggestion about Grib2RecordScanner. Are there any helper classes that you can recommend to look at that make it easy to parse the Grib2Record objects and extract variables, x, y, time and values?

from thredds.

JohnLCaron avatar JohnLCaron commented on July 2, 2024

we dont officialy support those low-level APIs, so you have to look at the
source, but it should be straightforward.

Just look for other examples of use of RecordScanners, eg GribIndex.

On Fri, Jan 9, 2015 at 2:19 PM, Harsha Veeramachaneni <
[email protected]> wrote:

Thanks, John. Actually I am trying to process all the records in parallel
using spark. The disk reads and writes add a lot of overhead to processing
the small records.

Thanks for the suggestion about Grib2RecordScanner. Are there any helper
classes that you can recommend to look at that make it easy to parse the
Grib2Record objects and extract variables, x, y, time and values?


Reply to this email directly or view it on GitHub
#93 (comment).

from thredds.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.