	SUBROUTINE SAVE(LSV)
*
*
*  This software was developed by the Thermal Modeling and Analysis
*  Project(TMAP) of the National Oceanographic and Atmospheric
*  Administration's (NOAA) Pacific Marine Environmental Lab(PMEL),
*  hereafter referred to as NOAA/PMEL/TMAP.
*
*  Access and use of this software shall impose the following
*  obligations and understandings on the user. The user is granted the
*  right, without any fee or cost, to use, copy, modify, alter, enhance
*  and distribute this software, and any derivative works thereof, and
*  its supporting documentation for any purpose whatsoever, provided
*  that this entire notice appears in all copies of the software,
*  derivative works and supporting documentation.  Further, the user
*  agrees to credit NOAA/PMEL/TMAP in any publications that result from
*  the use of this software or in any product that includes this
*  software. The names TMAP, NOAA and/or PMEL, however, may not be used
*  in any advertising or publicity to endorse or promote any products
*  or commercial entity unless specific written permission is obtained
*  from NOAA/PMEL/TMAP. The user also understands that NOAA/PMEL/TMAP
*  is not obligated to provide the user with any support, consulting,
*  training or assistance of any kind with regard to the use, operation
*  and performance of this software nor to provide the user with any
*  updates, revisions, new versions or "bug fixes".
*
*  THIS SOFTWARE IS PROVIDED BY NOAA/PMEL/TMAP "AS IS" AND ANY EXPRESS
*  OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
*  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
*  ARE DISCLAIMED. IN NO EVENT SHALL NOAA/PMEL/TMAP BE LIABLE FOR ANY SPECIAL,
*  INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER
*  RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF
*  CONTRACT, NEGLIGENCE OR OTHER TORTUOUS ACTION, ARISING OUT OF OR IN
*  CONNECTION WITH THE ACCESS, USE OR PERFORMANCE OF THIS SOFTWARE. 
*
*
C**    @(#)save.F	1.1    3/10/88
C**
C**
C***********************************************************************
C**
C**                 PLOT+ Scientific Graphics System
C**
C***********************************************************************
C**
C**
#ifdef unix
        INCLUDE 'PARAMPL5.DAT'
	INCLUDE 'AXIS.INC'
	INCLUDE 'AXISL.INC'
	INCLUDE 'CMRD.INC'
	INCLUDE 'CMRDL.INC'
	INCLUDE 'CONLAB.INC'
	INCLUDE 'cont_inc.decl'
	INCLUDE 'CONT.INC'
	INCLUDE 'DASHZZ.INC'
	INCLUDE 'DATA.INC'
	INCLUDE 'HAB.INC'
	INCLUDE 'LABCOM.INC'
	INCLUDE 'LABELS.INC'
	INCLUDE 'LINES.INC'
	INCLUDE 'MISS.INC'
	INCLUDE 'PEN.INC'
	INCLUDE 'PLT.INC'
	INCLUDE 'PLTL.INC'
	INCLUDE 'TAXIS.INC'
	INCLUDE 'TICS.INC'
	INCLUDE 'TICS2.INC'
	INCLUDE 'VECTOR.INC'
	INCLUDE 'VIEW.INC'
	INCLUDE 'ZGRID.INC'
	INCLUDE 'SWITCH.INC'
#else
        INCLUDE 'pplinc:PARAMPL5.DAT'
        INCLUDE 'pplinc:AXIS.INC'
        INCLUDE 'pplinc:AXISL.INC'
        INCLUDE 'pplinc:CMRD.INC'
        INCLUDE 'pplinc:CMRDL.INC'
        INCLUDE 'pplinc:CONLAB.INC'
        INCLUDE 'pplinc:CONT.INC'
        INCLUDE 'pplinc:DASHZZ.INC'
        INCLUDE 'pplinc:DATA.INC'
        INCLUDE 'pplinc:HAB.INC'
        INCLUDE 'pplinc:LABCOM.INC'
        INCLUDE 'pplinc:LABELS.INC'
        INCLUDE 'pplinc:LINES.INC'
        INCLUDE 'pplinc:MISS.INC'
        INCLUDE 'pplinc:PEN.INC'
        INCLUDE 'pplinc:PLT.INC'
        INCLUDE 'pplinc:PLTL.INC'
        INCLUDE 'pplinc:TAXIS.INC'
        INCLUDE 'pplinc:TICS.INC'
        INCLUDE 'pplinc:TICS2.INC'
        INCLUDE 'PPLINC:VECTOR.INC'
        INCLUDE 'pplinc:VIEW.INC'
        INCLUDE 'pplinc:ZGRID.INC'
        INCLUDE 'cmdinc:SWITCH.INC'
#endif
C
C	WRITE OUT THE COMMON BLOCKS
C
C	AXIS
C
	WRITE(LSV)XLO,XHI,XTIC,XLEN,XCSIZE,
     *	IAUTOX,ITYPEX,NMTCX,LINTX,LABELX,NSIGX,NTICX,XORG,
     *		  YLO,YHI,YTIC,YLEN,YCSIZE,
     *	IAUTOY,ITYPEY,NMTCY,LINTY,LABELY,NSIGY,NTICY,YORG,
     *	IAXON
C
C	AXISL
C
	WRITE(LSV)IFRX,IFRY,IT1,IT2,ITSTRT,ITMIN,ITMAX
C
C	CMRD
C
	WRITE(LSV)P,M,N,IFLG
C
C	CMRDL
C
	WRITE(LSV)ICOM,LABEL,IFORM
C
C	CONLAB
C
	WRITE(LSV)CONPRE,CONPST
C
C	CONT
C
	WRITE(LSV)ZLEV,LDIG,LWGT,LCLR,NLEV,HGT,NARC,IAUTOC,NLEV2,NSIGC,
     *	CANGLE,IVCOMP
C
C	DASHZZ
C
	WRITE(LSV)DASHLN,SPACLN,DSLAB
C
C	DATA
C
	WRITE(LSV)ITYPEZ,JX,JY,JZ,LUNN,LINEN,NREC,NVAR,NGRP,CAY,NRNG
C
C	HAB
C
	WRITE(LSV)IPLOT,IPAUSE,IHDCPY
C
C	LABCOM
C
	WRITE(LSV)HLAB1,HXLAB,HYLAB,HLABS,ICOUNT,NLAB,ICROSS,
     *  IGTLAB
C
C	LABELS
C
	WRITE(LSV)LAB1,XLAB,YLAB,LABS
C
C	LINES
C
	WRITE(LSV)IMARK,HMARK,ITYPE,XOFF,YOFF,XFCT,YFCT,
     *	DN1,UP1,DN2,UP2,LLENG,LNUM,IWIND
C
C	MISS
C
	WRITE(LSV)CMXLE,CMXEQ,CMXGE,CMYLE,CMYEQ,CMYGE,
     *		  CMZLE,CMZEQ,CMZGE,
     *		    XLE,  XEQ,  XGE,  YLE,  YEQ,  YGE,
     *		    ZLE,  ZEQ,  ZGE
C
C	PEN
C
	WRITE(LSV)IPEN,IP
C
C	PLT
C
	WRITE(LSV)ICODE,WIDTH,HEIGHT,MOD,IR,LUN
C
C	PLTL
C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READ(LSV)IPLOT,IPAUSE,IHDCPY
C
C	LABCOM
C
	READ(LSV)HLAB1,HXLAB,HYLAB,HLABS,ICOUNT,NLAB,ICROSS,
     *  IGTLAB
C
C	LABELS
C
	READ(LSV)LAB1,XLAB,YLAB,LABS
C
C	LINES
C
	READ(LSV)IMARK,HMARK,ITYPE,XOFF,YOFF,XFCT,YFCT,
     *	DN1,UP1,DN2,UP2,LLENG,LNUM,IWIND
C
C	MISS
C
	READ(LSV)CMXLE,CMXEQ,CMXGE,CMYLE,CMYEQ,CMYGE,
     *		 CMZLE,CMZEQ,CMZGE,
     *		   XLE,  XEQ,  XGE,  YLE,  YEQ,  YGE,
     *		   ZLE,  ZEQ,  ZGE
C
C	PEN
C
	READ(LSV)IPEN,IP
C
C	PLT
C
	READ(LSV)ICODE,WIDTH,HEIGHT,MOD,IR,LUN
C
C	PLTL
C
	READ(LSV)MAKEP
C
C	TAXIS
C
	READ(LSV)TLO,DT,TCSIZE,ITYPET,NMTCT,LABELT,
     *	IFDB,ISDB,ITFLG,VANG,IVFLG,IAUTOT,ITXTPE,ITXLBP
C
C	TICS
C
	READ(LSV)TSMX,TLX,TSMY,TLY,IX,IY
C
C	TICS2
C
	READ(LSV)ITX,ITY
C
C	VECTOR
C
	READ(LSV)VLEN,VUSRLN,VAUTO,VXLOC,VYLOC,VUSER,VKEY,
     *	VPOS,VFRMT,VSKPX,VSKPY,VMINLN,ARMAX,ARMIN,HFACT
C
C	VIEW
C
	READ(LSV)VIEWX,VIEWY,VIEWZ,ZSCLE,XYSCLE,VEWZMN,VEWZMX
C
C	ZGRID
C
	READ(LSV)IZTYP,IZMRK,IZLEN
C
C	SWITCH
C
	READ(LSV)FLAG
C
	RETURN
	END
