[ncl-talk] Wind Barbs cross equator issue

Jianyu Liu jerry_leo at msn.com
Thu Jun 7 19:47:03 MDT 2018


Hi Dennis,


Thanks for the input.


  1.  If certain attributes were missing for the variables ?

Here are the output of printVarSummary


Variable: u2d
Type: double
Total Size: 8896512 bytes
            1112064 values
Number of Dimensions: 2
Dimensions and sizes:   [latitude | 1024] x [longitude | 1086]
Coordinates:
            latitude: [-5.6935..8.117001]
            longitude: [94.64..109.2875]
Number Of Attributes: 2
  time :        424321
  _FillValue :  -1073741824

Variable: v2d
Type: double
Total Size: 8896512 bytes
            1112064 values
Number of Dimensions: 2
Dimensions and sizes:   [latitude | 1024] x [longitude | 1086]
Coordinates:
            latitude: [-5.6935..8.117001]
            longitude: [94.64..109.2875]
Number Of Attributes: 2
  time :        424321
  _FillValue :  -1073741824

The vector was plotted like this

          vector = gsn_csm_vector(wks,u2d,v2d, opts)
2. Which sort of files I need to upload ?
a. nc data
b. script
c. the example plot

Appreciating your time

Regards

Jerry

________________________________
From: Dennis Shea <shea at ucar.edu>
Sent: Friday, June 8, 2018 4:24 AM
To: Jianyu Liu
Cc: Ncl-talk
Subject: Re: [ncl-talk] Wind Barbs cross equator issue

Hello

This is offline.

Certainly for grids where there are conventional latitude and longitude coordinate variables [ eg: lat(lat), lon(lon) ]

( https://www.unidata.ucar.edu/software/netcdf/workshops/2011/datamodels/NcCVars.html<https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.unidata.ucar.edu%2Fsoftware%2Fnetcdf%2Fworkshops%2F2011%2Fdatamodels%2FNcCVars.html&data=02%7C01%7C%7Ccfd5c802af8d44ff4a8708d5ccb4b017%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636639998791373483&sdata=DlmlTs77cbOrv2OhcVJXKqJELiVN%2B89ZJcl9wirLeQ4%3D&reserved=0>  and
   https://www.unidata.ucar.edu/software/netcdf/docs/netcdf_data_set_components.html<https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.unidata.ucar.edu%2Fsoftware%2Fnetcdf%2Fdocs%2Fnetcdf_data_set_components.html&data=02%7C01%7C%7Ccfd5c802af8d44ff4a8708d5ccb4b017%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636639998791373483&sdata=JXJ6wD8KFzbUZ7by903ezwxOeR3zr34EDSKT3hivmI8%3D&reserved=0> ),

the wind barbs follow conventions.

See the 1st few figures at:   https://www.ncl.ucar.edu/Applications/barb.shtml<https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.ncl.ucar.edu%2FApplications%2Fbarb.shtml&data=02%7C01%7C%7Ccfd5c802af8d44ff4a8708d5ccb4b017%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636639998791373483&sdata=1sxRaRMCO2VqvFt%2FepYEpNA2nQwpJR3LN%2Fh6NiN%2BT%2F8%3D&reserved=0>

--
Also, see attached png file which was created from a regional rectilinear grid.
This follows the wind barb convention.

--

Can you please follow the instructions at:  https://www.ncl.ucar.edu/ftp_files.shtml<https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.ncl.ucar.edu%2Fftp_files.shtml&data=02%7C01%7C%7Ccfd5c802af8d44ff4a8708d5ccb4b017%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636639998791373483&sdata=I9T5Xm%2B1EEHe5GV9fysElHvFpAxaZmlkwMSQ40pwviU%3D&reserved=0>


ftp ftp.cgd.ucar.edu<https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fftp.cgd.ucar.edu&data=02%7C01%7C%7Ccfd5c802af8d44ff4a8708d5ccb4b017%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636639998791373483&sdata=mTFeHPhzGT10cyej9jG7bjjQWSP1AjyrTD%2Fh8H0%2BbHk%3D&reserved=0>
anonymous
jerry_leo at msn.com<https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmsn.com&data=02%7C01%7C%7Ccfd5c802af8d44ff4a8708d5ccb4b017%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636639998791373483&sdata=q4%2B7tCzHeJLofO4xKuB7QlP5l1R3Zo%2FdcfJ434BIg84%3D&reserved=0>                  <enter your email address for the password>
cd incoming
put file1
put file2
. . .continue with 'put' commands until all desired files are uploaded. . .
quit

When the upload is complete, send email to ncl-talk<mailto:ncl-talk at ucar.edu> or the NCL team member that you've already been working with and include the exact names of the files, and the approximate size of each file.

For security reasons, you cannot list the contents of the 'incoming' directory. This is why we need to know the exact names of the files.

THX

On Thu, Jun 7, 2018 at 1:02 AM, Jianyu Liu <jerry_leo at msn.com<mailto:jerry_leo at msn.com>> wrote:

Hi,


I'm using NCL 6.3.0,  just noticed there was an issue for the Wind Barbs cross equator that gsn_csm_vector does not currently automatically change the wind barb tick position to account for the conventional difference for north and south of the equator.


I knew it could manually change the resource vcWindBarbTickAngleF to a negative value to get wind barbs that conform to the southern hemisphere convention, but this does not help for plots that cross the equator where both conventions are needed.   Please see the attachment for the example.


Here are my settings for the Wind Barbs


  opts at gsnLeftStringFontHeightF  = 0
  opts at gsnRightStringFontHeightF = 0
  opts at vcRefMagnitudeF           = 10.0             ; define vector ref mag
  opts at vcRefLengthF              = 0.030           ; define length of vec ref
  opts at vcGlyphStyle              = "WindBarb"         ; select wind barbs
  opts at vcMinDistanceF            = 0.02              ; thin out windbarbs
  opts at vcVectorDrawOrder         = "PostDraw"
  opts at vcRefAnnoOrthogonalPosF   = -1.08


Wondering if I'm missing certain settings or what's the workaround for this sort of issue ?


Thanks for your time


Regards


Jerry



_______________________________________________
ncl-talk mailing list
ncl-talk at ucar.edu<mailto:ncl-talk at ucar.edu>
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk<https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmailman.ucar.edu%2Fmailman%2Flistinfo%2Fncl-talk&data=02%7C01%7C%7Ccfd5c802af8d44ff4a8708d5ccb4b017%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636639998791373483&sdata=zfUP0drDrh2ih3xPYjtrKuPRRd3FnjamVwO9XE%2Fu9NA%3D&reserved=0>


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180608/e3d1a354/attachment.html>


More information about the ncl-talk mailing list