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

Opening multiple wrfout files as a single dataset #216

Open
Murk89 opened this issue Jan 7, 2022 · 1 comment
Open

Opening multiple wrfout files as a single dataset #216

Murk89 opened this issue Jan 7, 2022 · 1 comment

Comments

@Murk89
Copy link

Murk89 commented Jan 7, 2022

Hi,

I am trying to concatenate my wrfout files with salem and it is generating this error:
OSError: [Errno -101] NetCDF: HDF error: b'F:\rcp4.5\D02-2090-2100\wrfout_d02_2099-02-06_00_00_00.nc'

The files concatenate well with xarray, but I wanted to try with salem as it is way easier to deal with WRF projection using salem.
Would appreciate any help.

My code is:
import xarray as xr
import pandas as pd
import numpy as np
import salem
import dask
ds=salem.open_mf_wrf_dataset("F:\\rcp4.5\\D02-2090-2100\\*.nc", chunks={'Time':1},compat='no_conflicts', preprocess=None)

@fmaussion
Copy link
Owner

These kinds of errors are very difficult to diagnose, sorry.

It if works with xarray, you should still be able to use pure xarray to concatenate, and then use the salem accessor to get access to the projection information: https://salem.readthedocs.io/en/stable/xarray_acc.html

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