Home| superdarn |src.bin|tk|plot| field_plot Index

field_plot

Syntax
field_plot --help
field_plot [options] fitacfname [inxname]
field_plot -old [options] [fitname] [inxname]
field_plot -cfit [options] [cfitname]
field_plot -png [options] fitacfname [inxname]
field_plot -ps [-xp xoff] [-yp yoff] [options] fitacfname [inxname]
field_plot -old -ps [-xp xoff] [-yp yoff] [options] [fitname] [inxname]
field_plot -cfit -ps [-xp xoff] [-yp yoff] [options] [cfitname]
field_plot -ppm [options] fitacfname [inxname]
field_plot -old -ppm [options] [fitname] [inxname]
field_plot -cfit -ppm [options] [cfitname]
field_plot -ppmx [options] fitacfname [inxname]
field_plot -old -ppmx [options] [fitname] [inxname]
field_plot -cfit -ppmx [options] [cfitname]
field_plot -xml [options] fitacfname [inxname]
field_plot -old -xml [options] [fitname] [inxname]
field_plot -cfit -xml [options] [cfitname]
field_plot -x [-display display] [-xoff xoff] [-yoff yoff] [-delay delay] [options] fitacfname [inxname]
field_plot -old -x [-display display] [-xoff xoff] [-yoff yoff] [-delay delay] [options] [fitname] [inxname]
field_plot -cfit -x [-display display] [-xoff xoff] [-yoff yoff] [-delay delay] [options] [cfitname]
Synopsis

Plot fit, fitacf, and cfit format files.

