NCL Home> Application examples> Data sets || Data files for examples

Station Data

station_1.ncl: Since the data you want to contour is represented by a 1D array with corresponding 1D lat/lon arrays, NCL will automatically use the triangular mesh capability to contour this data. You must set both the sfYArray and sfXArray resources to these lat/lon arrays respectively.

Since there are a lot of contour levels in this example, the cnLevelFlags resource is used to control which contour lines are actually drawn.

The data files for this example are pw.dat and stn_latlon.dat.

station_2.ncl: This example shows how to plot values at station locations using different colors and marker sizes for each station point. The station values are grouped depending on which range of values they fall in, and then every marker in this group gets the same color and size.

A legend is added at the bottom, using calls to gsn_polymarker and gsn_text_ndc.

station_3.ncl: This example shows how to use gsn_add_text to add lots of strings to a map plot, and then how to determine which ones overlay other strings so you can remove them.

You can download the small istasyontablosu_son.txt data file for this example. Thanks to Ozan Mert Gokturk for providing the data file and the inspiration for this example.