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

XC.meta doesn't exist in output #283

Closed
yz3062 opened this issue Aug 27, 2021 · 2 comments
Closed

XC.meta doesn't exist in output #283

yz3062 opened this issue Aug 27, 2021 · 2 comments

Comments

@yz3062
Copy link

yz3062 commented Aug 27, 2021

I'm trying to read the run results of the MIT-gcm tutorial example "verification/tutorial_global_oce_biogeo/" (no modification). When I tried to use open_mdsdataset(), it returned the error:
OSError: Couldn't find XC.meta file to infer nx and ny.

Turns out there is not XC.meta file in the output folder. Instead, there are four separate files named "XC.001.001.meta", "XC.001.002.meta", "XC.002.001.meta", and "XC.002.002.meta". I paste below the content of the files. Is there a way to work around the issue and read the dimensions correctly?

"XC.001.001.meta"
simulation = { 'Tutorial Biogeo' }; nDims = [ 2 ]; dimList = [ 128, 1, 64, 64, 1, 32 ]; dataprec = [ 'float32' ]; nrecords = [ 1 ];

"XC.001.002.meta"
simulation = { 'Tutorial Biogeo' }; nDims = [ 2 ]; dimList = [ 128, 1, 64, 64, 33, 64 ]; dataprec = [ 'float32' ]; nrecords = [ 1 ];

"XC.002.001.meta"
simulation = { 'Tutorial Biogeo' }; nDims = [ 2 ]; dimList = [ 128, 65, 128, 64, 1, 32 ]; dataprec = [ 'float32' ]; nrecords = [ 1 ];

"XC.002.002.meta"
simulation = { 'Tutorial Biogeo' }; nDims = [ 2 ]; dimList = [ 128, 65, 128, 64, 33, 64 ]; dataprec = [ 'float32' ]; nrecords = [ 1 ];

@rabernat
Copy link
Member

The problem is that your tutorial was run with multi-tile output. Xmitgcm can't read those files (see #28). Try rerunning your simulation with singlecpuio=.TRUE. in data.

@yz3062
Copy link
Author

yz3062 commented Aug 27, 2021

Thanks Ryan. I tried globalFiles=.TRUE., which should be equivalent to your solution, and that solves the problem.

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

2 participants