anikfal / postwrf

Visualization and postprocessing of the WRF and ERA5 data
MIT License
54 stars 11 forks source link

postWRF error error on mac #37

Open fipoucat opened 8 months ago

fipoucat commented 8 months ago

I am trying postWRF on mac with ncl 6.6.2 but keep getting error:

================= PostWRF (Version 1.1) ===================== Run './postwrf.sh -h' to get help
In case of problems, please contact ah.nikfal@gmail.com


   CONTOUR PLOT                CONTOUR PLOT

ln: /Users/sarr/PostWRF-master/postwrf_wrfout_d01_2022-05-30_00:00:00: Cross-device link

wrfout_d01_2022-05-30_00:00:00 has been selected in the current directory.

Plotting contour maps ...

ls: /Users/sarr/PostWRF-master/postwrf_wrfout*: No such file or directory usage: basename string [suffix] basename [-a] [-s suffix] string [...]

Specify Time_Step(s) Between The Images (Default=1): Time_Step Has Been Set To 1

Specify The Method Of Drawing Contours (1 or 2) for rh: 1) Automatic 2) Manual

? 1

Contour Lines Will Be Set Automatically ...

Select a color pattern from the list below (a number from 1 to 10) for rh:: 1) Rainbow-start_from_blue 6) Red 2) Rainbow-start_from_red 7) Green 3) Rainbow-start_from_white 8) White..Yellow..Orange..Red 4) Blue..Red 9) White..Black 5) Blue 10) Black..White

? 1

Format Of The Images: 1, 2, 3, or 4? 1) x11 2) pdf 3) png 4) animated_gif

? 1

ls: postwrf_wrfout*: No such file or directory warning:_NclOpenFile: cannot open file </Users/sarr/PostWRF-master/missing>; No such file or directory

fatal:Subscript out of range, error in subscript #0 fatal:An error occurred reading fileatts fatal:["Execute.c":8637]:Execute: Error occurred at or near line 15 in file read_wrfouts.ncl

anikfal commented 8 months ago

First of all, please git pull or clone PostWRF to its newest version.

What is the output of echo $0 in your system? Is it bash? If not, please change your shell to bash and try again (you must not need this if you update PostWRF to the newest version).

Actually PostWRF has never been tested in Mac. However, since Mac uses almost the same shell as in Linux, there must not be such problems.

fipoucat commented 8 months ago

The output of echo $0 is indeed bash, I also used the clone version on Git Hub, but I am getting the same problem. Maybe the package not working on Mac?

anikfal commented 8 months ago

Technically PostWRF can be run on any systems based on Bash or supporting Bash.

I cannot give a helpful comment at the moment unless I work with it on a Mac system. Maybe there are some differences between the Bash scripts on Mac and Linux.

anikfal commented 8 months ago

By the way, please send me your namelist.wrf

fipoucat commented 8 months ago

Please find it attached.

On Fri, Feb 9, 2024 at 10:07 PM Amirhossein Nikfal @.***> wrote:

By the way, please send me your namelist.wrf

— Reply to this email directly, view it on GitHub https://github.com/anikfal/PostWRF/issues/37#issuecomment-1936667730, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAXY6LNGDVIWHOETHPHNI6TYS2MZBAVCNFSM6AAAAABC7KZW2WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZWGY3DONZTGA . You are receiving this because you authored the thread.Message ID: @.***>

anikfal commented 8 months ago

Are you sure you sent me the namelist? I don't think so.

fipoucat commented 8 months ago

You are right the name is wrong, attached the correct file.

On Sat, Feb 10, 2024 at 8:49 PM Amirhossein Nikfal @.***> wrote:

Are you sure you sent me the namelist? I don't think so.

— Reply to this email directly, view it on GitHub https://github.com/anikfal/PostWRF/issues/37#issuecomment-1937117259, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAXY6LKMDYWBRONE6EL6STLYS7MMZAVCNFSM6AAAAABC7KZW2WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZXGEYTOMRVHE . You are receiving this because you authored the thread.Message ID: @.***>

anikfal commented 8 months ago

There isn't any attachment. You can send the namelist directly by GitHub.

fipoucat commented 8 months ago

namelist.wrf.gz

anikfal commented 8 months ago

Your namelist works fine on Linux. I cannot comment about the problem, unless I directly investigate the issue on Mac.