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

The binary files time cannot be read correctly due to int32 #334

Open
mini-DONG opened this issue Dec 15, 2023 · 0 comments
Open

The binary files time cannot be read correctly due to int32 #334

mini-DONG opened this issue Dec 15, 2023 · 0 comments

Comments

@mini-DONG
Copy link

Hi!
xmitgcm can read MITgcm mds binary files fastly, and I use it a lot.
But I meet a problem recently, I run the MITgcm model for 100 years. Then I used xmitgcm to read the model output like:

from xmitgcm import open_mdsdataset
ds = open_mdsdataset(
                     r'G:\exp\ctrl',
                     r'G:\exp',
                     iters=[8953200],
                     delta_t=240)

I find the time is negative:
1702626570349
There is no problem with the output before this moment.
I noticed that the iter use the int32 which cover -2,147,483,647~2,147,483,647. But the 8953200*240=2148768000 which is greater than the maximun of int32 .
So, may be we need the int64 to solve the problem. And what should I do to read the time correctly?

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

1 participant