NCAR / wrf-python

A collection of diagnostic and interpolation routines for use with output from the Weather Research and Forecasting (WRF-ARW) Model.
https://wrf-python.readthedocs.io
Apache License 2.0
392 stars 149 forks source link

WRF-Python Install - Mac M3 #235

Open wreed1989 opened 2 months ago

wreed1989 commented 2 months ago

Hello!

I'm wanting to set-up and run WRF on my M3 (if possible) and reading through the documentation it sounds like the easiest way to do this is via 'conda forge'. However, I'm running into an issue when I attempt to install the program (see below).

Is the platform not quite suitable with an M3 chip or are there additional instructions that need to be done to ensure the package and its dependencies are installed appropriately?

I appreciate the assistance!

############################################################################################### (WRF-Python) Billiam@Williams-MacBook-Pro ~ % conda install -c conda-forge wrf-python Channels:

PackagesNotFoundError: The following packages are not available from current channels:

Current channels:

To search for alternate channels that may provide the conda package you're looking for, navigate to

https://anaconda.org

and use the search bar at the top of the page. ###############################################################################################

erogluorhan commented 2 months ago

Hi, thanks very much for reaching out! Currently, WRF-Python shouldn't have support for Apple's ARM-based chips (M1-3), but we'd like to look into this as soon as we can. I am assigning this to myself and will keep you updated.

phalucy commented 2 months ago

you can install via source code. I have successfully installed it.

wreed1989 commented 2 months ago

Did you happen to create a workflow when you did that? I'm guessing not but if you did, I'd love to see it to help me install it.

phalucy commented 2 months ago

Sorry, I didn't. I just followed the steps showed in the online document using gfortran/gcc.

Only one issue should be aware. Although I successfully installed the wrf-python with openmpi option on my M3 macbook pro and most functions works fine , but it fails when I tried to use mpi functions. I'm not familiar with the options/compilers, but it maybe related to the M series chips (arm64) only allow mcmodel=small.

erogluorhan commented 2 months ago

@wreed1989 , please see this from our team to get a working source-code build for yourself. If you encounter issues, we are here for help!

FYI: We will be looking into creating a conda release for this soon so that you can install the package from conda-forge, too, in the future.

wreed1989 commented 2 months ago

@erogluorhan Appreciate you sending that over. I'm a little unfamiliar with installing via source code so I'll likely have to wait until the conda-forge option is available - or until I can track down additional instructions on how to install via source code.

I'm looking forward to the conda-forge release!

erogluorhan commented 1 month ago

Thanks @wreed1989 ! We are currently working on the conda release and hoping to get it soon!

wreed1989 commented 1 month ago

Please let me know when it's ready to roll out! I appreciate it!