[ncl-talk] WRF_pcp_1.ncl - contouring precip and terrain over map

Bill Ladwig ladwig at ucar.edu
Thu Oct 27 09:51:07 MDT 2016


XLAT_M, XLONG_M don't actually exist in a typical WRF output file, it's
just XLAT and XLONG for the mass grid (XLAT_U for the u-staggering, XLAT_V
for the v-staggering).  However, the metgrid output 'met_em' files use
XLAT_M and XLONG_M for the mass grid, and some of the WRF algorithms fall
back to looking for XLAT_M when it can't find XLAT, thinking it might be a
'met_em' file instead. This is probably why we're seeing the missing XLAT_M
error.  In any case, combining the two files together should fix it, as
long as they didn't remove anything else that the WRF algorithms are
looking for.

Hope this helps,

Bill

On Wed, Oct 26, 2016 at 5:04 PM, Dennis Shea <shea at ucar.edu> wrote:

> Hello,
>
> Actually, I'm not sure how the script you sent ever got to the point where
> it was doing contouring. There were a number of errors.
>
> I am attaching a script that gets you close. Please look carefully at it.
> Also, please use 'printVarSummary' and 'printMinMax' frequently when
> developing a script.
>
> --
> The attached script fails because the WRF software (written by WRF [
> wrfhelp at ucar.edu]) is looking for XLAT_M and XLONG_M and they are not
> present ... on either file.
>
> ---
> atal:["Execute.c":132]:variable (XLAT_M) is not in file
> (./wrf2d_d01_2010-01-10_04:00:00)
> fatal:["Execute.c":6316]:variable (XLAT_M) is not in file (in_file)
> fatal:["Execute.c":8575]:Execute: Error occurred at or near line 4530 in
> file /Users/shea/devel/ncl/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl
>
> fatal:["Execute.c":8575]:Execute: Error occurred at or near line 4619 in
> file /Users/shea/devel/ncl/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl
>
> fatal:["Execute.c":8575]:Execute: Error occurred at or near line 4702 in
> file /Users/shea/devel/ncl/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl
>
> fatal:["Execute.c":8575]:Execute: Error occurred at or near line 261 in
> file WRF_precip.ncl_test
>
> ===
> A person who knows WRF sent me the following:
>
> "They pulled the XLAT, XLONG, etc coordinate variables out of their
> wrf2d_d01_2010-01-10_04:00:00 file, so it's not really a WRF file anymore.
> They'll need to glue back in the variables from wrfout_conus_constants.nc
> before you can count on the stuff in WRFUserARW.ncl to work.  That also
> assumes they didn't remove other things that the script is expecting.  I'm
> not familiar with wrf-hydro, is that how it normally works to split the
> data up?"
>
> ===
> I did think the XLAT, XLONG on the conus file should be XLAT_M and XLONG_M
> giventhe file has XLAT_{U,V} and XLONG_{U,V}. Actually, the XLAT_M, XLONG_M
> should be on the wrf2d file (I think)
>
> Good luck
>
>
> On Wed, Oct 26, 2016 at 9:36 AM, Juris Almonte <Juris.Almonte at umanitoba.ca
> > wrote:
>
>> Hi NCL talk,
>>
>> I am using the script WRF_pcp_1.ncl which contours precipitation and
>> terrain and overlays them using wrf_map_overlays.  I am running NCL V 6.3.
>>
>> Unfortunately I receive the following fatal errors:
>> fatal:ContourPlotPreDraw: ARSCAM/ARPRAM - ALGORITHM FAILURE
>> fatal:ContourPlotDraw: draw error
>> fatal:PlotManagerPreDraw: error in plot pre-draw
>> fatal:_NhlPlotManagerDraw: PreDraw error
>>
>> I’ve also tried using “RasterFill” instead of “AreaFill”, as recommended
>> browsing through previous questions, however topography was not being
>> contoured properly.
>>
>> I have attached my script.  The two files listed when using systemfunc
>> include one file with the WRF 2d data and another with the WRF constants
>> (XLAT, XLONG, etc).
>>
>> Any suggestions please?
>>
>> Thanks,
>>
>> Juris
>> M.Sc. student
>> University of Manitoba
>>
>>
>> _______________________________________________
>> ncl-talk mailing list
>> ncl-talk at ucar.edu
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>
>>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20161027/66d25ddc/attachment.html 


More information about the ncl-talk mailing list