<div dir="ltr"><div>Hello,<br><br></div><div>I'm a grad student, attempting to plot some WRF 2D (surface) wind barbs/vectors, using the NCAR RDA CONUS dataset. <a href="https://rda.ucar.edu/datasets/ds612.0/#access">https://rda.ucar.edu/datasets/ds612.0/#access</a><br><br></div><div>I have had multiple issues in doing this, though, to which I've tried a few solutions. I'm really kind of at a loss, so coming here is my last resort. Not even sure if this is the right email to be contacting.<br></div><div><br></div><div>The problem seems to stem from the fact that the WRF CONUS data is not organized like typical WRF output. The 2D variables are all their own separate netCDF file, lumped into 3 month periods. So for example, I have a "U" file and a "V" file for October 1, 2012 to December 31, 2012.<br><br></div><div>Using ncl filedump shows the "U" variable (in this example), and all the associated coordinate variables (ie: XLON, XLAT, etc); I've attached these as screenshots. There's also a constants file on the archive which I think shares some redundancy with these.<br><br></div><div>The error that I end up with when trying to plot barbs using <b>gsn_csm_vector_map</b> is:</div><div><br></div><div>"(0)    check_for_y_lat_coord: Warning: Data either does not contain<br>(0)    a valid latitude coordinate array or doesn't contain one at all.<br>(0)    A valid latitude coordinate array should have a 'units'<br>(0)    attribute equal to one of the following values: <br>(0)        'degrees_north' 'degrees-north' 'degree_north' 'degrees north' 'degrees_N' 'Degrees_north' 'degree_N' 'degreeN' 'degreesN' 'deg north'<br>(0)    check_for_lon_coord: Warning: Data either does not contain<br>(0)    a valid longitude coordinate array or doesn't contain one at all.<br>(0)    A valid longitude coordinate array should have a 'units'<br>(0)    attribute equal to one of the following values: <br>(0)        'degrees_east' 'degrees-east' 'degree_east' 'degrees east' 'degrees_E' 'Degrees_east' 'degree_E' 'degreeE' 'degreesE' 'deg east'<br>fatal:VectorFieldInitialize: dimensions of vfUDataArray and vfVDataArray are inconsistent<br>fatal:Unable to initialize layer-Can't Create<br>fatal:Unable to access object with id:-4<br>fatal:Unable to access object with id:-4<br>warning:Unable to add DataItem "(null)" to DataList "vcVectorFieldData"<br>fatal:CompileDataList:DataList has no valid members<br>fatal:PID #-4 can't be found in NhlSetValues"<br><br></div><div>Which basically says that it doesn't know what coordinates to use, which I suspect is because the lat/lon are stored in a separate variable.<br><br><br></div><div>I tried to use <b>wrf_vector</b>, and it now has an issue with the dimensions:<br></div><div><br></div><div>fatal:VectorFieldInitialize: dimensions of vfUDataArray and vfVDataArray are inconsistent<br>fatal:Unable to initialize layer-Can't Create<br>fatal:Unable to access object with id:-4<br>fatal:Unable to access object with id:-4<br>warning:Unable to add DataItem "(null)" to DataList "vcVectorFieldData"<br>fatal:CompileDataList:DataList has no valid members<br></div><div><br></div><div>The dimensions are the same in both files, however in the U file, the East-West says "stag" (staggered, I'm guessing), while in the V file, North-South is stag. I don't know if that makes a difference, but the actual numbers are the same.<br><br></div><div>So this mostly strikes me as an excercise in getting these plotting routines to recognize the coordinate variables that are attendant to the wind variable within the netCDF file. How could I go about doing this?<br></div><div><br></div><div>If it helps, I'm running NCL 6.4.0 on CentOS 64 bit v6.8.<br></div><div><br></div><div><br></div><div>I've attached screenshots of the filedump for the "U" netCDF file and my two little test scripts.<br><br><br></div><div>I apologize for the lengthy email, and/or if this is trivial, I'm not particularly good at this. Any and all help is appreciated.<br><br><br><br></div><div>Cheers<br></div></div>