GithubHelp home page GithubHelp logo

PolarStereographicGridDefinition.EnumerateGridPoints Not Implemented Exception - when reader.GetDatasetValues is called about ngrib HOT 5 OPEN

nmangue avatar nmangue commented on August 30, 2024
PolarStereographicGridDefinition.EnumerateGridPoints Not Implemented Exception - when reader.GetDatasetValues is called

from ngrib.

Comments (5)

nmangue avatar nmangue commented on August 30, 2024

The way you read the data is ok. However there are many ways to encode data values in a grib file. It seems that the template used by your dataset is not yet supported

Could you provide the full stack trace and the value of DataSet.DataRepresentationSection.TemplateNumber ?
If possible, could you also share the file you are reading ?

from ngrib.

AquaNerd avatar AquaNerd commented on August 30, 2024

@nmangue thanks for getting back to me so quickly. Here is where I am pulling the grib2 files from. https://nomads.ncep.noaa.gov/pub/data/nccf/com/pcpanl/prod/

An example file out of those are https://nomads.ncep.noaa.gov/pub/data/nccf/com/pcpanl/prod/pcpanl.20220211/st4_conus.2022021114.01h.grb2

from ngrib.

AquaNerd avatar AquaNerd commented on August 30, 2024

@nmangue I am finding out that the original not implemented exception is due to the contents of the file include using the polarStereographicGridDefinition template which here is not yet implemented.

public override IEnumerable<Coordinate> EnumerateGridPoints() => throw new NotImplementedException();

I assume that was put there as a placeholder for the point when you ran into a need to implement it. As in, you didn't have example data to use in order to set it up. Correct?

from ngrib.

nmangue avatar nmangue commented on August 30, 2024

That is correct !
Would you try to implement this functionality ? You can use the NetCDF Java implementation as a reference : Grib2Gds.java@983

from ngrib.

AquaNerd avatar AquaNerd commented on August 30, 2024

@nmangue in due time. But for my use case, I am limited on time. I guess I will keep an eye out if you or someone else beats me to it.

That is correct ! Would you try to implement this functionality ? You can use the NetCDF Java implementation as a reference : Grib2Gds.java@983

Also there is a bit more to it then just copy pasting into c# code. I have not dug into it far enough to determine what is comparable to the projection interface and AbstractProjection base class that is used for the stereographic projection.

from ngrib.

Related Issues (8)

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.