NCARGEX(1NCARG)

๐Ÿ“ฆ version 6.6.2, in epel 9, fedora 43, fedora 44

okay bestie, buckle up ๐Ÿ’– you're reading the ncargex(1NCARG) page from the NCAR GRAPHICS manual, and it is long, but don't panic โ€” i got you. โœจ


๐ŸŽ€ NAME ๐ŸŽ€

ncargex โ€” NCAR Graphics Fortran and C Low-Level Utility Examples

๐Ÿฆ‹ SYNOPSIS ๐Ÿฆ‹

ncargex [-A] [-E] [-F] [-P] [-T]
[-U] [-C] [-Fortran] [-class] [-ps]
[-x11] [-W workstation_type] [-areas]
[-autograph] [-bivar] [-colconv] [-conpack]
[-conpackt] [-conran_family] [-conrec_family]
[-csagrid] [-cssgrid] [-dashline] [-dashpack]
[-dsgrid] [-ezmap] [-field_flow] [-fitgrid]
[-gflash] [-gks] [-gridall] [-halftone]
[-histogram] [-isosrfhr] [-isosurface] [-labelbar]
[-natgrid] [-ngmath] [-ngmisc] [-plotchar]
[-polypack] [-pwrite_family] [-scrolled_title]
[-seter] [-shgrid] [-softfill] [-spps]
[-streamlines] [-surface] [-tdpack] [-threed]
[-vaspackt] [-vectors] [-wmap] [-misc]
[-clean] [-n] [-ncarbd] [-noX11] [-onebyone]
example_name ...

โœจ DESCRIPTION โœจ

so like, ncargex hands you access to over 300 complete example NCAR Graphics Fortran and C source codes โ€” including the examples from the NCAR Graphics Tutorial. not a flex but yeah it's a flex ๐Ÿ’…

here's the tea: ncargex copies the source code for the example(s) you specified into your current directory, and then it compiles, links, and executes that example.

depending on the type of workstation you put on the command line, the output can be:

  • an NCGM (NCAR Graphics Metafile) file,
  • one of many types of PostScript files, or
  • a text dump.

and sometimes there's literally no output at all โ€” if you pick the "x11" workstation, each frame gets displayed directly to its own separate X window right after it's generated. main character energy, no files needed. ๐ŸชŸ

if you don't specify a workstation on the command line, it defaults to an "NCGM" โ€” unless the example is one of those special ones we're about to get into. ๐Ÿ™ˆ

if you pick one of the workstation types that produces an output file, then the file name is the same as the example name, ending with the appropriate suffix: .ncgm, .txt, .ps, etc.

certain examples were created to demonstrate one particular function โ€” like how to rename your metafile from inside the program, how to use the full page when going to PostScript output, how to use the X11 driver and produce a graphic file at the same time, etc. if the example you ask for is one of these, a message gets printed to that effect to alert you. consider yourself notified bestie ๐Ÿ˜ญ

now, for ncargex to actually run, you must have your NCARG_ROOT environment variable set to the parent directory where the NCAR Graphics libraries, binaries, and include files were installed. if that env var isn't set, ncargex will attempt to set it for you (so helpful ๐Ÿฅบ). but if the NCAR Graphics libraries, binaries, and include files were not installed under one single parent directory, then you need to set the environment variables NCARG_LIB, NCARG_BIN, and NCARG_INCLUDE instead. please go read man ncargintro for more info. ๐Ÿ‘‘


๐Ÿ’… OPTIONS ๐Ÿ’…

  • -W โ€” Specify the workstation type. This argument can be specified as a number or as a string, where the number has the same value you would use in a call to GOPWK. The following numbers are valid:
    • 1 โ€” NCGM
    • 8 โ€” X11 window.
    • 10 โ€” text dump of graphics output.
    • 20 โ€” color PostScript in portrait mode.
    • 21 โ€” color Encapsulated PostScript (EPS) in portrait mode.
    • 22 โ€” color Encapsulated PostScript Interchange format (EPSI) in portrait mode.
    • 23 โ€” monochrome PostScript in portrait mode.
    • 24 โ€” monochrome Encapsulated PostScript (EPS) in portrait mode.
    • 25 โ€” monochrome Encapsulated PostScript Interchange format (EPSI) in portrait mode.
    • 26 โ€” color PostScript in landscape mode.
    • 27 โ€” color Encapsulated PostScript (EPS) in landscape mode.
    • 28 โ€” color Encapsulated PostScript Interchange format (EPSI) in landscape mode.
    • 29 โ€” monochrome PostScript in landscape mode.
    • 30 โ€” monochrome Encapsulated PostScript (EPS) in landscape mode.
    • 31 โ€” monochrome Encapsulated PostScript Interchange format (EPSI) in landscape mode.

