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

bz2直接读取问题 #145

Open
hehuan710 opened this issue Sep 3, 2022 · 1 comment
Open

bz2直接读取问题 #145

hehuan710 opened this issue Sep 3, 2022 · 1 comment

Comments

@hehuan710
Copy link

请问可以直接读取bz2中的grib文件吗

@liucouhua
Copy link
Collaborator

用meteva直接读取是不行的,建议用一个脚本先解压再读取。meteva中读取grib数据时采用了xarray.open_dataset函数来读取数据内容,再转换了格式,目前这个函数是接受文件名,而不是字节流,所以没法用meteva中的read_griddata_from_bz2_file来边解压边读取

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