Options
--helpprint the help message and exit.
--versionprint the RST version number and exit.
-cf cfnameread command line options from the file cfname.
-defplot using some sensible default options so that the user will see something plotted.
-r repeatset the number of rows and columns of panels in the plot to repeat. The default value of 2 produces a 2x2 panel plot. If this value is set to zero then the program will produce sequential plots and write them to a file.
-sd yyyymmddplot starting from the date yyyymmdd.
-st hr:mnplot starting from the time hr:mn.
-ed yyyymmddstop plotting at the date yyyymmdd.
-et hr:mnstop plotting at the time hr:mn.
-ex hr:mnplot an interval whose extent is hr:mn.
-tngenerate filenames of the form hrmn.sc.xxx when producing sequential plots.
-dngenerate filenames of the form yyyymmdd.hrmn.sc.xxx when producing sequential plots.
-wdt widthset the width of the plot to width.
-hgt heightset the height of the plot to height.
-pad padset the padding around the edge of the plot to pad.
-sf scaleset the scale factor (magnification) to scale. The default scale factor is 1.
-orthouse an orthographic projection.
-lat latcenter the plot on the latitude given by lat.
-lon loncenter the plot on the longitude given by lon.
-latmin latminadjust the scale factor so that the lowest visible latitude is latmin. Applies when the stereographic projection is used.
-maguse magnetic coordinates.
-old_aacgmuse older AACGM rather than default AACGM-v2 for magnetic coordinates.
-rotaterotate the plot so that the local noon is at the top of the plot.
-flipflip the direction of the X-axis.
-squareforce the use of a square bounding box around the plot.
-coastplot coastlines.
-fcoastplot filled coastlines.
-bndplot state boundaries.
-grdplot a grid.
-grdlat grdlatset the latitude spacing of the grid to grdlat degrees.
-grdlon grdlonset the longitude spacing of the grid to grdlon degrees.
-igrdplot the inverse grid, if the plot is in geographic coordinates, a geomagnetic grid is plotted, if the plot is in geomagnetic coordinates, a geographic grid is plotted.
-igrdlat igrdlatset the latitude spacing of the inverse grid to grdlat degrees.
-igrdlon igrdlonset the longitude spacing of the inverse grid to grdlon degrees.
-igrdontopplot the inverse grid on top.
-grdontopplot the grid on top.
-tmkplot a clock-dial grid showing the time.
-fovplot the radar fields of view of other SuperDARN radars.
-ffovplot the filled radar fields of view of other SuperDARN radars.
-fanplot the radar field of view.
-ffanplot the filled radar field of view.
-minbeam minbeamset the minimum beam number to draw for the radar field of view outline to minbeam.
-maxbeam maxbeamset the maximum number of beams to draw for the radar field of view outline to maxbeam.
-lstuse local solar time rather than local time.
-tmtick tickset the grid interval for the time clock-dial to tick hours.
-lstuse local solar time rather than local time.
-termplot the terminator.
-ftermplot a filled terminator.
-tmlblLabel the time clock-dial.
-bgcol aarrggbbset the background color to aarrggbb, specified as the hexadecimal value for the 32-bit alpha, red,green and blue component color.
-txtcol aarrggbbset the color of the text to aarrggbb, specified as the hexadecimal value for the 32-bit alpha,red,green and blue component color.
-grdcol aarrggbbset the color of the grid to aarrggbb, specified as the hexadecimal value for the 32-bit alpha,red,green and blue component color.
-igrdcol aarrggbbset the color of the inverse grid to aarrggbb, specified as the hexadecimal value for the 32-bit alpha,red,green and blue component color.
-cstcol aarrggbbset the color of the coastline to aarrggbb, specified as the hexadecimal value for the 32-bit alpha,red,green and blue component color.
-bndcol aarrggbbset the color of the state boundaries to aarrggbb, specified as the hexadecimal value for the 32-bit alpha,red,green and blue component color.
-lndcol aarrggbbset the color of the land to aarrggbb, specified as the hexadecimal value for the 32-bit alpha,red,green and blue component color.
-seacol aarrggbbset the color of the sea to aarrggbb, specified as the hexadecimal value for the 32-bit alpha,red,green and blue component color.
-tmkcol aarrggbbset the color of the time clock-dial to aarrggbb, specified as the hexadecimal value for the 32-bit alpha,red,green and blue component color.
-fovcol aarrggbbset the color of the fields of view outline of other SuperDARN radars to aarrggbb, specified as the hexadecimal value for the 32-bit alpha,red,green and blue component color.
-ffovcol aarrggbbset the color of the filled fields of view of other SuperDARN radars to aarrggbb, specified as the hexadecimal value for the 32-bit alpha,red,green and blue component color.
-fancol aarrggbbset the color of the field of view outline of this radar to aarrggbb, specified as the hexadecimal value for the 32-bit alpha,red,green and blue component color.
-ffancol aarrggbbset the color of the filled field of view of this radar to aarrggbb, specified as the hexadecimal value for the 32-bit alpha,red,green and blue component color.
-trmcol aarrggbbset the color of the terminator outline to aarrggbb, specified as the hexadecimal value for the 32-bit alpha, red,green and blue component color.
-ftrmcol aarrggbbset the color of the filled terminator outline to aarrggbb, specified as the hexadecimal value for the 32-bit alpha,red,green and blue component color.
-gscol aarrggbbset the color of ground scatter to aarrggbb, specified as the hexadecimal value for the 32-bit alpha,red,green and blue component color.
-vkey vkeynameload the colorkey used to plot velocity vectors from the file vkeyname.
-vkey_path vkey_pathload the colorkey used to plot velocity vectors from the custom path vkey_path.
-key keynameload the colorkey from the file keyname.
-key_path key_pathload the colorkey from the custom path key_path.
-pplot power.
-vplot velocity.
-wplot spectral width.
-phiplot phi0.
-eplot elevation angle.
-veplot velocity error.
-weplot spectral width error.
-p0plot lag0 power.
-vecplot velocity vectors.
-pmin pminset the minimum value of the power scale to pmin.
-pmax pmaxset the maximum value of the power scale to pmax.
-vmin vminset the minimum value of the velocity scale to vmin.
-vmax vmaxset the maximum value of the velocity scale to vmax.
-wmin wminset the minimum value of the spectral width scale to wmin.
-wmax wmaxset the maximum value of the spectral width scale to wmax.
-phimin phiminset the minimum value of the phi0 scale to phimin.
-phimax phimaxset the maximum value of the phi0 scale to phimax.
-emin eminset the minimum value of the elevation angle scale to emin.
-emax emaxset the maximum value of the elevation angle scale to emax.
-vemin veminset the minimum value of the velocity error scale to vemin.
-vemax vemaxset the maximum value of the velocity error scale to vemax.
-wemin weminset the minimum value of the spectral width error scale to wemin.
-wemax wemaxset the maximum value of the spectral width error scale to wemax.
-p0min p0minset the minimum value of the lag0 power scale to p0min.
-p0max p0maxset the maximum value of the lag0 power scale to p0max.
-gscolor ground scatter.
-gmmask out ground scatter.
-keypplot the color key.
-vkeypplot the color key for velocity vectors.
-vecpplot the example vector.
-vsf vsfset the vector scale factor to vsf.
-vecr radiusset the radius of the circle at the end of the vector to radius.
-logoplot the logo and credits.
-timeplot the time of the plotted data.
-frameadd a frame around the borders of the plot.
-overthe output plot will be overlaid on another plot, do not paint the background with the bacground color.
-tl tlenignore the scan flag and instead use a fixed length scan of tlen seconds.
-cn channelfor stereo mode data, plot channel channel, if omitted then both channels are plotted.
-cp cpidplot beams that contain the program identifier cpid only.
-scan scanplot beams that have a value for the scan flag of scan.
-nsignore non-scan data (data with a scan flag of -1)..
-s stepset the number of scans skipped between plots to step.
fitacfnamefilename of the fitacf format file to plot.
inxnamefilename of the index file.
-oldfile is in the fit format.
fitnamefilename of the fit format file to plot.
-cfitfile is in the cfit format.
cfitnamefilename of the cfit format file to plot.
-sndfile is in the snd format.
sndnamefilename of the snd format file to plot.
-pngproduce a Portable Network Graphics (PNG) image as the output.
-psproduce a PostScript plot as the output.
-xp xoffset the X offset of the PostScript plot to xoff.
-yp xoffset the Y offset of the PostScript plot to yoff.
-ppmproduce a Portable PixMap (PPM) image as the output.
-ppmxproduce an extended Portable PixMap (PPMX) image as the output.
-xmlproduce an XML image representation as the output.
-xplot the data on an X-terminal.
-display displayconnect to the xterminal named display.
-xoff xoffopen the window, xoff pixels from the left edge of the screen.
-yoff yoffopen the window ypad pixels from the top edge of the screen.
-delay delayset the delay between frames to delay milliseconds, a value of 0 will pause the frame until a mouse button is pressed. Default: 0
-chishamuse the Chisham virtual height model.
Description

