Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

help in reading different dimensions of variables #6

Open
pomarc opened this issue Jan 5, 2017 · 6 comments
Open

help in reading different dimensions of variables #6

pomarc opened this issue Jan 5, 2017 · 6 comments

Comments

@pomarc
Copy link

pomarc commented Jan 5, 2017

Hello, thanks for the great module.
I must read some variables of the Geo2D type.
Each variable has 3 dimensions: Time, south_north, west_east.
e.g:

float MYVAR(Time=73, south_north=80, west_east=100);
  :units = "ppb vol";
  :long_name = "MYVAR";

how can I read each variable point? If I use reader.getDataVariable("MYVAR") I get a single array of 73 elements, which I suppose is a slice of the data.

Can you please post an example about how I can get the remaining data points?
thank you.

@maasencioh
Copy link
Member

Hello @pomarc, thanks for using our module! I think that's related with the issue #3, I'm still checking it out, I'm sorry for the delay

@oldbram
Copy link

oldbram commented Feb 23, 2017

Would also love to be able to read multiple dimensions with this library! I've made a fork of this project where I implemented some changes that enable me to read multiple dimensions (for my very specific case) but I would love to see a more generic solution as well :)

@maasencioh
Copy link
Member

Hello @pomarc, could you please test if you still have this issue?

@maka-io
Copy link

maka-io commented Mar 28, 2018

Hi @maasencioh , I'm also having a problem with this. If I pass in the variable name to getDataVariable() I only get back a single dim array and not a multi dim array.

Upon further inspection, the one slice of data doesn't actually look like it is correct:

Uploaded to the browser, one dimension array with strange data:
screen shot 2018-03-28 at 1 22 00 pm

Opened with Panoply (NASA):
screen shot 2018-03-28 at 1 23 06 pm

@maasencioh
Copy link
Member

Hello @maka-io, did you tried with the v0.3.1? can you share somehow your test file?

@maka-io
Copy link

maka-io commented Apr 16, 2018

Hi @maasencioh, I am using 0.3.1. I'm not at liberty to share the dataset, however, you should see a similar result with any such (HYCOM?) dataset.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants