Re: Fw: Cannot seem to expand horizontal (x-axis) margin for color contour map

From: Adam Phillips <asphilli_at_nyahnyahspammersnyahnyah>
Date: Thu, 24 Sep 2009 11:33:16 -0600

Hi John,
I'm not sure what combination of resources that you have tried. The
simplest way to maximize the size of the plot is to set
conres_at_gsnMaximize = True
plot_base1 = gsn_csm_map(wks,conres)

You shouldn't need to set any of the 4 vp resources to maximize the size
of the plot, assuming gsnMaximize is set to True. However, I see that
you have set mpShapeMode = "FreeAspect" in your conres/res resource
lists. Setting that resource will change the aspect ratio of the plot,
depending on the way you set vpWidthF, vpHeightF, vpXF, and vpYF. Try
setting the following in your conres resource list:

conres_at_gsnMaximize = True
conres_at_mpShapeMode = "FreeAspect"
conres_at_vpWidthF = 0.9
conres_at_vpXF = 0.05
conres_at_vpYF = 0.9
conres_at_vpHeightF = 0.8

The resources that I set above should maximize the plot on the page.

You should not need to set any of those resources in your res resource
list, as those resources are being used for an overlay plot, and thus
the size of the plot is determined by the size of the base plot, in your
case plot_base1 set with the conres resource list.

Finally, if you are getting confused with respect to the NDC coordinate
system that NCL uses, take a look at using the procedure drawNDCGrid:
http://www.ncl.ucar.edu/Document/Functions/Shea_util/drawNDCGrid.shtml
as it draws the NDC grid on your current plot for assistance in placing
objects, as well as maximizing.

If this advice doesn't help, please let ncl-talk know and include a .gif
(or .jpg or .png) image so we can get a better handle as to what is
going on.
Best regards,
Adam

