diff --git a/MY_RUN/KTEST/001_2Drelief/005_ncl/plot_2Drelief.ncl b/MY_RUN/KTEST/001_2Drelief/005_ncl/plot_2Drelief.ncl index bb19ddb7f92843f6396d8b480ac52e6eda7b998e..64887f03d932bcd09e27bad5f0736848c1b043c6 100644 --- a/MY_RUN/KTEST/001_2Drelief/005_ncl/plot_2Drelief.ncl +++ b/MY_RUN/KTEST/001_2Drelief/005_ncl/plot_2Drelief.ncl @@ -163,6 +163,10 @@ wt2@units="m/s" resmap@cnFillOn = True ; turn on color fill resmap@cnLinesOn = False ; turn off contour lines + resmap@tmXBLabelStride = 2 ; to reduce the number of labels on xaxis + resmap@lbLabelStride = 2. ; to reduce the number of labels on labelbar + + ;pour prendre en compte l'orographie sur la coupe verticale. resmap@sfYArray = z ; 2D resmap@sfXArray = xconf ; 2D @@ -209,6 +213,7 @@ frame(wks) delete(opts) + resmap@lbLabelStride = 3. ; to reduce the number of labels on labelbar opts=resmap opts@cnLevelSelectionMode = "ManualLevels" opts@cnLevelSpacingF = 0.04 @@ -230,6 +235,7 @@ opts@cnLevelSpacingF = 0.0002 opts@cnMinLevelValF = 0.0002 opts@cnMaxLevelValF = 0.0038 opts@tiXAxisString="time="+time1+"s" +;opts@lbLabelSride = 5. plot_rvt1 = gsn_csm_contour(wks,rvt1,opts) draw(plot_rvt1) frame(wks) @@ -239,6 +245,7 @@ draw(plot_rvt2) frame(wks) delete(opts) + resmap@lbLabelStride = 2. ; to reduce the number of labels on labelbar opts=resmap opts@cnLevelSelectionMode = "ManualLevels" opts@cnLevelSpacingF = 0.003 @@ -284,7 +291,15 @@ res=resmap resmap@pmLegendParallelPosF = .1 resmap@lgLabelFontHeightF = .01 resmap@pmLegendOrthogonalPosF = -0.3 - + resmap@tmXBLabelStride = 1 ; + +; delete ressources not needed for vertcal profiles + delete(resmap@sfXArray) + delete(resmap@sfYArray) + delete(resmap@cnFillOn) + delete(resmap@cnLinesOn) + delete(resmap@gsnSpreadColors) + delete(resmap@lbLabelStride) res_w=resmap diff --git a/MY_RUN/KTEST/002_3Drelief/005_ncl/plot_3Drelief.ncl b/MY_RUN/KTEST/002_3Drelief/005_ncl/plot_3Drelief.ncl index e0b345802205f6b09c62da29010e6389ac36ee91..da7798a5a1ec3bcc5beb0d507526b2464f42b821 100644 --- a/MY_RUN/KTEST/002_3Drelief/005_ncl/plot_3Drelief.ncl +++ b/MY_RUN/KTEST/002_3Drelief/005_ncl/plot_3Drelief.ncl @@ -54,6 +54,9 @@ resmap@cnFillOn= True resmap@cnLinesOn= False + resmap@lbLabelStride = 4. ; to reduce number of labels on labelbar + + ;=================================================; ; TRACE ;=================================================; diff --git a/MY_RUN/KTEST/003_KW78/005_ncl/plot_KW78.ncl b/MY_RUN/KTEST/003_KW78/005_ncl/plot_KW78.ncl index fc9f5f3f4b698381ead3f6a7c048683e04ea84ee..1f28751726d2720f327c8700b2ef657f81ec4d89 100644 --- a/MY_RUN/KTEST/003_KW78/005_ncl/plot_KW78.ncl +++ b/MY_RUN/KTEST/003_KW78/005_ncl/plot_KW78.ncl @@ -101,6 +101,7 @@ resmap@tiYAxisString =" " resmap@cnFillOn= True resmap@cnLinesOn= False + resmap@lbLabelStride = 2. ; to reduce the number of labels on labelbar ;=================================================; ; Altitude des niveaux modèles ;=================================================; @@ -125,26 +126,28 @@ ;=================================================; gsn_define_colormap(wks,"rainbow") ; Choose colormap + resmap@lbLabelStride = 4. ; to reduce the number of labels on labelbar opts=resmap opts@cnLevelSelectionMode = "ManualLevels" opts@cnLevelSpacingF = 0.25 - opts@cnMinLevelValF = 0 - opts@cnMaxLevelValF = 6 - + opts@cnMinLevelValF = 0. + opts@cnMaxLevelValF = 6. plot_inprr = gsn_csm_contour(wks,inprr,opts) draw(plot_inprr) frame(wks) opts@cnLevelSpacingF = 0.005 opts@cnMinLevelValF = 0 + opts@cnMaxLevelValF = 0.09 plot_acprr = gsn_csm_contour(wks,acprr,opts) draw(plot_acprr) frame(wks) + resmap@lbLabelStride = 4. ; to reduce the number of labels on labelbar res=resmap res@gsnScalarContour=True res@cnLevelSelectionMode = "ManualLevels" - res@cnLevelSpacingF= 5 + res@cnLevelSpacingF= 10 res@cnMinLevelValF= 98250 res@cnMaxLevelValF= 98350 res@vcMinDistanceF = 0.03 @@ -161,6 +164,7 @@ ut5000_plane = wrf_user_intrp3d(ut1,alt,"h",5000,0.,False) vt5000_plane = wrf_user_intrp3d(vt1,alt,"h",5000,0.,False) + resmap@lbLabelStride = 12. ; to reduce the number of labels on labelbar res2=resmap res2@gsnScalarContour=True res2@vcMinDistanceF = 0.04 diff --git a/MY_RUN/KTEST/004_Reunion/006_ncl/plot_Reunion.ncl b/MY_RUN/KTEST/004_Reunion/006_ncl/plot_Reunion.ncl index b101f27c85d9151325c1e8bab3dbb0817126d85c..3a46d8a98443e16a8569f755c04eef84545c6e41 100644 --- a/MY_RUN/KTEST/004_Reunion/006_ncl/plot_Reunion.ncl +++ b/MY_RUN/KTEST/004_Reunion/006_ncl/plot_Reunion.ncl @@ -183,12 +183,14 @@ load "$NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl" resmap@tiYAxisString =" " resmap@cnFillOn= True resmap@cnLinesOn= False + resmap@lbLabelStride = 3. + resmap@tmXBLabelStride = 3 ; If there is an error on HighRes, it means that you don't have the HighRes data ; You need to download them or the change HighRes by MediumRes ; See https://www.ncl.ucar.edu/Document/Graphics/rangs.shtml for info ; ------------------------------------- - resmap@mpDataBaseVersion = "HighRes" ; choose highres map data version (must be donwloaded) + resmap@mpDataBaseVersion = "MediumRes" ; choose highres map data version (must be donwloaded) gsn_define_colormap(wks,"rainbow") @@ -216,8 +218,9 @@ load "$NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl" res2@vcMinDistanceF = 0.04 res2@vcRefLengthF=0.1 res2@mpFillOn = False ; turn off map fill - res2@mpOutlineDrawOrder = "PostDraw" ; draw continental outline last +; res2@mpOutlineDrawOrder = "PostDraw" ; draw continental outline last + print("plot1") plot=gsn_csm_vector_scalar_map(wks,ut1(1,:,:),vt1(1,:,:),mod_utvt(:,:),res2) draw(plot) frame(wks) @@ -230,6 +233,7 @@ load "$NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl" res3@cnMinLevelValF = 302.4 res3@cnMaxLevelValF = 304 + print("plot2") plot_tht = gsn_csm_contour_map(wks,tht_1500m,res3) draw(plot_tht) frame(wks) @@ -253,6 +257,7 @@ load "$NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl" res4@vcMinDistanceF = 0.03 res4@vcRefLengthF=0.03 + print("plot3") plot_pabst=gsn_csm_vector_scalar_map(wks,ut_1500m,vt_1500m,pabst_1500m,res4) draw(plot_pabst) frame(wks) @@ -277,14 +282,22 @@ load "$NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl" wt_plane=wrf_user_intrp3d(wt1,alt,"v",plane,angle,opts) lsvm_plane=wrf_user_intrp3d(lsvm,alt,"v",plane,angle,opts) - opts_cv=resmap + ;opts_cv=resmap + opts_cv = True + opts_cv@cnLinesOn = False + opts_cv@cnFillOn = True + opts_cv@gsnSpreadColors = True + opts_cv@gsnFrame = False + opts_cv@gsnDraw = False + opts_cv@lbLabelStride = 5. + opts_cv@tiXAxisString = X_desc opts_cv@tiYAxisString = "Height (km)" opts_cv@tiXAxisFontHeightF = 0.020 opts_cv@tiYAxisFontHeightF = 0.020 opts_cv@cnMissingValPerimOn = True opts_cv@cnMissingValFillColor = "gray" - opts_cv@cnMissingValFillPattern = 25 + opts_cv@cnMissingValFillPattern = 17 opts_cv@cnLevelSelectionMode = "ManualLevels" opts_cv@cnLevelSpacingF =2.5 @@ -300,6 +313,7 @@ load "$NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl" opts_cv@cnMinLevelValF = -1 opts_cv@cnMaxLevelValF = 1 opts_cv@tiMainString="THT-LSTHM" + print("plot4") cv_tht_lsthm = gsn_csm_contour(wks,tht_plane(:,:)-lsthm_plane(:,:),opts_cv) draw(cv_tht_lsthm) frame(wks) @@ -309,6 +323,7 @@ load "$NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl" opts_cv@cnMinLevelValF = -5 opts_cv@cnMaxLevelValF = 6 opts_cv@tiMainString="VT-LSVM" + print("plot5") cv_vt = gsn_csm_contour(wks,vt_plane(:,:)-lsvm_plane(:,:),opts_cv) draw(cv_vt) frame(wks) diff --git a/MY_RUN/KTEST/007_16janvier/011_ncl/plot_16j.ncl b/MY_RUN/KTEST/007_16janvier/011_ncl/plot_16j.ncl index fe7f5e802546155c5f8f974a371fedc517bcc9b0..01b837afdbafbe3763d98f0f9c781bc260bf2b0b 100644 --- a/MY_RUN/KTEST/007_16janvier/011_ncl/plot_16j.ncl +++ b/MY_RUN/KTEST/007_16janvier/011_ncl/plot_16j.ncl @@ -195,6 +195,9 @@ alt@lon2d = lon2d resmap@mpGeophysicalLineThicknessF = 2.0 resmap@mpGeophysicalLineColor = "Black" resmap@mpNationalLineColor = "Black" + resmap@tmXBLabelStride = 2 ; to reduce the number of labels on xaxis + resmap@lbLabelStride = 2. ; to reduce the number of labels on labelbar + ;=================================================; ; OROGRAPHIE ;=================================================; @@ -224,8 +227,6 @@ res2@cnLevelSelectionMode = "AutomaticLevels" res2@gsnScalarContour=True res2@vcMinDistanceF = 0.04 res2@vcRefLengthF=0.1 -res2@cnLevelSpacingF = 0.00005 -res2@cnMinLevelValF = 0 res2@tiXAxisString = "850 hPa" diff --git a/MY_RUN/KTEST/007_16janvier/011_ncl/plot_16j_2.ncl b/MY_RUN/KTEST/007_16janvier/011_ncl/plot_16j_2.ncl index ee22005c481eaa1cc2edcd298bc1957c23b4fb6b..dca52394de171605a73f71982a842d854e489670 100644 --- a/MY_RUN/KTEST/007_16janvier/011_ncl/plot_16j_2.ncl +++ b/MY_RUN/KTEST/007_16janvier/011_ncl/plot_16j_2.ncl @@ -195,6 +195,8 @@ alt@lon2d = lon2d resmap@mpGeophysicalLineColor = "Black" resmap@mpNationalLineColor = "Black" + resmap@tmXBLabelStride = 2 ; to reduce the number of labels on xaxis + resmap@lbLabelStride = 2. ; to reduce the number of labels on labelbar ;=================================================; @@ -214,8 +216,6 @@ res2@cnLevelSelectionMode = "AutomaticLevels" res2@gsnScalarContour=True res2@vcMinDistanceF = 0.04 res2@vcRefLengthF=0.1 -res2@cnLevelSpacingF = 0.00005 -res2@cnMinLevelValF = 0 res2@tiXAxisString = "850 hPa"