anikfal / postwrf

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

error running postwrf (on Mac laptop) #41

Open fipoucat opened 6 months ago

fipoucat commented 6 months ago

I am doing a shaded plot from wrf output but after ncl is processing, it stops with an error message: ./modules/contourlvl.sh line 149 216700 killed

anikfal commented 6 months ago

Please send your namelist.wrf, as well as all messages displayed on the screen.

fipoucat commented 6 months ago

I suspect a memory issue, but below the screen output:

./postwrf.sh

================= 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

There are multiple wrf-files in the current directory:

1) wrfout_d02_2022-06-02_150000 2) wrfout_d03_2022-05-30_130000 3) wrfout_d03_2022-06-02_130000 4) wrfout_d03_2022-06-03_080000

Enter the number of the favored file: 1

wrfout_d02_2022-06-02_150000 has been selected

rev: stdin: 0: Invalid or incomplete multibyte or wide character Plotting contour maps ...

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

? 2

Contour Lines Min Value (press Enter for the best value): Got no input. Best Min value will be set automatically.

Contour Lines Max Value (press Enter for the best value): Got no input. Best Max value 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

? 2

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

? 2

Name of the Output File? (Press Enter for the default name): testrh Please wait. NCL is processing ...

./modules/contourlvl.sh: line 149: 246634 Killed ncl -nQ contourlvl.ncl namelist.wrf.gz

anikfal commented 6 months ago

Can you send the WRF file you tried to plot? I think your output may have some issue, or it may be related to hardware/memory. If the WRF file size is too big, you can send output.txt below: ncdump -h wrfout_d02_2022-06-02_15\:00\:00 > output.txt

fipoucat commented 6 months ago

I too think it is related to memory. I sent the problem I had on my Mac with PostWRF not working, I then installed a virtual Linux and installed PostWRF which is working. After the error with d02 (too large and outnc.txt attached), I can run the same namelist.wrf with domains 1 and 3 and it is working. The Mac laptop is a powerful machine but the virtual Linux is using limited memory.

anikfal commented 6 months ago

So you're using a Mac laptop. There was another issue mentioning this problem. I must directly try PostWRF on a Mac laptop to figure it out.

Edit: You can also try a WRF file with a size less that 2GB to see if the same problem happens. There are some limitations for the size of NetCDF data on some machines/configurations.