if you wanna specify the workstation as a string instead, there are a few ways to do it. for example, these workstation types are valid:

  • ncgm โ€” NCGM
  • x11 โ€” X11 window
  • text โ€” text dump of graphics output

for PostScript output there are even more attributes to play with: the type of PostScript file you want ("ps", "eps", or "epsi"), whether you want color or monochrome ("color" or "mono"), and whether you want portrait or landscape mode ("port" or "land"). the orientation and the color preference can be omitted (they default to "port" and "color" respectively), but you must specify the PostScript file type. each attribute can be entered in any order, separated by periods. here are examples of valid PostScript workstation types:

  • ps.color โ€” color PostScript in portrait mode.
  • land.eps.mono โ€” monochrome Encapsulated PostScript format (EPS) in landscape mode.
  • epsi โ€” color Encapsulated PostScript Interchange format (EPSI) in portrait mode.
  • port.mono.ps โ€” monochrome PostScript in portrait mode.

any combination of these three types of attributes can be used, as long as one of them is the PostScript file type. periodt. ๐Ÿ’ซ

  • -A โ€” Generate all available C/Fortran examples, tests, programmer doc, fundamental and tutorial examples.
  • -E โ€” Generate all available C/Fortran examples.
  • -F โ€” Generate all available fundamental C/Fortran examples.
  • -P โ€” Generate all available programmer doc C/Fortran examples.
  • -T โ€” Generate all available tests.
  • -U โ€” Generate all available tutorial C/Fortran examples.
  • -C โ€” Generate all available C examples.
  • -Fortran โ€” Generate all available Fortran examples.
  • -class โ€” Generate all available class C/Fortran examples.
  • -ps โ€” Generate all C/Fortran examples that use the PostScript driver.
  • -x11 โ€” Generate all C/Fortran examples that use the X11 driver.
  • -areas โ€” Generate all Areas C/Fortran examples.
  • -autograph โ€” Generate all Autograph C/Fortran examples.
  • -bivar โ€” Generate all bivar C/Fortran examples.
  • -colconv โ€” Generate all Colconv C/Fortran examples.
  • -conpack โ€” Generate all Conpack C/Fortran examples.
  • -conpackt โ€” Generate all Conpackt C/Fortran examples.
  • -conran_family โ€” Generate all Conran Fortran examples.
  • -conrec_family โ€” Generate all Conrec Fortran examples.
  • -csagrid โ€” Generate all Ngmath Csagrid C/Fortran examples.
  • -cssgrid โ€” Generate all Ngmath Cssgrid C/Fortran examples.
  • -dashline โ€” Generate all Dashline C/Fortran examples.
  • -dashpack โ€” Generate all Dashpack C/Fortran examples.
  • -dsgrid โ€” Generate all Ngmath Dsgrid C/Fortran examples.
  • -ezmap โ€” Generate all Ezmap C/Fortran examples.
  • -field_flow โ€” Generate all Field_flow C/Fortran examples. Includes streamlines and vectors examples.
  • -fitgrid โ€” Generate all Ngmath Fitgrid C/Fortran examples.
  • -gflash โ€” Generate all Gflash C/Fortran examples.
  • -gks โ€” Generate all GKS C/Fortran examples.
  • -gridall โ€” Generate all Gridall C/Fortran examples.
  • -halftone โ€” Generate all Halftone Fortran examples.
  • -histogram โ€” Generate all Histogram C/Fortran examples.
  • -isosrfhr โ€” Generate all Isosrfhr Fortran examples.
  • -isosurface โ€” Generate all Isosurface C/Fortran examples.
  • -labelbar โ€” Generate all Labelbar C/Fortran examples.
  • -natgrid โ€” Generate all Ngmath Natgrid C/Fortran examples.
  • -ngmath โ€” Generate all Ngmath C/Fortran examples.
  • -ngmisc โ€” Generate all Ngmisc C/Fortran examples.
  • -plotchar โ€” Generate all Plotchar C/Fortran examples.
  • -polypack โ€” Generate all Polypack C/Fortran examples.
  • -pwritx_family โ€” Generate all Pwrite Fortran examples.
  • -scrolled_title โ€” Generate all Scrolled title C/Fortran examples.
  • -seter โ€” Generate all Seter C/Fortran examples.
  • -shgrid โ€” Generate all Ngmath Shgrid C/Fortran examples.
  • -softfill โ€” Generate all Softfill C/Fortran examples.
  • -spps โ€” Generate all SPPS C/Fortran examples.
  • -streamlines โ€” Generate all Streamlines C/Fortran examples.
  • -surface โ€” Generate all Surface C/Fortran examples.
  • -tdpack โ€” Generate all Tdpack C/Fortran examples.
  • -threed โ€” Generate all Threed C/Fortran examples.
  • -vaspackt โ€” Generate all Vaspackt C/Fortran examples.
  • -vectors โ€” Generate all Vectors C/Fortran examples.
  • -wmap โ€” Generate all Weather map C/Fortran examples.
  • -misc โ€” Generate all miscellaneous C/Fortran examples.
  • -clean โ€” Remove everything but the .ncgm file. declutter queen ๐Ÿงน
  • -n โ€” Specifies that the example should not be compiled, linked, or run, but just copied into your local directory.
  • -ncarbd โ€” Use this option for compilers that appear to be having trouble initializing blockdata variables. It will cause one or two small subroutines to be linked in that helps force the loading of blockdata initialization routines.
  • -ngmathbd โ€” Use this option for compilers that appear to be having trouble initializing blockdata variables. It will cause a small subroutine to be linked in that helps force the loading of blockdata initialization routines.
