ccplot - CloudSat and CALIPSO plotting tool
ccplot [-v] [-a ratio] [-c file] [-d dpi] [-m band] [-o file] [-p proj[:projopts]] [-r radius] [-x extent] [-y extent] [-z options] type file...
ccplot -i file
ccplot -h
ccplot -V
ccplot is a command-line program for producing plots from CloudSat, CALIPSO and MODIS product files.
The program reads data from file, and produces an image file. Dataset to be plotted is determined by type:
cloudsat-reflecCloudSat Reflectivity Factor
calipso532CALIPSO L1B Total Attenuated Backscatter 532nm
calipso532pCALIPSO L1B Perpendicular Attenuated Backscatter 532nm
calipso1064CALIPSO L1B Attenuated Backscatter 1064nm
calipso-cratioCALIPSO L1B Attenuated Color Ratio 1064nm/532nm
calipso-dratioCALIPSO L1B Depolarization Ratio
calipso532-layerCALIPSO L2 Integrated Attenuated Backscatter 532nm
calipso1064-layerCALIPSO L2 Integrated Attenuated Backscatter 1064nm
calipso-cratio-layerCALIPSO L2 Integrated Attenuated Total Color Ratio 1064nm/532nm
calipso-dratio-layerCALIPSO L2 Integrated Volume Depolarization Ratio
calipso-temperature-layerCALIPSO L2 Midlayer Temperature
orbitMap of the globe showing CALIPSO or CloudSat trajectory, optionally superimposed on MODIS swath (if a MODIS HDF product is supplied as the first file).
orbit-clippedThe same as orbit, but clipped to the area where MODIS data
is available.
-a ratioAspect ratio of profile and layer products in km horizontal per km vertical. Default: 14.0.
-c fileColormap definition file (.cmap).
Apart from an absolute path, paths relative to CCPLOT_CMAP_PATH
environment variable are also recognized, and take precedence over
paths relative to the current working directory.
See Chapter 6 of Kuma (2010) for more information about the format
of cmap files.
-d dpiDPI (Dots Per Inch) of the output image file.
-m bandMODIS band specifier in the format rnumber for reflective bands,
and xnumber for radiation bands, where number is band number.
-o fileOutput image file. Format is determined by extension: SVG (.svg), PNG (.png), PDF (.pdf), EPS (.eps) and PS (.ps). Default: ccplot.png.
-p proj[:projopts]Projection and projection options. Applies to orbit and orbit-clipped
plots.
-p help prints a list of available projections.
projopts are projection-specific options, specified as a comma-seperated
list of key=value pairs:
boundinglat=latitudeBounding latitude (polar projections).
lat_0=latitudeCentral latitude.
lat_1=latitudeFirst standard parallel.
lat_2=latitudeSecond standard parallel.
lat_ts=latitudeLatitude of true scale.
lon_1=longitudeLongitude of one of the two points on the projection centerline (oblique mercator).
lon_2=longitudeLongitude of one of the two points on the projection centerline (oblique mercator).
longitude is in the format numberE|W (East or West).
latitude is in the format numberS|N (South or North).
number is a positive decimal number in degrees.
-r radiusInterpolation radius in pixels. In profile products radius specifies vertical extent which a data point is mapped onto. If such vertical regions of two data points overlap value is determined by averaging with a weight coefficient of 1 over distance squared. The same holds for swath products, but here radius specifies a square. If radius is chosen too small relative to dpi, data will be plotted sparsely on the image.
Defaults to 3 for swath plots. For profile products a sensible value is chosen automatically depending on resolution.
-vVerbose mode.
-VPrint version information and exit.
-x extentHorizontal extent to be plotted. extent can be specified in a number of formats depending on the plot type.
For profile and layer products extent can be one of:
Plot data between ray x1 and x2.
Plot data in time interval (UTC).
Plot data in time interval relative to the beginning (+) or end (-) of the granule.
For swath products extent can be one of:
Plot data between scanlines x1 and x2 (along-track), and samples y1 and y2 (across-track).
Plot data inside geographical region between latitude lat1 and lat2 and longitude lon1 and lon2.
Longitude is in the format numberE|W (East or West).
Latitude is in the format numberS|N (South or North).
number is a positive decimal number in degrees.
-y extentVertical extent of profile plots in the format y1..y2, where y1 and y2 are the lower and upper boundary (resp.) in meters above sea level.
-z optionsMiscellaneous formatting options. options is a comma-separated list of
key=value pairs.
Some options accept a list of values seperated by colon in the format
key=value1:value2[:value]... .
-z help prints a list of all options.
Available common options:
cbfontsizeColor bar font size. Default: 8.
cbspacingSpacing between axes and color bar. Default: 0.4.
drawelevDraw surface elevation line (CALIPSO). Default: 1.
elevlwSurface elevation line width. Default: 0.5.
elevcolorSurface elevation line color. Default: #FF0000.
fontsizeFont size. Default: 10.
paddingPadding around axes and color bar in inches. Default: 1.
plotheightPlot height in inches. Default: 6.
titleFigure title. Default: automatic.
Orbit plots support additional options:
coastlinescolorCoastlines color. Default: #46396D.
coastlineslwCoastlines line width. Default: 0.4.
countriescolorCountries outlines color. Default: #46396D.
countrieslwCountries outlines line width. Default: 0.2.
drawcoastlinesDraw coastlines. Default: 1.
drawcountriesDraw countries outlines. Default: 1.
drawlakesDraw lakes. Default: 1.
drawlsmaskDraw land-sea mask. Default: 1.
drawmeridiansDraw meridians. Default: 1.
drawminormeridiansDraw meridians. Default: 1.
drawminorparallelsDraw minor parallels. Default: 1.
drawparallelsDraw parallels. Default: 1.
landcolorLand color. Default: #E9E4F7.
majormeridianscolorMajor meridians color. Default: #000000.
majormeridianslwMajor meridians line width. Default: 0.3.
majorparallelscolorMajor parallels line color. Default: #000000.
majorparallelslwMajor parallels line width. Default: 0.3.
mapresMap resolution: c (crude), l (low), i (intermediate), h (high), f (full). Default: i.
meridiansbaseMeridians base, or 0 for automatic. Default: 0.
minormeridianscolorMinor meridians color. Default: #000000.
minormeridianslwMinor meridians line width. Default: 0.1.
minorparallelscolorMinor parallels color. Default: #000000.
minorparallelslwMinor parallels line width. Default: 0.1.
nminormeridiansNumber of minor meridians between two major maridians, or 0 for automatic. Default: 0.
nminorparallelsNumber of minor parallels between two major parallels, or 0 for automatic. Default: 0.
parallelsbaseParallels base, or 0 for automatic. Default: 0.
trajcolorsList of trajectory colors. Default: #FF0000:#0000FF:#00FF00.
trajlwsList of trajectory line widths. Default: 0.5.
trajnminorticsNumber of minor ticks between adjecent major ticks, or -1 for automatic selection. Default: -1.
trajticksBase for trajectory major ticks in seconds, or -1 for automatic selection. Default: -1.
watercolorWater color. Default: #FFFFFF.
Plot the first 1000 rays of CloudSat Reflectivity Factor with colormap cloudsat-reflec.cmap into cloudsat-reflec.png:
ccplot -x 0..1000 -c cloudsat-reflectivity.cmap -o cloudsat-reflec.png cloudsat-reflec 2006224184641_01550_CS_2B-GEOPROF_GRANULE_P_R03_E01.hdf
Plot the first minute of CALIPSO Total Attenuated Backscatter 532nm between altitude 0 and 20 km with colormap calipso-backscatter.cmap into calipso532.png:
ccplot -y 0..20000 -x +0:00..+1:00 -c calipso-backscatter.cmap -o calipso532.png calipso532 CAL_LID_L1-Prov-V2-01.2006-07-06T19-50-51ZN.hdf
Plot CALIPSO trajectory superimposed on Aqua MODIS band 31 radiance with colormap modis-temperature.cmap into orbit-calipso.png:
ccplot -m x31 -c modis-temperature.cmap -p tmerc -o orbit-calipso.png orbit-clipped MYD021KM.A2006224.1945.005.2007140113559.hdf CAL_LID_L1-Prov-V2-01.2006-07-06T19-50-51ZN.hdf
CCPLOT_CMAP_PATH/usr/share/ccplot/cmap/*ccplot was written by Peter Kuma.