Notice for MESO-NH graphic tool . Graphic tool: diaprog written in Fortran 90 specifically for Meso-NH NCAR graphic software (which must be installe puter, free uploading on http://ngww.ucar.edu/ Environment for diaprog (p.8) iaprog for the first time, do not forget to in ariable for NCAR software ARG_ROOT RG_ROOT/bin in the PATH variable) for interactive mode after a file of directives isualise the graphics) 2 Files to be plotted chronic format (p.2) aprog, the files must be diachronic ones, they an initial or physiographic file, converted b or several synchronuous output files ed by .00n) in one or several diachronic files by conv2dia output file of the DIAG MesoNH program, ally converted by conv2dia iachronic file written during a simulation ed with .000) the binary part (.lfi) of the file is used by
Notice for MESO-NH graphic tool. Graphic tool : diaprog. Program written in Fortran 90 specifically for Meso-NH outputs, based on NCAR graphic software (which must be installed on your computer, free uploading on http://ngww.ucar.edu/ ). 1.1 Environment for diaprog (p.8). - PowerPoint PPT Presentation
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Notice for MESO-NH graphic tool
1. Graphic tool: diaprog
Program written in Fortran 90 specifically for Meso-NH outputs,based on NCAR graphic software (which must be installed onyour computer, free uploading on http://ngww.ucar.edu/ )
1.1 Environment for diaprog (p.8)
Before using diaprog for the first time, do not forget to initialize:• Environment variable for NCAR software NCARG_ROOT (add $NCARG_ROOT/bin in the PATH variable)• VARTTY=$(tty) for interactive mode after a file of directives• DISPLAY (to visualise the graphics)
1.2 Files to be plotted1.2.1 Diachronic format (p.2)To use diaprog, the files must be diachronic ones, they area) Either an initial or physiographic file, converted by conv2diab) Or one or several synchronuous output files (name ended by .00n)converted in one or several diachronic files by conv2diac) Or an output file of the DIAG MesoNH program, automatically converted by conv2diad) Or a diachronic file written during a simulation (name ended with .000)
Only the binary part (.lfi) of the file is used by diaprog
1.2.2 Conversion of a synchronuous file by conv2dia
File(s) to be converted must be splitted in .des and .lfi parts(otherwise use fm2deslfi to get .lfi or .Z.lfi )
diaprog…… directives on keyboard…quit
All the directives (keywords, precise syntax) are stored in antext file named dir.date:hh:mm to allow modifications and future use bydiaprog< dir.date:hh:mm
conv2dianfile1…filenfiledia
1.3 ``Interactive’’ use of diaprog
<- number of synchronuous files to convert<- name of the 1st synchronuous file
<- name of the last synchronuous file<- name of the output diachronic file
1.4 Graphic outputs Images are stored by diaprog in a file named gmeta (specific NCAR format) You have to rename it before use diaprog again.
To visualise images: idt gmetaTo convert in PostScript: ctrans –d ps.color –q gmeta > gmeta.ps
2. The directives
• taped on keyboard, or in a text file,• respect a strict syntax…• 80 characters maximum, character &, character !• converted in upper case (except ‘filename’ and process name)• keywords between _ (ex: _PV_ )
2.1 General directives (p.27)
linvwb=t to invert black and white
_file1_’filename’ to open file (filename.lfi must be in DIRLFI directory)
_file2_’otherfile’ to open a 2nd file
visu to open a graphic window
lprint=t to get in a text file named FICVAL the values of the plotted fields
lprintxy=t and the coordinate values
convallij2ll to get the lat-lon values of all the grid points
convij2xy=i1,,j1,i2,j2,9999. ‘’ of some grid points
convxy2ij=lat1,lon1,9999. or vice versa
2.2 Directives to scan file(p.27)
print groups print the ‘groups’ names of the current fileprint UM dim proc time print informations for the ‘group’ UM
print filecur print the name of current file opened
print UM(i1:i2,j1:j2,k1:k2) print the values of the sub-array
2.3 Directives for plotting_file1_ to select an opened file (if several opened)
_T_ to select a time (_T_time1 or _T_3600)_MINUS_ (_PLUS_) difference or sum between 2 fields_ON_ to superpose fields
_PR_ on an isobaric level (hPa), ex: _PR_850 (if PABSM or PABST in the file)
_TK_ on an isentropic level (K), ex: _TK_320 (if THM or THT in the file)_EV_ on a potential vorticity level (PVU), ex: _EV_2 (if POVOM or POVOT in the file)
_SV3_ on any level (LXYZ00=T CGROUPSV3=‘gpe_nam’ )
•Section limits (p.44)default: the whole simulation domain (physical domain)or zoom with NIINF= NISUP= NJINF= NJSUP=
•Horizontal wind (p.39)Name UM, VM (or UT, VT or UMnn, VMnn)Module: MUMVMVectors: UMVM, stream lines: LSTREAM=T Direction: DIRUMVM
2.3.2 Horizontal profile (p.51)•// to the axes: NIINF=NISUP: //Y , NJINF=NJSUP: //X•Other orientation: intersection of a horizontal section and vertical one ( _CV__K_, or _CV__Z_, or _CV__PR_, …)