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

replace cf with xarray to remove dependency on udunits2 #22

Open
ghost opened this issue May 10, 2021 · 2 comments
Open

replace cf with xarray to remove dependency on udunits2 #22

ghost opened this issue May 10, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@ghost
Copy link

ghost commented May 10, 2021

cf requires udunits2, which adds an extra non-Python dependency (udunits-bin) to installation

cf is currently used by SfluxDataset to read from disk to a Python object:


fields = cf.read(obj.resource, ignore_read_error=True)

To remove the reliance on udunits2, we should explore the possibility of using xarray here instead.

@ghost ghost added the enhancement New feature or request label May 10, 2021
@jreniel
Copy link
Member

jreniel commented Aug 14, 2021

Update: There are several additional issues with cf-python. We are planning on switching cf-python with xarray in the near-future, but it will have to wait because of some other priorities/time constraints. The workaround for the time being is to use conda to install esmpy.

conda install -c nesii -c conda-forge esmpy

This of course means you need to install pyschism in a conda environment which is unfortunate. But for now, we'll have to bite the bullet, because making the swith to xarray is not trivial.

@hb-9797
Copy link

hb-9797 commented Jan 20, 2024

Update: There are several additional issues with cf-python. We are planning on switching cf-python with xarray in the near-future, but it will have to wait because of some other priorities/time constraints. The workaround for the time being is to use conda to install esmpy.

conda install -c nesii -c conda-forge esmpy

This of course means you need to install pyschism in a conda environment which is unfortunate. But for now, we'll have to bite the bullet, because making the swith to xarray is not trivial.

Hello,I have the same problem and followed your answer "conda install -c nesii -c conda-forge esmpy" and successfully installed it in the pyschism environment, but still have the same error, why?

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

No branches or pull requests

2 participants