postwrf icon indicating copy to clipboard operation
postwrf copied to clipboard

Problem in domain plotting, based on Lambert projection

Open prakriti3896 opened this issue 11 months ago • 1 comments

I was trying to view/plot the domains using PostWRF but when I run ./postwrf.sh I get the following Error:

_PostWRF: Drawing the map of the model domain ...

Specify The Format Of The Images: 1, 2, or 3?

  1. x11
  2. pdf
  3. png #? 2

Specify The Output File Name (Press Enter for the default name): domains warning:MapSetTrans: map limits invalid - using maximal area fatal:Subscript out of range, error in subscript #0 fatal:An error occurred reading xf fatal:["Execute.c":8637]:Execute: Error occurred at or near line 3950 in file $NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl

fatal:["Execute.c":8637]:Execute: Error occurred at or near line 4165 in file $NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl

fatal:["Execute.c":8637]:Execute: Error occurred at or near line 4967 in file $NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl

fatal:["Execute.c":8637]:Execute: Error occurred at or near line 183 in file modules/domain.ncl

PostWRF: Drawing the map of domain finished._

  • The pdf generated does not have any plot, it does show some plotting which is wrong.
  • If I select the x11 option the display opens but shows no plot and after that it closes on its own.
  • I am able to plot domains using $ ncl util/plotgrids_new.ncl (NCL v6.6.2 is installed using miniconda3)

I am attaching my wps namelist, the plot generated by PostWRF and the plot generated by plotgrid.ncl . output_from_ncplot.pdf output_from_PostWRF.pdf namelist.wps.txt

prakriti3896 avatar Mar 11 '24 14:03 prakriti3896

PostWRF can plot the model domains if they are based on the Lambert projection. In the new versions, this problem will be handled to support other projections as well.

anikfal avatar Mar 11 '24 14:03 anikfal

Hello, I am experiencing the same error you are reporting and would like to ask how you solved this last problem when drawing “Mercator projections”?

XinzhuFang avatar May 25 '24 10:05 XinzhuFang

I was trying to view/plot the domains using PostWRF but when I run ./postwrf.sh I get the following Error:

_PostWRF: Drawing the map of the model domain ...

Specify The Format Of The Images: 1, 2, or 3?

  1. x11
  2. pdf
  3. png #? 2

Specify The Output File Name (Press Enter for the default name): domains warning:MapSetTrans: map limits invalid - using maximal area fatal:Subscript out of range, error in subscript #0 fatal:An error occurred reading xf fatal:["Execute.c":8637]:Execute: Error occurred at or near line 3950 in file $NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl

fatal:["Execute.c":8637]:Execute: Error occurred at or near line 4165 in file $NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl

fatal:["Execute.c":8637]:Execute: Error occurred at or near line 4967 in file $NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl

fatal:["Execute.c":8637]:Execute: Error occurred at or near line 183 in file modules/domain.ncl

PostWRF: Drawing the map of domain finished._

  • The pdf generated does not have any plot, it does show some plotting which is wrong.
  • If I select the x11 option the display opens but shows no plot and after that it closes on its own.
  • I am able to plot domains using $ ncl util/plotgrids_new.ncl (NCL v6.6.2 is installed using miniconda3)

I am attaching my wps namelist, the plot generated by PostWRF and the plot generated by plotgrid.ncl . output_from_ncplot.pdf output_from_PostWRF.pdf namelist.wps.txt

XinzhuFang avatar May 25 '24 10:05 XinzhuFang

Hi @XinzhuFang I am working on this issue. It will be probably solved next week.

anikfal avatar May 25 '24 11:05 anikfal

Hi,

The question about lambert and mercator projections is related only for plotting model domains and contour plot? I mean, when I extract data using DATA EXTRACTION (ON SURFACE), the wrfout file need to be in lambert projection? I'm sending a image to clarify my question.

Congrats for postwrf tool! contour-level-wrfout_d04

VladimirSobral avatar May 27 '24 13:05 VladimirSobral

Hi @VladimirSobral All wrfout files with any projection must be plotted by PostWRF without problems. However, the image you inserted looks weird. So for more investigation on your case, you can apply the command below on your wrfout_file and send out.nc to me: ncks -d Time,1,2 wrfout_file out.nc

anikfal avatar May 27 '24 14:05 anikfal

Hi anikfal

Thank you for your reply. Attached the file out.nc. Just to inform you about some information of my area: City's name: João Pessoa - Brazil Projection of shapefile: WGS 84 25s

out.zip

VladimirSobral avatar May 27 '24 14:05 VladimirSobral

@VladimirSobral It seems you have stored every time slot of the WRF output in a single file. So there is no Time variable in the file. This issue makes some problem for plotting the data.

anikfal avatar May 29 '24 05:05 anikfal

Try to plot the domains again. I updated it and it should be okay now. Before trying, git pull postwrf, or clone it again.

anikfal avatar Jun 23 '24 15:06 anikfal