Plot fit, fitacf, and cfit format files.

The output can be to an X terminal, XML rplot file, Portable PixMap (PPM) file, extended Portable PixMap (PPMX) file, Portable Network Graphics (PNG), or PostScript file. The default output is PostScript.

The program produces either a multi-panel plot showing a sequence of up to 16 images, or a single-panel plot that can be used to produce movies. Multi-panel plots are written to standard output, while the single panel plots are written to individual files.

The number of panels contained in the plot is controlled by the "-r" option. If this is set to zero then single panel plots are produced.

The task only plots what it is instructed to plot on the command line which means that at least some of the options must be included if the plot is to show anything.

The default map projection is a stereographic projection.

A sensible set of default plot options can be invoked using the "-def" option.

The option "-vec" will plot the line of sight velocity vectors.

The options "-key" and "-vkey" allows a user defined color key to be used to plot the data or the velocity vectors.

The color key file is a plain text file that defines the red green and blue components for each index in the color bar. Any line in the file beginning with a "#" is treated as a comment and ignored. The first line that is not a comment defines the number of entries in the table. The remaining lines in the file contain color values for each index, one value per line. The values are hexadecimal numbers of the form aarrggbb, where aa is the alpha channel, rr is the red component, gg is the blue component and bb is the blue component.

The number and complexity of the command line options makes typing them a laborious process, especially when producing multiple plots. To solve this problem, command line options can be placed in plain text file that can be parsed by the program using the " -cf" option. This allows the user to create a set of configuration files for producing different plots.

Examples
field_plot -wdt 540 -hgt 540 -ffov -fov -fan -v -def -r 0 -delay 0 -old -x 20041020.kap.fit

Plot the velocity data from the file "20041020.fit" on the Xterminal. Use the default set of options and plot the fields of view the other radars.

field_plot -ps -st 1:30 -square -grd -fcoast -coast -ffov -fov -fan -sf 2 -p -time -keyp -old 20021219.han.fit > han.ps

Generate a PostScript plot the power data from the file "20021219.han.fit". Plot the data using magnetic coordinates. Plot the coastlines, and radar fields of view. The plot is written to the file "han.ps".



field_plot -wdt 540 -hgt 540 -mag -st 1:00 -lat 90 -lon 0 -tmk -time -latmin 55 -rotate -grd -fcoast -coast -keyp -ffov -fov -r 0 -fan -p

Generate rPlot xml plots of power data from the file "20021219.han.fit". Store the plots in files named "xxxx.xml", starting at 01:00UTC. Use magnetic coordinates, rotated so that magnetic local noon is at the top of the plot.Plot filled coastlines, terminator, a clockdial representing time, and the time.