note: this option doesn't need to be specified separately if you are already including the -ncarbd and -ngmath options.
  • -noX11 โ€” Do not link in the X library when linking the selected examples and/or tests. A stub will be linked instead.
  • -onebyone โ€” Specifies that the selected examples and/or tests should be generated one at a time and viewed as they are generated. This is intended for use during testing of new releases at NCAR.

below is a list of all the available ncargex examples. they are listed according to which utility they belong with. ๐Ÿ‘€โœจ

EXAMPLES AVAILABLE โœจ

okay bestie, this is the part where the manpage just dumps the entire menu on you and honestly? iconic behaviour. every one of these is an example program name, grouped by which little NCAR Graphics family it belongs to. skim it, find your fave, go live your life ๐Ÿ’–


AREAS Examples ๐ŸŽ€

arex01 arex02 arex03 cardb1 cardb2 caredg carfill carline carmap tareas
c_tareas

AUTOGRAPH Examples ๐Ÿฆ‹

agdp01 agex01 agex02 agex03 agex04 agex05 agex06 agex07 agex08 agex09
agex10 agex11 agex12 agex13 fagaxclr fagaxlbl fagaxmax fagcuclr fagcudsh
fagezmxy fagezmy fagezxy fagezy fagilclr fagovrvw tagupw tautog c_agex07

BIVAR Examples ๐ŸŒธ

cbex01 cidsfft c_cbex01

COLCONV Examples ๐Ÿ’…

coex01 coex02 coex03 fcce01 fcce02 tcolcv c_coex02

CONPACK Examples ๐Ÿ‘‘

this list is so long, she ate and left no crumbs:

cbex01 ccpback ccpcff ccpcfx ccpcica ccpcir ccpcis ccpcit ccpclc ccpcld
ccpcldm ccpcldr ccpcll ccpclu ccpcnrc ccpdflt ccpezct ccpfil ccpga
ccphand ccphcf ccphl ccphlt ccpila ccpils ccpilt ccpklb ccplbam ccplbdr
ccpline ccpllb ccpllc ccplll ccpllo ccpllp ccpllt ccpllw ccpmap ccpmovi
ccpmpxy ccpncls ccpnet ccpnof ccpnsd ccppc ccppc1 ccppc2 ccppc3 ccppc4
ccppkcl ccppole ccprc ccprect ccprwc ccprwu ccpscam ccpset ccpsps1
ccpsps2 ccpspv ccpt2d ccptitle ccpvp ccpvs cidsfft colcon cpex01 cpex02
cpex03 cpex04 cpex05 cpex06 cpex07 cpex08 cpex09 cpex10 cpex11 cpex12
cpex13 cpex14 cpex15 cpex16 tconpa c_cbex01 c_colcon

