/usr/share/ncarg/hluex/basic/basic07f.f is in libncarg-data 6.2.0-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 | CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
C C
C Copyright (C) 1995 C
C University Corporation for Atmospheric Research C
C all rights reserved C
C C
CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
C
C File: basic07f.f
C
C Author: Bob Lackman (converted by Ed Stautler)
C National Center for Atmospheric Research
C PO 3000, Boulder, Colorado
C
C Date: Fri May 25 18:31:18 mdt 1995
C
C Description: Demonstrates creating 3 simultaneous workstations.
C The TextItem output states which type of workstation,
C out of NCGM, PDF, PostScript, and X11.
C
external NhlFAppClass
external NhlFPSWorkstationClass
external NhlFPDFWorkstationClass
external NhlFCairoPSPDFWorkstationClass
external NhlFCairoImageWorkstationClass
external NhlFCairoWindowWorkstationClass
external NhlFNcgmWorkstationClass
external NhlFTextItemClass
integer appid, widx,widn,widp,widpdf, pidx,pidn,pidp,pidpdf
integer srlist, ierr
integer i
C------------------------------------------------------
C
C Call a subroutine that generates an LLU
C
C Initialize the high level utility library
C
call NhlFInitialize
C
C Create an application context. Set the app dir to the current
C directory so the application looks for a resource file in the
C working directory. In this example the resource file supplies the
C plot title only.
C
call NhlFRLCreate(srlist,'setrl')
call NhlFRLClear(srlist)
call NhlFRLSetString(srlist,'appUsrDir','./',ierr)
call NhlFRLSetString(srlist,'appDefaultParent','True',ierr)
call NhlFCreate(appid,'basic07',NhlFAppClass,0,srlist,ierr)
C
C Create an NCGM workstation.
C
call NhlFRLClear(srlist)
call NhlFRLSetString(srlist,'wkMetaName','basic07f.ncgm',ierr)
call NhlFCreate(widn,'basic07ncgm',NhlFNcgmWorkstationClass,0,
1 srlist,ierr)
C
C Create an older-style PostScript workstation.
C
call NhlFRLClear(srlist)
call NhlFRLSetString(srlist,'wkPSFileName','basic07f.ps',ierr)
call NhlFRLSetString(srlist,'wkOrientation','portrait',ierr)
call NhlFRLSetString(srlist,'wkPSFormat','ps',ierr)
call NhlFCreate(widp,'basic07ps',NhlFPSWorkstationClass,0,
1 srlist,ierr)
C
C Create an older-style PDF workstation.
C
call NhlFRLClear(srlist)
call NhlFRLSetString(srlist,'wkPDFFileName','basic07f.pdf',ierr)
call NhlFRLSetString(srlist,'wkOrientation','portrait',ierr)
call NhlFRLSetString(srlist,'wkPDFFormat','pdf',ierr)
call NhlFCreate(widpdf,'basic07pdf',NhlFPDFWorkstationClass,0,
1 srlist,ierr)
C
C Create an X Workstation.
C
call NhlFRLClear(srlist)
call NhlFRLSetString(srlist,'wkPause','True',ierr)
call NhlFCreate(widx,'basic07x11',
+ NhlFCairoWindowWorkstationClass,
$ 0,srlist,ierr)
C
C Create three plots, one for each workstation type.
C
C Use color index 2
i = 2
call NhlFRLClear(srlist)
call NhlFRLSetinteger(srlist,'txBackgroundFillColor',
$ i,ierr)
call NhlFCreate(pidx,'TextItems',NhlFTextItemClass,
$ widx,srlist,ierr)
call NhlFCreate(pidn,'TextItems',NhlFTextItemClass,
$ widn,srlist,ierr)
call NhlFCreate(pidp,'TextItems',NhlFTextItemClass,
$ widp,srlist,ierr)
call NhlFCreate(pidpdf,'TextItems',NhlFTextItemClass,
$ widpdf,srlist,ierr)
call NhlFDraw(pidx,ierr)
call NhlFDraw(pidn,ierr)
call NhlFDraw(pidp,ierr)
call NhlFDraw(pidpdf,ierr)
call NhlFFrame(widx,ierr)
call NhlFFrame(widp,ierr)
call NhlFFrame(widpdf,ierr)
call NhlFFrame(widn,ierr)
C
call NhlFDestroy(pidx,ierr)
call NhlFDestroy(pidn,ierr)
call NhlFDestroy(pidp,ierr)
call NhlFDestroy(pidpdf,ierr)
call NhlFDestroy(widx,ierr)
call NhlFDestroy(widp,ierr)
call NhlFDestroy(widpdf,ierr)
call NhlFDestroy(widn,ierr)
call NhlFDestroy(appid,ierr)
call NhlFClose
C
stop
end
|