Git Product home page Git Product logo

Comments (4)

d70-t avatar d70-t commented on May 31, 2024

I've seen something like this before. I think this was related to variables which occur only in a single message (e.g. a single non-time-varying horizontal field). 2899eac is probably what you need. It's included in the current main, but unfortunately the latest PyPi release is one commit earlier 😬.

  • @guidocioni can you try with the latest main version?
  • @lkluft do you think we could get some new release?

from gribscan.

guidocioni avatar guidocioni commented on May 31, 2024

I've seen something like this before. I think this was related to variables which occur only in a single message (e.g. a single non-time-varying horizontal field). 2899eac is probably what you need. It's included in the current main, but unfortunately the latest PyPi release is one commit earlier 😬.

  • @guidocioni can you try with the latest main version?
  • @lkluft do you think we could get some new release?

Let me try again and I'll get back to you.

from gribscan.

guidocioni avatar guidocioni commented on May 31, 2024

Hey, so with the correction that you posted it seems to work, albeit the first step being slower.

For the second step I had to manually create a folder dataset.json, because otherwise it was complaining

Traceback (most recent call last):
  File "/home/ekman/miniconda3/envs/models/bin/gribscan-build", line 8, in <module>
    sys.exit(build_dataset())
  File "/home/ekman/miniconda3/envs/models/lib/python3.10/site-packages/gribscan/tools.py", line 32, in build_dataset
    with open(f"{args.output}/{dataset}.json", "w") as indexfile:
FileNotFoundError: [Errno 2] No such file or directory: 'dataset.json/atm2d.json'

After creating the folder it wrote a json file dataset.json/atm2d.json.
I'm not sure if I'm doing things correctly because I imagine you would have already included a check to see if that folder is existing or not...so it smells like I'm using one of the parameters wrong.

Anyhoe...when I tried to load into xarray

ds = xr.open_zarr("reference::/home/ekman/ssd/guido/ecmwf-ens/dataset.json/atm2d.json", consolidated=False)

Then I get a dataset with collapsed dimensions.
Screenshot 2022-09-02 at 14 08 53

Again, sorry if I'm doing something wrong: zarr is kind of new to me.

from gribscan.

trackow avatar trackow commented on May 31, 2024

This looks exactly like what I would expect. I also normally create the folder dataset.json or json.dir myself (the one you give with -o) before running the gribscan-build command.

from gribscan.

Related Issues (13)

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.