CONPACKT Examples ๐Ÿ’œ

ctcbay ctex01 ctex02 ctfite ctgaus ctgc23 ctgeo1 ctgeo2 ctgeo3 ctiscp
ctisc2 ctllg1 ctllg2 ctllg3 ctnccl ctorca ctpopg ctswth ctterr ctwng1
ctwng2 cttd01 cttd02 c_ctllg3

CONRAN FAMILY Examples ๐Ÿ“

tconan tconaq tconas

CONREC FAMILY Examples ๐Ÿงš

tcnqck tcnsmt tcnsup tconre

CSAGRID Examples โญ

csex01 csex02 csex03 csex04 csex05 csex06 csex07 c_csex01 c_csex02
c_csex03 c_csex04 c_csex05 c_csex06 c_csex07

CSSGRID Examples ๐ŸŒˆ

cssex01 cssex02 cssex03 c_cssex01 c_cssex02 c_cssex03

DASHLINE Examples โœจ

fdlcurvd fdldashc fdldashd fdlsmth tdashc tdashl tdashp tdashs
c_fdldashc

DASHPACK Examples ๐Ÿ’–

tdshpk c_tdshpk

DSGRID Examples ๐Ÿฆ‹

dsex01 dsex01d dsex02 dsex03 dsex04 dsex05 dsex06 c_dsex01 c_dsex01d
c_dsex02 c_dsex03 c_dsex04 c_dsex05 c_dsex06

EZMAP Examples ๐ŸŒ

cezmap1 cezmap2 cezmap3 cmpclr cmpdd cmpdrw cmpel cmpfil cmpgci cmpgrd
cmpgrp cmpita cmpitm cmplab cmplbl cmplot cmpmsk cmpou cmppos cmpsat
cmpsup cmptit cmptra cmpusr eezmpa mpex01 mpex02 mpex03 mpex04 mpex05
mpex06 mpex07 mpex08 mpex09 mpex10 mpex11 mpex12 mpex13 mpex14 mpex15
mpexfi tezmap tezmpa tezmpb c_mpex05 c_eezmpa c_eezmpb

FIELD FLOW Examples ๐ŸŒฌ๏ธ

ffex00 ffex01 ffex02 ffex03 ffex04 ffex05 fcover fstream stex01 stex02
stex03 vvex01 vvex02 vvex03 c_ffex03 c_vvex03

FITGRID Examples ๐ŸŽ€

ftex01 ftex02 ftex03 ftex04 ftex05 ftex06 c_ftex01 c_ftex02 c_ftex03
c_ftex04 c_ftex05 c_ftex06

GFLASH Example โšก

tgflas c_tgflas

GKS Examples ๐Ÿ–ฅ๏ธ

fcell fcell0 fgke01 fgke02 fgke03 fgke04 fgkgpl fgkgpm fgkgtx fgklnclr
fgklnwth fcirc fgpm01 pgkex01 pgkex02 pgkex03 pgkex04 pgkex05 pgkex06
pgkex07 pgkex08 pgkex09 pgkex10 pgkex11 pgkex12 pgkex13 pgkex14 pgkex15
pgkex16 pgkex17 pgkex18 pgkex19 pgkex20 pgkex21 pgkex22 pgkex23 pgkex24
pgkex25 pgkex26 pgkex27 c_gtxpac c_pgkex21

GRIDALL Example ๐Ÿ—บ๏ธ

ccpga tgrida c_tgrida

HALFTONE Example ๐Ÿ”˜

thafto

HISTOGRAM Examples ๐Ÿ“Š

thstgr thstmv c_thstmv

ISOSRFHR Example ๐Ÿ”๏ธ

tisohr

ISOSURFACE Examples ๐Ÿซง

fisissrf fispwrzi tisosr tpwrzi c_tisosr

LABELBAR Examples ๐Ÿท๏ธ

elblba tlblba clbfil clbbar clblbr c_elblba

NATGRID Examples ๐Ÿงญ