McCormick.JohnW_at_epamail.epa.gov wrote:
>
>
> John W. McCormick, Systems Programmer / DBA
> High Performance Computing & Scientific Visualization
> Lockheed Martin Information Technology, Supporting the EPA
> Research Triangle Park, NC
> 919-541-0890
>
> Federal Infrastructure Contact - Ravi Nair
> 919-541-5467 - nair.ravi_at_epa.gov <mailto:nair.ravi_at_epa.gov>
> Federal Infrastructure Contact - Joe Retzer, Ph.D.
> 919-541-4190 - retzer.joseph_at_epa.gov <mailto:retzer.joseph_at_epa.gov>
>
> ############################################
> ### Work Information - (Signature) ###
> ############################################
> John W. McCormick, Systems Programmer, MD: N127-01
> Lockheed Martin, Contractor to US-EPA
> US-EPA, Bldg NCC, Rm N135B
> Durham, NC 27711
> Office: 919-541-0890
> Fax : 919-541-0056
> Work Email: mccormick.johnw_at_epa.gov <mailto:mccormick.johnw_at_epa.gov>
>
> In the following cshell script, I have imbedded an NCL script that
> extracts out temperature values and plots them on a color contour map
> (of Northern Gulf) along the Southern US coastal border. The main
> problem is that the contour map (that is generated by the embedded NCL
> script) cannot seem to be widened along the horizontal (left and right)
> map borders. I have tried many ways in setting the various aspect ratio
> widths (and height) but have not succeeded in getting the width large
> enough so that the vertical labels don't seem to be so "crowded" into
> (what I call the "canvas" of the map). Do you have any suggestions?
>
> Just a note: --- I don't seem to have as much of a problem with the
> height (top and bottom margins) in having or creating room for the
> labels and legends.
>
>
> ##################################################################
> ##
> ## Script shown below:
> ##
> ##
> ##################################################################
>
> #!/bin/csh
> echo "##############################################################"
> echo "##### "$0
> echo "##### "$1
> echo "##############################################################"
> set FileName77 = $1
> set Year77 = `echo $FileName77 | cut -c5-8`
> echo "##############################################################"
> echo "##"
> echo "## Year is: $Year77"
> echo "##"
> echo "##############################################################"
> set Month77 = `echo $FileName77 | cut -c9-10`
> echo "##############################################################"
> echo "##"
> echo "## Month is: $Month77"
> echo "##"
> echo "##############################################################"
> set Day77 = `echo $FileName77 | cut -c11-12`
> echo "##############################################################"
> echo "##"
> echo "## Day77 is: $Day77"
> echo "##"
> echo "##############################################################"
> set Hour77 = `echo $FileName77 | cut -c13-14`
> echo "##############################################################"
> echo "##"
> echo "## Hour77 is: $Hour77"
> echo "##"
> echo "##############################################################"
> set File_Name_Arg1 = 'FileName99="'"$FileName77"'"'
> set File_Name_Arg2 = Year99="$Year77"
> set File_Name_Arg3 = Month99="$Month77"
> set File_Name_Arg4 = Day99="$Day77"
> set File_Name_Arg5 = Hour99="$Hour77"
> /usr/local/ncl_ncarg/bin/ncl \
> $File_Name_Arg1 \
> $File_Name_Arg2 \
> $File_Name_Arg3 \
> $File_Name_Arg4 \
> $File_Name_Arg5 \
> << EEOOFF
> ;*************************************************
> ; 20090730_testncl00.ncl
> ;************************************************
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl"
> ;************************************************
> begin
> print(FileName99)
> print(Year99)
> print(Month99)
> print(Day99)
> print(Hour99)
> MonthAA = (/"
> ","Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"/)
>
> NumberArray =
> (/"00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32"/)
>
> HourAA =
> (/"00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","00"/)
>
>
> Depth99=(/"0.0","2.5","5.0","7.5","10.0","15.0","20.0","25.0","30.0","35.0","40.0","45.0","50.0","60.0","70.0","80.0","90.0","100.0","125.0","150.0","200.0","250.0","300.0","400.0","500.0","600.0","700.0","800.0","900.0","1000.0"/)
>
> ;************************************************
> ; read in netCDF file
> ;************************************************
> nc_file_in ="/amber/home/jpu/GulfBreeze/"+FileName99
> ; a =
> addfile("/amber/home/jpu/GulfBreeze/t3d_2009061100_nc_ascii.nc","r")
> a = addfile(nc_file_in,"r")
> ;************************************************
> ; read in zonal [u] and meridional [v] winds
> ;************************************************
> do idepth = 0,30
> T = a->temp(0,idepth,:,:) ; (time,lev,lat,lon)
> ; T = a->temp(:,:,:,:) ; (time,lev,lat,lon)
> ; T = a->temp(:,:,:,:) ; (time,lev,lat,lon)
> lon = a->lon
> lat = a->lat
> dep = a->dep
>
>
> ;************************************************
> ; open ps (output) file and create plot
> ;************************************************
> ;wks = gsn_open_wks("ps","ocean"+Depth99(idepth)) ;
> open ps file
> wks =
> gsn_open_wks("png","t3d_"+Year99+NumberArray(Month99)+NumberArray(Day99)+NumberArray(Hour99)+"_nc_ascii"+Depth99(idepth)+"TEST")
> ; open png file
> ; wks = gsn_open_wks("x11","max")
> ; wks = gsn_open_wks("x11","ce")
>
> ; gsn_define_colormap(wks,"BlAqGrYeOrRe") ; choose colormap
> gsn_define_colormap(wks,"rainbow") ; choose colormap
> ; gsn_define_colormap(wks,"gui_default") ; choose colormap
> ; ###############################################################
> ; ##
> ; ## Lat-Lon Lines Overlay
> ; ##
> ; ###############################################################
> conres = True
> ; conres_at_tiMainString <mailto:conres_at_tiMainString> =
> "Plot_Base" ; add titles
> ; conres_at_gsnMaximize <mailto:conres_at_gsnMaximize> = True
> ; Maximize plot in frame
> conres_at_gsnDraw <mailto:conres_at_gsnDraw> = False
> conres_at_gsnFrame <mailto:conres_at_gsnFrame> = False
> conres_at_sfXArray <mailto:conres_at_sfXArray> = lon
> conres_at_sfYArray <mailto:conres_at_sfYArray> = lat
> conres_at_gsnMajorLatSpacing <mailto:conres_at_gsnMajorLatSpacing> =
> 5 ; change maj lat tm spacing
> conres_at_gsnMajorLonSpacing <mailto:conres_at_gsnMajorLonSpacing> =
> 5 ; change maj lon tm spacing
> conres_at_mpMinLatF <mailto:conres_at_mpMinLatF> =
> 27.5 ; map area
> conres_at_mpMaxLatF <mailto:conres_at_mpMaxLatF> =
> 30.7 ; map area
> conres_at_mpMinLonF <mailto:conres_at_mpMinLonF> = -92.2
> conres_at_mpMaxLonF <mailto:conres_at_mpMaxLonF> = -86.0
> conres_at_mpGridLineColor <mailto:conres_at_mpGridLineColor> =
> 3 ; Turn on grid lat/lon lines
> conres_at_mpGridSpacingF <mailto:conres_at_mpGridSpacingF> =
> 1.0 ; lat/lon lines every 2 deg
> conres_at_mpGridLineDashPattern
> <mailto:conres_at_mpGridLineDashPattern> = 2 ; lat/lon
> lines as dashed
> conres_at_txFontHeightF <mailto:conres_at_txFontHeightF> = 0.03
> conres_at_tmYLLabels <mailto:conres_at_tmYLLabels> =
> (/"28N","29N","30N"/)
> conres_at_tmYLValues <mailto:conres_at_tmYLValues> =
> (/28,29,30/)
> conres_at_mpOutlineBoundarySets
> <mailto:conres_at_mpOutlineBoundarySets>= "Geophysical"
> conres_at_mpGeophysicalLineColor
> <mailto:conres_at_mpGeophysicalLineColor>= "black"
> conres_at_mpGeophysicalLineThicknessF
> <mailto:conres_at_mpGeophysicalLineThicknessF> = 4.0
> conres_at_mpFillBoundarySets <mailto:conres_at_mpFillBoundarySets>=
> "GeophysicalAndUSStates" ; state boundaries
> conres_at_mpLandFillColor <mailto:conres_at_mpLandFillColor> = "red"
> conres_at_mpNationalLineColor
> <mailto:conres_at_mpNationalLineColor> = 5
> conres_at_mpNationalLineThicknessF
> <mailto:conres_at_mpNationalLineThicknessF> = 5.2
> conres_at_mpUSStateLineColor
> <mailto:conres_at_mpUSStateLineColor> = "Background"
> conres_at_mpUSStateLineThicknessF
> <mailto:conres_at_mpUSStateLineThicknessF> = 4.0
> conres_at_mpUSStateLineColor <mailto:conres_at_mpUSStateLineColor> =
> "white" ; sets color of US State boundaries
> conres_at_mpShapeMode <mailto:conres_at_mpShapeMode> =
> "FreeAspect"
> conres_at_tmXBValues <mailto:conres_at_tmXBValues> =
> (/-92,-91,-90,-89,-88,-87,-86/)
> conres_at_tmXBLabels <mailto:conres_at_tmXBLabels> =
> (/"92W","91W","90W","89W","88W","87W","86W"/)
> conres_at_mpFillOn <mailto:conres_at_mpFillOn> = True
> conres_at_mpGridAndLimbOn <mailto:conres_at_mpGridAndLimbOn> =
> True ; lat/lon lines on
> conres_at_vpWidthF <mailto:conres_at_vpWidthF> = 0.65
> conres_at_vpHeightF <mailto:conres_at_vpHeightF> = 0.65
> conres_at_vpXF <mailto:conres_at_vpXF> = 0.15
> conres_at_vpYF <mailto:conres_at_vpYF> = 0.85
> plot_base1 = gsn_csm_map(wks,conres)
> ; draw(plot_base1)
> ; frame(wks)
>
> res = True
> ; ###############################################################
> ; gsn Stuff
> ; ###############################################################
> ; res_at_gsnMaximize <mailto:res_at_gsnMaximize> = True ;
> Maximize plot in frame
> res_at_gsnSpreadColors <mailto:res_at_gsnSpreadColors> = True
> ; use full colormap
> res_at_gsnMajorLatSpacing <mailto:res_at_gsnMajorLatSpacing> =
> 1 ; change maj lat tm spacing
> res_at_gsnMajorLonSpacing <mailto:res_at_gsnMajorLonSpacing> =
> 1 ; change maj lon tm spacing
> res_at_gsnDraw <mailto:res_at_gsnDraw> = False ; draw
> picture
> res_at_gsnFrame <mailto:res_at_gsnFrame> = False ;
> advance frame
> res_at_gsnContourZeroLineThicknessF
> <mailto:res_at_gsnContourZeroLineThicknessF>= 3.5
> ; res_at_gsnPaperOrientation <mailto:res_at_gsnPaperOrientation> =
> "Landscape"
> ; res_at_gsnPaperHeight <mailto:res_at_gsnPaperHeight> = 11.0
> ; res_at_gsnPaperMargin <mailto:res_at_gsnPaperMargin> = 0.09
> ; res_at_gsnOrientation <mailto:res_at_gsnOrientation> = "auto"
> res_at_gsnLeftString <mailto:res_at_gsnLeftString> = "Date-
> "+Year99+"-"+MonthAA(Month99)+"-"+Day99 ; right string title
> res_at_gsnLeftStringFontHeightF
> <mailto:res_at_gsnLeftStringFontHeightF> = .025
> res_at_gsnRightString <mailto:res_at_gsnRightString> =
> "Hour- "+HourAA(Hour99)+" GMT" ;right string title
> res_at_gsnRightStringFontHeightF
> <mailto:res_at_gsnRightStringFontHeightF> = .025
> ; res_at_gsnMaskLambertConformal
> <mailto:res_at_gsnMaskLambertConformal> = True
> res_at_gsnBoxMargin <mailto:res_at_gsnBoxMargin> = 0.94
> ; ###############################################################
> ; cn Stuff
> ; ###############################################################
> res_at_cnLevelSelectionMode <mailto:res_at_cnLevelSelectionMode>=
> "ManualLevels" ; set manual contour levels
> res_at_cnMinLevelValF <mailto:res_at_cnMinLevelValF> =
> 0. ; set min contour level
> res_at_cnMaxLevelValF <mailto:res_at_cnMaxLevelValF> =
> 30. ; set max contour level
> res_at_cnLevelSpacingF <mailto:res_at_cnLevelSpacingF> =
> 2.0 ; set contour spacing
> res_at_cnLinesOn <mailto:res_at_cnLinesOn> =
> True ; contour lines
> res_at_cnFillOn <mailto:res_at_cnFillOn> =
> True ; turn on color fill
> res_at_cnLineLabelBackgroundColor
> <mailto:res_at_cnLineLabelBackgroundColor>= 0 ; white bckgrnd
> around label
> res_at_cnFillDrawOrder <mailto:res_at_cnFillDrawOrder> =
> "PreDraw" ; Put continents on top
> res_at_cnMissingValFillColor <mailto:res_at_cnMissingValFillColor>
> = "black"
> res_at_cnMissingValFillPattern
> <mailto:res_at_cnMissingValFillPattern> = 16
> res_at_cnLineLabelsOn <mailto:res_at_cnLineLabelsOn> =
> False ; turn line labels off
> ; ###############################################################
> ; lb Stuff
> ; ###############################################################
> res_at_lbLabelStride <mailto:res_at_lbLabelStride> =
> 1 ; stride on label bar
> res_at_lbOrientation <mailto:res_at_lbOrientation> =
> "vertical" ; ncl default is vertical
> res_at_lbTitleString <mailto:res_at_lbTitleString> = "Color
> Table (Temp. in Degrees, C.) "
> res_at_lbTitlePosition <mailto:res_at_lbTitlePosition> = "Right"
> res_at_lbTitleOffsetF <mailto:res_at_lbTitleOffsetF> = 0.05
> res_at_lbTitleAngleF <mailto:res_at_lbTitleAngleF> = 90.0
> res_at_lbTitleDirection <mailto:res_at_lbTitleDirection> = "Up"
> res_at_lbLabelFontHeightF <mailto:res_at_lbLabelFontHeightF> = .022
> res_at_lbLabelOffsetF <mailto:res_at_lbLabelOffsetF> = 0.05
> res_at_lbTitleFontHeightF <mailto:res_at_lbTitleFontHeightF> = .030
> res_at_lbFillScaleF <mailto:res_at_lbFillScaleF> = True
> ; res_at_lbAutoManage <mailto:res_at_lbAutoManage> = True
> ; ###############################################################
> ; sf Stuff
> ; ###############################################################
> res_at_sfXArray <mailto:res_at_sfXArray> = lon
> res_at_sfYArray <mailto:res_at_sfYArray> = lat
> ; ###############################################################
> ; mp Stuff
> ; ###############################################################
> res_at_mpFillOceanColor <mailto:res_at_mpFillOceanColor> = 0
> ; (white)
> res_at_mpDefaultFillColor <mailto:res_at_mpDefaultFillColor> = 16
> res_at_mpFillColors <mailto:res_at_mpFillColors> = (/0,0,0,0/)
> ;globe is filled white
> res_at_mpFillOn <mailto:res_at_mpFillOn> = True
> res_at_mpOutlineOn <mailto:res_at_mpOutlineOn> =
> True ; turn on map outline
> res_at_mpMaskAreaSpecifiers <mailto:res_at_mpMaskAreaSpecifiers>=
> "USStatesLand"
> ; res_at_mpGridAndLimbOn <mailto:res_at_mpGridAndLimbOn> =
> True ; lat/lon lines on
> ; res_at_mpGridLineColor <mailto:res_at_mpGridLineColor> =
> 1 ; Turn on grid lat/lon lines
> ; res_at_mpGridSpacingF <mailto:res_at_mpGridSpacingF> =
> 1.0 ; lat/lon lines every 2 deg
> ; res_at_mpGridLineDashPattern <mailto:res_at_mpGridLineDashPattern> =
> 2 ; lat/lon lines as dashed
> res_at_mpTickMarkDisplayMode <mailto:res_at_mpTickMarkDisplayMode> =
> "Always" ; turn on tickmarks
> res_at_mpProjection <mailto:res_at_mpProjection> =
> "CylindricalEquidistant"
> res_at_mpUSStateLineColor <mailto:res_at_mpUSStateLineColor> =
> "white" ; sets color of US State boundaries
>
>
>
> res_at_mpMinLatF <mailto:res_at_mpMinLatF> =
> 27.5 ; map area
> res_at_mpMaxLatF <mailto:res_at_mpMaxLatF> =
> 30.7 ; map area
> res_at_mpMinLonF <mailto:res_at_mpMinLonF> = -92.2
> res_at_mpMaxLonF <mailto:res_at_mpMaxLonF> = -86.0
> res_at_mpOutlineBoundarySets <mailto:res_at_mpOutlineBoundarySets> =
> "Geophysical"
> res_at_mpGeophysicalLineColor <mailto:res_at_mpGeophysicalLineColor> =
> "(/255,0,0/)"
> res_at_mpGeophysicalLineThicknessF
> <mailto:res_at_mpGeophysicalLineThicknessF> = 3.0
> res_at_mpNationalLineColor <mailto:res_at_mpNationalLineColor> =
> "(/0,255,0/)"
> res_at_mpNationalLineThicknessF
> <mailto:res_at_mpNationalLineThicknessF> = 4.0
> res_at_mpUSStateLineColor <mailto:res_at_mpUSStateLineColor> =
> "Foreground"
> res_at_mpUSStateLineDashPattern
> <mailto:res_at_mpUSStateLineDashPattern> = "SolidLine"
> res_at_mpUSStateLineThicknessF
> <mailto:res_at_mpUSStateLineThicknessF> = 3.0
> res_at_mpLandFillColor <mailto:res_at_mpLandFillColor> =
> "white" ; set to white
> res_at_mpShapeMode <mailto:res_at_mpShapeMode> = "FreeAspect"
> res_at_mpFillBoundarySets <mailto:res_at_mpFillBoundarySets> =
> "National" ; state boundaries
>
> ; ###############################################################
> ; pm Stuff
> ; ###############################################################
> res_at_pmLabelBarOrthogonalPosF
> <mailto:res_at_pmLabelBarOrthogonalPosF> = .06 ; move label bar down
> ; ###############################################################
> ; ti Stuff
> ; ###############################################################
> res_at_tiMainString <mailto:res_at_tiMainString> = "Northern
> Gulf of Mexico Model Output " ; add titles
> res_at_tiMainFontHeightF <mailto:res_at_tiMainFontHeightF> = .031
> res_at_tiXAxisString <mailto:res_at_tiXAxisString> = "Longitude
> (Degrees W.); [Depth from MSL] = "+Depth99(idepth)+" meters"
> ; res_at_tiXAxisString <mailto:res_at_tiXAxisString> = "Longitude
> (Degrees W.); [Level from Sea-Level] = 0)"
> res_at_tiXAxisFontHeightF <mailto:res_at_tiXAxisFontHeightF> =
> 0.027 ; resize tick
> res_at_tiXBLabelFontHeightF <mailto:res_at_tiXBLabelFontHeightF>=
> 0.022 ; resize tick labels
> res_at_tiXAxisOffsetYF <mailto:res_at_tiXAxisOffsetYF> = -0.08
> res_at_tiXAxisOffsetXF <mailto:res_at_tiXAxisOffsetXF> = 0.03
> res_at_tiYAxisString <mailto:res_at_tiYAxisString> = "Latitude
> (Degrees N.) "
> res_at_tiYBLabelFontHeightF <mailto:res_at_tiYBLabelFontHeightF>= 0.022
> res_at_tiYAxisFontHeightF <mailto:res_at_tiYAxisFontHeightF> =
> 0.028 ; resize tick
> res_at_tiYAxisOffsetYF <mailto:res_at_tiYAxisOffsetYF> = 0.04
> res_at_tiYAxisOffsetXF <mailto:res_at_tiYAxisOffsetXF> = -0.07
>
> ; ###############################################################
> ; tm Stuff
> ; ###############################################################
> res_at_txFontHeightF <mailto:res_at_txFontHeightF> = 0.02
> ; res_at_tmYUseRight <mailto:res_at_tmYUseRight> = True
> ; res_at_tmYRMode <mailto:res_at_tmYRMode> = "EXPLICIT"
>
> ; res_at_tmYLMode <mailto:res_at_tmYLMode> = False
> res_at_tmYLMajorOutwardLengthF <mailto:res_at_tmYLMajorOutwardLengthF>= 0.0
> res_at_tmYLMinorOutwardLengthF <mailto:res_at_tmYLMinorOutwardLengthF>= 0.0
> res_at_tmYLValues <mailto:res_at_tmYLValues> = (/28,29,30/)
> res_at_tmYLLabels <mailto:res_at_tmYLLabels> = "" +
> res_at_tmYLValues <mailto:res_at_tmYLValues>
>
> ; res_at_tmXBMode <mailto:res_at_tmXBMode> = "Explicit"
> ; res_at_tmXBMajorOn <mailto:res_at_tmXBMajorOn> = True
> res_at_tmXBMajorLengthF <mailto:res_at_tmXBMajorLengthF> = 0.00
> res_at_tmXBMinorLengthF <mailto:res_at_tmXBMinorLengthF> = 0.00
> res_at_tmXBLabelsOn <mailto:res_at_tmXBLabelsOn> = True
>
>
>
>
>
>
> res_at_tmXBValues <mailto:res_at_tmXBValues> =
> (/-92,-91,-90,-89,-88,-87,-86/)
> res_at_tmXBLabels <mailto:res_at_tmXBLabels> =
> (/"92W","91W","90W","89W","88W","87W","86W"/)
> res_at_tmXBMajorLineColor <mailto:res_at_tmXBMajorLineColor> = "red"
> ; ###############################################################
> ; vp Stuff
> ; ###############################################################
> res_at_vpWidthF <mailto:res_at_vpWidthF> = 0.65
> res_at_vpHeightF <mailto:res_at_vpHeightF> = 0.65
> res_at_vpXF <mailto:res_at_vpXF> = 0.15
> res_at_vpYF <mailto:res_at_vpYF> = 0.85
> ; T_at_missing_value <mailto:T_at_missing_value>= -99
> T@_FillValue <mailto:T@_FillValue>= -99
> ; plot_temp1 = gsn_csm_contour(wks,T(0,1,:,:),res)
> ; overlay(plot_base, plot_temp1)
> ; draw(plot_base)
> ; frame (wks)
> ; plot_temp2 = gsn_csm_contour(wks,T(0,2,:,:),res)
> ; overlay(plot_base, plot_temp2)
> ; draw(plot_base)
> ; frame (wks)
> ; plot_temp3 = gsn_csm_contour(wks,T(0,3,:,:),res)
> ; overlay(plot_base, plot_temp3)
> ; draw(plot_base)
> ; frame (wks)
> plot_temp99 = gsn_csm_contour(wks,T,res)
> ; overlay(plot_base1, plot_base2)
> overlay(plot_base1, plot_temp99)
> draw(plot_base1)
> frame (wks)
> ; plot=gsn_csm_contour(wks,T,res) ; create plot
> ; plot2=gsn_csm_contour_map_ce(wks,T(0,idepth,:,:),res) ;
> create plot
> ; plotlat = gsn_csm_map(wks,conres) ; create contours of apexlat
> ; plotlon = gsn_csm_map(wks,conres) ; create contours of apexlat
> ; overlay(plotlat,plotlon)
> ; overlay(plot,plotlat)
> ; draw(plot)
> ; frame (wks)
> ; plot_map=gsn_csm_contour_map(wks,T,res) ; create plot
> ; plot=gsn_csm_contour_map(wks,T,res) ; create plot
> ; genCmapMnMxSpan (wks, plot, "Blue" , "Red") ; create color map
> end do
> end
> EEOOFF
> ############################################################
> ##
> ## End of NCL Script
> ##
> ############################################################
>
>
>
> ## set Year77
> ## set Month77
> ## set Day77
> ## set Hour77
> set DepthArray = ("0.0" "2.5" "5.0" "7.5" "10.0" "15.0" "20.0"
> "25.0" "30.0" "35.0" "40.0" "45.0" "50.0" "60.0" "70.0" "80.0"
> "90.0" "100.0" "125.0" "150.0" "200.0" "250.0" "300.0" "400.0"
> "500.0" "600.0" "700.0" "800.0" "900.0" "1000.0")
> set Month77 = `printf "%02.0f" $Month77`
> set Day77 = `printf "%02.0f" $Day77`
> set Hour77 = `printf "%02.0f" $Hour77`
> set local_dir = "/amber/home/jpu/GulfBreeze/"
> set remote_dir = "/home/mccormik/GulfBreeze/"
> set RemFileName01 =
> "/home/mccormik/GulfBreeze/20090921Depth0000.0/t3d_"$Year77$Month77$Day77$Hour77"_nc_ascii"$DepthArray[1]"TEST.png"
>
> set LocFileName01 =
> "/amber/home/jpu/GulfBreeze/t3d_"$Year77$Month77$Day77$Hour77"_nc_ascii"$DepthArray[1]"TEST.png"
>
>
> set RemFileName02 =
> "/home/mccormik/GulfBreeze/20090921Depth0002.5/t3d_"$Year77$Month77$Day77$Hour77"_nc_ascii"$DepthArray[2]"TEST.png"
>
> set LocFileName02 =
> "/amber/home/jpu/GulfBreeze/t3d_"$Year77$Month77$Day77$Hour77"_nc_ascii"$DepthArray[2]"TEST.png"
>
>
> set RemFileName03 =
> "/home/mccormik/GulfBreeze/20090921Depth0005.0/t3d_"$Year77$Month77$Day77$Hour77"_nc_ascii"$DepthArray[3]"TEST.png"
>
> set LocFileName03 =
> "/amber/home/jpu/GulfBreeze/t3d_"$Year77$Month77$Day77$Hour77"_nc_ascii"$DepthArray[3]"TEST.png"
>
>
> set RemFileName04 =
> "/home/mccormik/GulfBreeze/20090921Depth0007.5/t3d_"$Year77$Month77$Day77$Hour77"_nc_ascii"$DepthArray[4]"TEST.png"
>
> set LocFileName04 =
> "/amber/home/jpu/GulfBreeze/t3d_"$Year77$Month77$Day77$Hour77"_nc_ascii"$DepthArray[4]"TEST.png"
>
>
> set RemFileName05 =
> "/home/mccormik/GulfBreeze/20090921Depth0010.0/t3d_"$Year77$Month77$Day77$Hour77"_nc_ascii"$DepthArray[5]"TEST.png"
>
> set LocFileName05 =
> "/amber/home/jpu/GulfBreeze/t3d_"$Year77$Month77$Day77$Hour77"_nc_ascii"$DepthArray[5]"TEST.png"
>
>
> set RemFileName06 =
> "/home/mccormik/GulfBreeze/20090921Depth0015.0/t3d_"$Year77$Month77$Day77$Hour77"_nc_ascii"$DepthArray[6]"TEST.png"
>
> set LocFileName06 =
> "/amber/home/jpu/GulfBreeze/t3d_"$Year77$Month77$Day77$Hour77"_nc_ascii"$DepthArray[6]"TEST.png"
>
>
> set RemFileName07 =
> "/home/mccormik/GulfBreeze/20090921Depth0020.0/t3d_"$Year77$Month77$Day77$Hour77"_nc_ascii"$DepthArray[7]"TEST.png"
>
> set LocFileName07 =
> "/amber/home/jpu/GulfBreeze/t3d_"$Year77$Month77$Day77$Hour77"_nc_ascii"$DepthArray[7]"TEST.png"
>
>
> set RemFileName08 =
> "/home/mccormik/GulfBreeze/20090921Depth0025.0/t3d_"$Year77$Month77$Day77$Hour77"_nc_ascii"$DepthArray[8]"TEST.png"
>
>
> set LocFileName08 =
> "/amber/home/jpu/GulfBreeze/t3d_"$Year77$Month77$Day77$Hour77"_nc_ascii"$DepthArray[8]"TEST.png"
>
>
> set RemFileName09 =
> "/home/mccormik/GulfBreeze/20090921Depth0030.0/t3d_"$Year77$Month77$Day77$Hour77"_nc_ascii"$DepthArray[9]"TEST.png"
>
> set LocFileName09 =
> "/amber/home/jpu/GulfBreeze/t3d_"$Year77$Month77$Day77$Hour77"_nc_ascii"$DepthArray[9]"TEST.png"
>
> set RemFileName10 =
> "/home/mccormik/GulfBreeze/20090921Depth0035.0/t3d_"$Year77$Month77$Day77$Hour77"_nc_ascii"$DepthArray[10]"TEST.png"
>
> set LocFileName10 =
> "/amber/home/jpu/GulfBreeze/t3d_"$Year77$Month77$Day77$Hour77"_nc_ascii"$DepthArray[10]"TEST.png"
>
>
> set RemFileName11 =
> "/home/mccormik/GulfBreeze/20090921Depth0040.0/t3d_"$Year77$Month77$Day77$Hour77"_nc_ascii"$DepthArray[11]"TEST.png"
>
> set LocFileName11 =
> "/amber/home/jpu/GulfBreeze/t3d_"$Year77$Month77$Day77$Hour77"_nc_ascii"$DepthArray[11]"TEST.png"
>
>
> set RemFileName12 =
> "/home/mccormik/GulfBreeze/20090921Depth0045.0/t3d_"$Year77$Month77$Day77$Hour77"_nc_ascii"$DepthArray[12]"TEST.png"
>
> set LocFileName12 =
> "/amber/home/jpu/GulfBreeze/t3d_"$Year77$Month77$Day77$Hour77"_nc_ascii"$DepthArray[12]"TEST.png"
>
>
> set RemFileName13 =
> "/home/mccormik/GulfBreeze/20090921Depth0050.0/t3d_"$Year77$Month77$Day77$Hour77"_nc_ascii"$DepthArray[13]"TEST.png"
>
> set LocFileName13 =
> "/amber/home/jpu/GulfBreeze/t3d_"$Year77$Month77$Day77$Hour77"_nc_ascii"$DepthArray[13]"TEST.png"
>
>
> set RemFileName14 =
> "/home/mccormik/GulfBreeze/20090921Depth0060.0/t3d_"$Year77$Month77$Day77$Hour77"_nc_ascii"$DepthArray[14]"TEST.png"
>
> set LocFileName14 =
> "/amber/home/jpu/GulfBreeze/t3d_"$Year77$Month77$Day77$Hour77"_nc_ascii"$DepthArray[14]"TEST.png"
>
>
> set RemFileName15 =
> "/home/mccormik/GulfBreeze/20090921Depth0070.0/t3d_"$Year77$Month77$Day77$Hour77"_nc_ascii"$DepthArray[15]"TEST.png"
>
> set LocFileName15 =
> "/amber/home/jpu/GulfBreeze/t3d_"$Year77$Month77$Day77$Hour77"_nc_ascii"$DepthArray[15]"TEST.png"
>
>
> set RemFileName16 =
> "/home/mccormik/GulfBreeze/20090921Depth0080.0/t3d_"$Year77$Month77$Day77$Hour77"_nc_ascii"$DepthArray[16]"TEST.png"
>
> set LocFileName16 =
> "/amber/home/jpu/GulfBreeze/t3d_"$Year77$Month77$Day77$Hour77"_nc_ascii"$DepthArray[16]"TEST.png"
>
>
> set RemFileName17 =
> "/home/mccormik/GulfBreeze/20090921Depth0090.0/t3d_"$Year77$Month77$Day77$Hour77"_nc_ascii"$DepthArray[17]"TEST.png"
>
> set LocFileName17 =
> "/amber/home/jpu/GulfBreeze/t3d_"$Year77$Month77$Day77$Hour77"_nc_ascii"$DepthArray[17]"TEST.png"
>
>
>
> set RemFileName18 =
> "/home/mccormik/GulfBreeze/20090921Depth0100.0/t3d_"$Year77$Month77$Day77$Hour77"_nc_ascii"$DepthArray[18]"TEST.png"
>
> set LocFileName18 =
> "/amber/home/jpu/GulfBreeze/t3d_"$Year77$Month77$Day77$Hour77"_nc_ascii"$DepthArray[18]"TEST.png"
>
>
> set RemFileName19 =
> "/home/mccormik/GulfBreeze/20090921Depth0125.0/t3d_"$Year77$Month77$Day77$Hour77"_nc_ascii"$DepthArray[19]"TEST.png"
>
> set LocFileName19 =
> "/amber/home/jpu/GulfBreeze/t3d_"$Year77$Month77$Day77$Hour77"_nc_ascii"$DepthArray[19]"TEST.png"
>
>
> set RemFileName20 =
> "/home/mccormik/GulfBreeze/20090921Depth0150.0/t3d_"$Year77$Month77$Day77$Hour77"_nc_ascii"$DepthArray[20]"TEST.png"
>
> set LocFileName20 =
> "/amber/home/jpu/GulfBreeze/t3d_"$Year77$Month77$Day77$Hour77"_nc_ascii"$DepthArray[20]"TEST.png"
>
>
> set RemFileName21 =
> "/home/mccormik/GulfBreeze/20090921Depth0200.0/t3d_"$Year77$Month77$Day77$Hour77"_nc_ascii"$DepthArray[21]"TEST.png"
>
> set LocFileName21 =
> "/amber/home/jpu/GulfBreeze/t3d_"$Year77$Month77$Day77$Hour77"_nc_ascii"$DepthArray[21]"TEST.png"
>
>
> set RemFileName22 =
> "/home/mccormik/GulfBreeze/20090921Depth0250.0/t3d_"$Year77$Month77$Day77$Hour77"_nc_ascii"$DepthArray[22]"TEST.png"
>
> set LocFileName22 =
> "/amber/home/jpu/GulfBreeze/t3d_"$Year77$Month77$Day77$Hour77"_nc_ascii"$DepthArray[22]"TEST.png"
>
>
> set RemFileName23 =
> "/home/mccormik/GulfBreeze/20090921Depth0300.0/t3d_"$Year77$Month77$Day77$Hour77"_nc_ascii"$DepthArray[23]"TEST.png"
>
> set LocFileName23 =
> "/amber/home/jpu/GulfBreeze/t3d_"$Year77$Month77$Day77$Hour77"_nc_ascii"$DepthArray[23]"TEST.png"
>
>
> set RemFileName24 =
> "/home/mccormik/GulfBreeze/20090921Depth0400.0/t3d_"$Year77$Month77$Day77$Hour77"_nc_ascii"$DepthArray[24]"TEST.png"
>
> set LocFileName24 =
> "/amber/home/jpu/GulfBreeze/t3d_"$Year77$Month77$Day77$Hour77"_nc_ascii"$DepthArray[24]"TEST.png"
>
>
> set RemFileName25 =
> "/home/mccormik/GulfBreeze/20090921Depth0500.0/t3d_"$Year77$Month77$Day77$Hour77"_nc_ascii"$DepthArray[25]"TEST.png"
>
> set LocFileName25 =
> "/amber/home/jpu/GulfBreeze/t3d_"$Year77$Month77$Day77$Hour77"_nc_ascii"$DepthArray[25]"TEST.png"
>
>
> set RemFileName26 =
> "/home/mccormik/GulfBreeze/20090921Depth0600.0/t3d_"$Year77$Month77$Day77$Hour77"_nc_ascii"$DepthArray[26]"TEST.png"
>
> set LocFileName26 =
> "/amber/home/jpu/GulfBreeze/t3d_"$Year77$Month77$Day77$Hour77"_nc_ascii"$DepthArray[26]"TEST.png"
>
>
>
> set RemFileName27 =
> "/home/mccormik/GulfBreeze/20090921Depth0700.0/t3d_"$Year77$Month77$Day77$Hour77"_nc_ascii"$DepthArray[27]"TEST.png"
>
> set LocFileName27 =
> "/amber/home/jpu/GulfBreeze/t3d_"$Year77$Month77$Day77$Hour77"_nc_ascii"$DepthArray[27]"TEST.png"
>
>
> set RemFileName28 =
> "/home/mccormik/GulfBreeze/20090921Depth0800.0/t3d_"$Year77$Month77$Day77$Hour77"_nc_ascii"$DepthArray[28]"TEST.png"
>
> set LocFileName28 =
> "/amber/home/jpu/GulfBreeze/t3d_"$Year77$Month77$Day77$Hour77"_nc_ascii"$DepthArray[28]"TEST.png"
>
>
> set RemFileName29 =
> "/home/mccormik/GulfBreeze/20090921Depth0900.0/t3d_"$Year77$Month77$Day77$Hour77"_nc_ascii"$DepthArray[29]"TEST.png"
>
> set LocFileName29 =
> "/amber/home/jpu/GulfBreeze/t3d_"$Year77$Month77$Day77$Hour77"_nc_ascii"$DepthArray[29]"TEST.png"
>
>
> set RemFileName30 =
> "/home/mccormik/GulfBreeze/20090921Depth1000.0/t3d_"$Year77$Month77$Day77$Hour77"_nc_ascii"$DepthArray[30]"TEST.png"
>
> set LocFileName30 =
> "/amber/home/jpu/GulfBreeze/t3d_"$Year77$Month77$Day77$Hour77"_nc_ascii"$DepthArray[30]"TEST.png"
>
>
> /usr/bin/sftp mccormik_at_palm.nesc.epa.gov
> <mailto:mccormik_at_palm.nesc.epa.gov><<EOF09
> bin
> hash
> bell
> put $LocFileName01 $RemFileName01
> put $LocFileName02 $RemFileName02
> put $LocFileName03 $RemFileName03
> put $LocFileName04 $RemFileName04
> put $LocFileName05 $RemFileName05
> put $LocFileName06 $RemFileName06
> put $LocFileName07 $RemFileName07
> put $LocFileName08 $RemFileName08
> put $LocFileName09 $RemFileName09
> put $LocFileName10 $RemFileName10
> put $LocFileName11 $RemFileName11
> put $LocFileName12 $RemFileName12
> put $LocFileName13 $RemFileName13
> put $LocFileName14 $RemFileName14
> put $LocFileName15 $RemFileName15
> put $LocFileName16 $RemFileName16
> put $LocFileName17 $RemFileName17
> put $LocFileName18 $RemFileName18
> put $LocFileName19 $RemFileName19
> put $LocFileName20 $RemFileName20
> put $LocFileName21 $RemFileName21
> put $LocFileName22 $RemFileName22
> put $LocFileName23 $RemFileName23
> put $LocFileName24 $RemFileName24
> put $LocFileName25 $RemFileName25
> put $LocFileName26 $RemFileName26
> put $LocFileName27 $RemFileName27
> put $LocFileName28 $RemFileName28
> put $LocFileName29 $RemFileName29
> put $LocFileName30 $RemFileName30
> bye
> EOF09
> exit(99)
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

-- 
--------------------------------------------------------------
Adam Phillips			             asphilli_at_ucar.edu
National Center for Atmospheric Research   tel: (303) 497-1726
ESSL/CGD/CAS                               fax: (303) 497-1333
P.O. Box 3000				
Boulder, CO 80307-3000	  http://www.cgd.ucar.edu/cas/asphilli
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Sep 24 2009 - 11:33:16 MDT

This archive was generated by hypermail 2.2.0 : Thu Sep 24 2009 - 13:55:09 MDT