nnex01 nnex01d nnex02 nnex03 nnex04 nnex05 nnex06 nnex07 nnex08 nnex09
c_nnex01 c_nnex01d c_nnex02 c_nnex03 c_nnex06

NGMATH Examples ๐Ÿงฎ

this one is the main character of the whole list, no cap:

csex01 csex02 csex03 csex04 csex05 csex06 csex07 cssex01 cssex02 cssex03
dsex01 dsex01d dsex02 dsex03 dsex04 dsex05 dsex06 ftex01 ftex02 ftex03
ftex04 ftex05 ftex06 nnex01 nnex01d nnex02 nnex03 nnex04 nnex05 nnex06
nnex07 nnex08 nnex09 shex01 shex02 shex03 c_csex01 c_csex02 c_csex03
c_csex04 c_csex05 c_csex06 c_csex07 c_cssex01 c_cssex02 c_cssex03
c_dsex01 c_dsex01d c_dsex02 c_dsex03 c_dsex04 c_dsex05 c_dsex06 c_ftex01
c_ftex02 c_ftex03 c_ftex04 c_ftex05 c_ftex06 c_nnex01 c_nnex01d c_nnex02
c_nnex03 c_nnex06 c_shex01 c_shex02 c_shex03

NGMISC Examples ๐Ÿงฉ

fngngdts fngwsym c_fngwsym

PLOTCHAR Examples ๐Ÿ”ค

epltch fpchiqu fpcloqu fpcfonts tpltch c_epltch

POLYPACK Examples ๐Ÿ”ท

ppex01 tppack c_ppex01

PWRITE FAMILY Examples โœ๏ธ

tpwrtx tpwry

SCROLLED TITLE Examples ๐Ÿ“œ

fslfont slex01 slex02 tstitl c_slex01

SETER Examples ๐Ÿšจ

tseter

SHGRID Examples ๐ŸŸฃ

shex01 shex02 shex03 c_shex01 c_shex02 c_shex03

SOFTFILL Examples ๐ŸŽจ

fsfsgfa fsfwrld sfex01 sfex02 tsoftf c_sfex02

SPPS Examples ๐Ÿ“

fcoord fcoord1 fcoord2 fspcurve fspline fsppoint fspponts splogy sprevx
c_fcoord2

STREAMLINES Examples ๐ŸŒŠ

fstream ffex00 ffex01 ffex03 ffex04 stex01 stex02 stex03 tstrml c_ffex03

SURFACE Examples ๐Ÿž๏ธ

fsrezsrf fsrpwrzs fsrsrfac srex01 tsrfac tpwrzs c_srex01

TDPACK Examples ๐ŸงŠ

tdex01 tdex02 tdex03 tdex04 tdex05 tdex06 tdex07 tdex08 c_tdex01
c_tdex03

THREED Examples ๐ŸŽฒ

fthex01 fthex02 fthex03 fthex04 fthex05 tthree tpwrzt c_fthex01

VECTORS Examples ๐Ÿน

ffex00 ffex01 ffex02 ffex05 fcover tvelvc vvex01 vvex02 vvex03 c_vvex03

WEATHER MAP Examples ๐ŸŒฆ๏ธ

wmex01 wmex02 wmex03 wmex04 wmex05 wmex06 wmex07 wmex08 wmex09 wmex10
wmex11 wmex12 wmex13 wmex14 wmex15 c_wmex09

Miscellaneous Examples ๐ŸŽ

bnchmk example ncargworld

X11 Examples ๐ŸชŸ

fgke01 fgke04 c_xwndws

๐Ÿ‘€ SEE ALSO ๐Ÿ‘€

Online: ncargf77(1NCARG), ncargcc(1NCARG), ncargfile(1NCARG), ng4ex(1NCARG), ncarg_cbind(5NCARG), ncargintro(5NCARG)

Hardcopy: NCAR Graphics Fundamentals, UNIX Version

Copyright (C) 1987-2002
University Corporation for Atmospheric Research
The use of this Software is governed by a License Agreement.

and that's the whole thing bestie, you made it to the end of a two-parter manual page, that's genuinely a flex ๐Ÿ’…

this gorgeous page came to you from NCAR, dated June 1998, and yes it's NCARGEX(1NCARG) โ€” go forth and run some examples, you absolute legend ๐Ÿซถโœจ

๐Ÿ“ฆ where this page comes from