Changeset 418
- Timestamp:
- Dec 22, 2009 12:46:23 PM (15 years ago)
- Location:
- palm/trunk/SCRIPTS/NCL
- Files:
-
- 1 added
- 6 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SCRIPTS/NCL/.ncl.config.default
r416 r418 1 ;********************************************************* 2 ; Copying .hluresfile in the home directory 3 ;********************************************************* 4 5 command = "ksh 'if [ ! -f $HOME/.hluresfile ]; then; "+\ 6 "cp $PALM_BIN/NCL/.hluresfile $HOME; fi'" 7 system(command) 8 9 ;********************************************************* 10 11 1 12 begin 2 13 … … 16 27 ; REQUIRED --file_1-- INPUT FILE 17 28 ; 18 ; input file produced by PALM; if there is more than one file for all timesteps of a job chain, 19 ; declare path and file name without cycle number and ".nc" (first and last cycle numbers are given with the parameters 'start_f' and 'end_f'); 29 ; input file produced by PALM; if there is more than one file for 30 ; all timesteps 31 ; of a job chain, 32 ; declare path and file name without cycle number and ".nc" (first and 33 ; last cycle numbers are given with the parameters 'start_f' and 34 ; 'end_f'); 20 35 ; otherwise declare path and full file name 21 36 ; 22 37 ; data type: string 23 38 ; 24 ; example: file_1 = "/path_to_file/file_xy_av" if you use more than one cycle number 25 ; file_1 = "/path_to_file/file_xy_av.4.nc" if you use one file (e.g. with cycle number 4) 39 ; example: file_1 = "/path_to_file/file_xy_av" if you use more than 40 ; one cycle number 41 ; file_1 = "/path_to_file/file_xy_av.4.nc" if you use one file 42 ; (e.g. with cycle number 4) 26 43 ; 27 44 ; default: "File in" … … 35 52 end if 36 53 ;*************************************************** 37 ; REQUIRED if more than one file of a job chain --start_f-- START OF CYCLIC NUMBER 38 ; 39 ; if there is more than one file for all timesteps of a job chain, declare the first cyclicnumber which contains timesteps you'd like to use 40 ; 41 ; data type: integer 42 ; 43 ; example: start_f = 3 (if first file: example_xy_av.3.nc) and 0 (if first file: example_xy_av.nc) 54 ; REQUIRED if more than one file of a job chain 55 ; --start_f-- START OF CYCLIC NUMBER 56 ; 57 ; if there is more than one file for all timesteps of a job chain, 58 ; declare the first cyclicnumber which contains timesteps 59 ; you'd like to use 60 ; 61 ; data type: integer 62 ; 63 ; example: start_f = 3 (if first file: example_xy_av.3.nc) and 64 ; start_f = 0 (if first file: example_xy_av.nc) 44 65 ; 45 66 ; default: -1 … … 55 76 ; REQUIRED if more than one file of a job chain --end_f-- END OF CYCLIC NUMBER 56 77 ; 57 ; if there is more than one file for all timesteps of a job chain, declare the last cyclicnumber which contains timesteps you'd like to use 58 ; 59 ; data type: integer 60 ; 61 ; example: end_f = 48 (if last file: example_xy_av.48.nc) and 0 (if last file: example_xy_av.nc) 78 ; if there is more than one file for all timesteps of a job chain, declare 79 ; the last cyclicnumber which contains timesteps you'd like to use 80 ; 81 ; data type: integer 82 ; 83 ; example: end_f = 48 (if last file: example_xy_av.48.nc) and 84 ; end_f = 0 (if last file: example_xy_av.nc) 62 85 ; 63 86 ; default: -1 … … 73 96 ; REQUIRED --xyc--xzc--yzc-- SELECTION of XY or XZ or YZ CROSS SECTIONS 74 97 ; 75 ; desired section has to be set to 1; e.g.: xyc=1, xzc=0 and yzc=0 for xy-section 98 ; desired section has to be set to 1; 99 ; e.g.: xyc=1, xzc=0 and yzc=0 for xy-section 76 100 ; 77 101 ; data type: integer … … 101 125 ; OPTIONAL --format_out-- OUTPUT FORMAT 102 126 ; 103 ; format of the output file; supported file formats: x11, pdf, ps, eps, epsi or ncgm 127 ; format of the output file; 128 ; supported file formats: x11, pdf, ps, eps, epsi or ncgm 104 129 ; 105 130 ; data type: string … … 173 198 ; OPTIONAL --sort-- TYPE OF SORTING 174 199 ; 175 ; sequence of plots; sorting either by time step [="time"] or by layer/height [="layer"] 200 ; sequence of plots; sorting either by time step [="time"] or 201 ; by layer/height [="layer"] 176 202 ; 177 203 ; data type: string … … 191 217 ; OPTIONAL --var-- OUTPUT VARIABLES 192 218 ; 193 ; names of output variables; inidcate them with one comma before and after each variable 219 ; names of output variables; inidcate them with one comma before and after 220 ; each variable 194 221 ; 195 222 ; data type: string … … 209 236 ; OPTIONAL --start_time_step-- FIRST TIME STEP 210 237 ; 211 ; first time step of plot; there is no need to specify a precise time value from the input file, 238 ; first time step of plot; there is no need to specify a precise time 239 ; value from the input file, 212 240 ; 'start_time_step' is rounded to the next existent time step 213 241 ; 214 242 ; data type: double; dimension: [hour] 215 243 ; 216 ; example: start_time_step = 0.5 244 ; example: start_time_step = 0.5d 217 245 ; 218 246 ; default: -1.d (first available time step) … … 228 256 ; OPTIONAL --end_time_step-- LAST TIME STEP 229 257 ; 230 ; last time step of plot; there is no need to specify a precise time value from the input file, 258 ; last time step of plot; there is no need to specify a precise time 259 ; value from the input file, 231 260 ; 'end_time_step' is rounded to the next existent time step 232 261 ; 233 262 ; data type: double; dimension: [hour] 234 263 ; 235 ; example: end_time_step = 2.0 264 ; example: end_time_step = 2.0d 236 265 ; 237 266 ; default: -1.d (last available time step) … … 247 276 ; OPTIONAL --xs-- MINIMUM X-AXIS 248 277 ; 249 ; value for minimum of x-axis, selectable if there are NO preseted layers for x (as for XY or XZ 2D-DATA); 250 ; there is no need to specify a precise meter value from the input file, it is rounded to the next existent value 278 ; value for minimum of x-axis, selectable if there are NO preseted layers 279 ; for x (as for XY or XZ 2D-DATA); 280 ; there is no need to specify a precise meter value from the input file, 281 ; it is rounded to the next existent value 251 282 ; 252 283 ; data type: double; dimension: [meter] 253 284 ; 254 ; example: xs = 150.0 285 ; example: xs = 150.0d 255 286 ; 256 287 ; default: -1.d (minimum of range) … … 266 297 ; OPTIONAL --xe-- MAXIMUM X-AXIS 267 298 ; 268 ; value for maximum of x-axis, selectable if there are NO preseted layers for x (as for XY or XZ 2D-DATA); 269 ; there is no need to specify a precise meter value from the input file, it is rounded to the next existent value 299 ; value for maximum of x-axis, selectable if there are NO preseted layers 300 ; for x (as for XY or XZ 2D-DATA); 301 ; there is no need to specify a precise meter value from the input file, 302 ; it is rounded to the next existent value 270 303 ; 271 304 ; data type: double; dimension: [meter] 272 305 ; 273 ; example: xe = 300.0 306 ; example: xe = 300.0d 274 307 ; 275 308 ; default: -1.d (maximum of range) … … 285 318 ; OPTIONAL --ys-- MINIMUM Y-AXIS 286 319 ; 287 ; value for minimum of y-axis, selectable if there are NO preseted layers for y (as for XY or YZ 2D-DATA); 288 ; there is no need to specify a precise meter value from the input file, it is rounded to the next existent value 320 ; value for minimum of y-axis, selectable if there are NO preseted layers 321 ; for y (as for XY or YZ 2D-DATA); 322 ; there is no need to specify a precise meter value from the input file, 323 ; it is rounded to the next existent value 289 324 ; 290 325 ; data type: double; dimension: [meter] 291 326 ; 292 ; example: ys = 150.0 327 ; example: ys = 150.0d 293 328 ; 294 329 ; default: -1.d (minimum of range) … … 304 339 ; OPTIONAL --ye-- MAXIMUM Y-AXIS 305 340 ; 306 ; value for maximum of y-axis, selectable if there are NO preseted layers for y (as for XY or YZ 2D-DATA); 307 ; there is no need to specify a precise meter value from the input file, it is rounded to the next existent value 341 ; value for maximum of y-axis, selectable if there are NO preseted layers 342 ; for y (as for XY or YZ 2D-DATA); 343 ; there is no need to specify a precise meter value from the input file, 344 ; it is rounded to the next existent value 308 345 ; 309 346 ; data type: double; dimension: [meter] 310 347 ; 311 ; example: ye = 300.0 348 ; example: ye = 300.0d 312 349 ; 313 350 ; default: -1.d (maximum of range) … … 323 360 ; OPTIONAL --zs-- MINIMUM Z-AXIS 324 361 ; 325 ; index for minimum of z-axis, selectable if there are NO preseted layers for z (as for XZ or YZ 2D-DATA); 362 ; index for minimum of z-axis, selectable if there are NO preseted layers 363 ; for z (as for XZ or YZ 2D-DATA); 326 364 ; you cannot specify a meter value from the input file due to grid stretching 327 365 ; … … 342 380 ; OPTIONAL --ze-- MAXIMUM Z-AXIS 343 381 ; 344 ; index for maximum of z-axis, selectable if there are NO preseted layers for z (as for XZ or YZ 2D-DATA); 382 ; index for maximum of z-axis, selectable if there are NO preseted layers 383 ; for z (as for XZ or YZ 2D-DATA); 345 384 ; you cannot specify a meter value from the input file due to grid stretching 346 385 ; … … 361 400 ; OPTIONAL --mode-- TYPE OF PLOT 362 401 ; 363 ; isoline plots [="Line"], contour plots [="Fill"] or both [="Both"] can be choosen 402 ; isoline plots [="Line"], contour plots [="Fill"] or both [="Both"] 403 ; can be choosen 364 404 ; 365 405 ; data type: string … … 379 419 ; OPTIONAL --fill_mode-- TYPE OF FILLING 380 420 ; 381 ; area fill [="AreaFill"], raster fill [="RasterFill"] or cell fill [="CellFill"] can be choosen 421 ; area fill [="AreaFill"], raster fill [="RasterFill"] or 422 ; cell fill [="CellFill"] can be choosen 382 423 ; 383 424 ; data type: string … … 449 490 end if 450 491 ;*************************************************** 451 ; OPTIONAL --legend_label_stride-- REDUCTION OF THE NUMBER OF LABELS IN THE LEGEND 452 ; 453 ; if legend_label_stride is set to 1 every label is shown; if set to 2 every second,... 492 ; OPTIONAL --legend_label_stride-- REDUCTION OF THE NUMBER 493 ; OF LABELS IN THE LEGEND 494 ; 495 ; if legend_label_stride is set to 1 every label is shown; 496 ; if set to 2 every second, ... 454 497 ; 455 498 ; data type: integer … … 469 512 ; OPTIONAL --axes_explicit-- EXPLICIT SETTINGS OF X- AND Y-AXES ARE SWITCHED ON 470 513 ; 471 ; to use several parameters to set up the axes, 'axes_explicit' must be switched [=1]; if switched off [=0] units of axes are [gridpoints] 514 ; to use several parameters to set up the axes, 'axes_explicit' 515 ; must be switched on [=1]; if switched off [=0] units of axes are [m] 472 516 ; 473 517 ; data type: integer … … 485 529 end if 486 530 ;*************************************************** 487 ; OPTIONAL if axes_explicit = 1 --major_ticks_x-- NUMBER OF MAJOR TICK MARKS AT X-AXIS 488 ; 489 ; major_ticks_x can be set to any integer, best segmentation of x-axis can be achieved, if 490 ; (number of gripdpoints in x-direction)/(major_ticks_x-1)=INTEGER, e.g. 128/8 = 16 -> major_ticks_x should be set to 9 531 ; OPTIONAL if axes_explicit = 1 --major_ticks_x-- 532 ; NUMBER OF MAJOR TICK MARKS AT X-AXIS 533 ; 534 ; major_ticks_x can be set to any integer, best segmentation of x-axis 535 ; can be achieved, if 536 ; (number of gripdpoints in x-direction)/(major_ticks_x-1)=INTEGER, 537 ; e.g. 128/8 = 16 -> major_ticks_x should be set to 9 491 538 ; 492 539 ; data type: integer … … 504 551 end if 505 552 ;*************************************************** 506 ; OPTIONAL if axes_explicit = 1 --major_ticks_y-- NUMBER OF MAJOR TICK MARKS AT Y-AXIS 507 ; 508 ; major_ticks_y can be set to any integer, best segmentation of y-axis can be achieved, if 509 ; (number of gripdpoints in y-direction)/(major_ticks_y-1)=INTEGER, e.g. 128/8 = 16 -> major_ticks_y should be set to 9 553 ; OPTIONAL if axes_explicit = 1 --major_ticks_y-- 554 ; NUMBER OF MAJOR TICK MARKS AT Y-AXIS 555 ; 556 ; major_ticks_y can be set to any integer, best segmentation of y-axis 557 ; can be achieved, if 558 ; (number of gripdpoints in y-direction)/(major_ticks_y-1)=INTEGER, 559 ; e.g. 128/8 = 16 -> major_ticks_y should be set to 9 510 560 ; 511 561 ; data type: integer … … 523 573 end if 524 574 ;*************************************************** 525 ; OPTIONAL if axes_explicit = 1 --norm_x--norm_y--norm_z-- NORMALISE X-, Y- and Z-AXES 526 ; 527 ; normalising the axes with the given value; units can explicitly set; by default no normalising is used and units are [meter] 575 ; OPTIONAL if axes_explicit = 1 --norm_x--norm_y--norm_z-- 576 ; NORMALISE X-, Y- and Z-AXES 577 ; 578 ; normalising the axes with the given value; units can explicitly be set; 579 ; by default no normalising is used and units are [meter] 528 580 ; 529 581 ; data type: float 530 582 ; 531 ; default: 1. 583 ; default: 1.0 532 584 ;*************************************************** 533 585 if(.not. isvar("norm_x"))then 534 586 535 norm_x = 1. 587 norm_x = 1.0 536 588 537 589 end if 538 590 if(.not. isvar("norm_y"))then 539 591 540 norm_y = 1. 592 norm_y = 1.0 541 593 542 594 end if 543 595 if(.not. isvar("norm_z"))then 544 596 545 norm_z = 1. 546 547 end if 548 ;*************************************************** 549 ; OPTIONAL if axes_explicit = 1 --unit_x--unit_y--unit_z-- UNITS OF X-, Y- and Z-AXES 550 ; 551 ; units of the axes can be set; by default no units are given, if norm_x, norm_y or norm_z are unequal 1., otherwise units are [meter] 597 norm_z = 1.0 598 599 end if 600 ;*************************************************** 601 ; OPTIONAL if axes_explicit = 1 --unit_x--unit_y--unit_z-- 602 ; UNITS OF X-, Y- and Z-AXES 603 ; 604 ; units of the axes can be set; by default no units are given, 605 ; if norm_x, norm_y or norm_z are unequal 1., otherwise units are [meter] 552 606 ; 553 607 ; data type: string, … … 593 647 ; REQUIRED IF vector=1 --vec1, vec2-- VECTOR FOR VECTOR PLOT 594 648 ; 595 ; variables for the vector, vec1 hast to be set to component 1 and vec2 to component 2; 649 ; variables for the vector, vec1 hast to be set to component 1 and 650 ; vec2 to component 2; 596 651 ; inidcate them with one comma before and after each variable; 597 652 ; … … 616 671 ; OPTIONAL --plotvec-- VARIABLE FOR EXTRA VECTOR PLOT 617 672 ; 618 ; the vector plot can be combined with other plots of variables; if this is desired inidcate the variables, 619 ; where a vector plot shall overlay; inidcate them with one comma before and after each variable 673 ; the vector plot can be combined with other plots of variables; 674 ; if this is desired inidcate the variables, 675 ; where a vector plot shall overlay; inidcate them with one comma 676 ; before and after each variable 620 677 ; 621 678 ; data type: string … … 663 720 ; REQUIRED --file_1-- 1ST INPUT FILE 664 721 ; 665 ; 1st input file produced by PALM; if there is more than one file for all timesteps of a job chain, 666 ; declare path and file name without cycle number and ".nc" (first and last cycle numbers are given with the parameters 'start_f' and 'end_f'); 722 ; 1st input file produced by PALM; if there is more than one file for 723 ; all timesteps of a job chain, declare path and file name without 724 ; cycle number and ".nc" (first and last cycle numbers are given with 725 ; the parameters 'start_f' and 'end_f'); 667 726 ; otherwise declare path and full file name 668 727 ; 669 728 ; data type: string 670 729 ; 671 ; example: file_1 = "/path_to_file/file_pr" if you use more than one cycle number 672 ; file_1 = "/path_to_file/file_pr.4.nc" if you use one file (e.g. with cycle number 4) 730 ; example: file_1 = "/path_to_file/file_pr" 731 ; if you use more than one cycle number 732 ; file_1 = "/path_to_file/file_pr.4.nc" 733 ; if you use one file (e.g. with cycle number 4) 673 734 ; 674 735 ; default: "File in" … … 684 745 ; REQUIRED --start_f_1-- START OF CYCLIC NUMBER OF THE 1ST INPUT FILE 685 746 ; 686 ; if there is more than one file for all timesteps of a job chain, declare the first cyclicnumber which contains timesteps you'd like to use 687 ; 688 ; data type: integer 689 ; 690 ; example: 3 (if first file: example_pr.3.nc) and 0 (if first file: example_pr.nc) 747 ; if there is more than one file for all timesteps of a job chain, 748 ; declare the first cyclicnumber which contains timesteps you'd like to use 749 ; 750 ; data type: integer 751 ; 752 ; example: 3 (if first file: example_pr.3.nc) and 753 ; 0 (if first file: example_pr.nc) 691 754 ; 692 755 ; default: -1 … … 702 765 ; REQUIRED --end_f_1-- END OF CYCLIC NUMBER OF THE 1ST INPUT FILE 703 766 ; 704 ; if there is more than one file for all timesteps of a job chain, declare the last cyclicnumber which contains timesteps you'd like to use 705 ; 706 ; data type: integer 707 ; 708 ; example: 48 (if last file: example_pr.48.nc) and 0 (if last file: example_pr.nc) 767 ; if there is more than one file for all timesteps of a job chain, 768 ; declare the last cyclicnumber which contains timesteps you'd like to use 769 ; 770 ; data type: integer 771 ; 772 ; example: 48 (if last file: example_pr.48.nc) and 773 ; 0 (if last file: example_pr.nc) 709 774 ; 710 775 ; default: -1 … … 784 849 ; OPTIONAL --var-- OUTPUT VARIABLES 785 850 ; 786 ; names of output variables; inidcate them with one comma before and after each variable 851 ; names of output variables; 852 ; inidcate them with one comma before and after each variable 787 853 ; 788 854 ; data type: string … … 820 886 ; OPTIONAL ---no_files-- NUMBER OF INPUT FILES 821 887 ; 822 ; up to 6 input files of different runs can be used; all input files must contain the same variables and dimensionalties; 888 ; up to 6 input files of different runs can be used; all input files 889 ; must contain the same variables and dimensionalties; 823 890 ; identical variables are merged in one plot; 824 891 ; combining or overlaying of any variables is not feasible; 825 ; an extra legend (besides the time step legend) is drawn where you can explicitily name the items 892 ; an extra legend (besides the time step legend) is drawn where you 893 ; can explicitily name the items 826 894 ; 827 895 ; data type: integer … … 855 923 ; REQUIRED if no_files > 1 --file_2-- 2ND INPUT FILE 856 924 ; 857 ; 2nd input file produced by PALM; if there is more than one file for all timesteps of a job chain, 858 ; declare path and file name without cycle number and ".nc" (first and last cycle numbers are given with the parameters 'start_f' and 'end_f'); 925 ; 2nd input file produced by PALM; if there is more than one file 926 ; for all timesteps of a job chain, 927 ; declare path and file name without cycle number and ".nc" (first and 928 ; last cycle numbers are given with the parameters 'start_f' and 'end_f'); 859 929 ; otherwise declare path and full file name 860 930 ; 861 931 ; data type: string 862 932 ; 863 ; example: file_2 = "/path_to_file/file_pr" if you use more than one cycle number 864 ; file_2 = "/path_to_file/file_pr.4.nc" if you use one file (e.g. with cycle number 4) 933 ; example: file_2 = "/path_to_file/file_pr" 934 ; if you use more than one cycle number 935 ; file_2 = "/path_to_file/file_pr.4.nc" 936 ; if you use one file (e.g. with cycle number 4) 865 937 ; 866 938 ; default: "File in" … … 876 948 ; REQUIRED --start_f_2-- START OF CYCLIC NUMBER OF THE 2ND INPUT FILE 877 949 ; 878 ; if there is more than one file for all timesteps of a job chain, declare the first cyclicnumber which contains timesteps you'd like to use 950 ; if there is more than one file for all timesteps of a job chain, 951 ; declare the first cyclicnumber which contains timesteps you'd like to use 879 952 ; 880 953 ; data type: integer … … 894 967 ; REQUIRED --end_f_2-- END OF CYCLIC NUMBER OF THE 2ND INPUT FILE 895 968 ; 896 ; if there is more than one file for all timesteps of a job chain, declare the last cyclicnumber which contains timesteps you'd like to use 969 ; if there is more than one file for all timesteps of a job chain, 970 ; declare the last cyclicnumber which contains timesteps you'd like to use 897 971 ; 898 972 ; data type: integer … … 928 1002 ; REQUIRED if no_files > 2 --file_3-- 3RD INPUT FILE 929 1003 ; 930 ; 3rd input file produced by PALM; if there is more than one file for all timesteps of a job chain, 931 ; declare path and file name without cycle number and ".nc" (first and last cycle numbers are given with the parameters 'start_f' and 'end_f'); 1004 ; 3rd input file produced by PALM; if there is more than one file 1005 ; for all timesteps of a job chain, 1006 ; declare path and file name without cycle number and ".nc" (first and 1007 ; last cycle numbers are given with the parameters 'start_f' and 'end_f'); 932 1008 ; otherwise declare path and full file name 933 1009 ; 934 1010 ; data type: string 935 1011 ; 936 ; example: file_3 = "/path_to_file/file_pr" if you use more than one cycle number 937 ; file_3 = "/path_to_file/file_pr.4.nc" if you use one file (e.g. with cycle number 4) 1012 ; example: file_3 = "/path_to_file/file_pr" 1013 ; if you use more than one cycle number 1014 ; file_3 = "/path_to_file/file_pr.4.nc" 1015 ; if you use one file (e.g. with cycle number 4) 938 1016 ; 939 1017 ; default: "File in" … … 949 1027 ; REQUIRED --start_f_3-- START OF CYCLIC NUMBER OF THE 3RD INPUT FILE 950 1028 ; 951 ; if there is more than one file for all timesteps of a job chain, declare the first cyclicnumber which contains timesteps you'd like to use 1029 ; if there is more than one file for all timesteps of a job chain, 1030 ; declare the first cyclicnumber which contains timesteps you'd like to use 952 1031 ; 953 1032 ; data type: integer … … 967 1046 ; REQUIRED --end_f_3-- END OF CYCLIC NUMBER OF THE 3RD INPUT FILE 968 1047 ; 969 ; if there is more than one file for all timesteps of a job chain, declare the last cyclicnumber which contains timesteps you'd like to use 1048 ; if there is more than one file for all timesteps of a job chain, declare 1049 ; the last cyclicnumber which contains timesteps you'd like to use 970 1050 ; 971 1051 ; data type: integer … … 1001 1081 ; REQUIRED if no_files > 3 --file_4-- 4TH INPUT FILE 1002 1082 ; 1003 ; 4th input file produced by PALM; if there is more than one file for all timesteps of a job chain, 1004 ; declare path and file name without cycle number and ".nc" (first and last cycle numbers are given with the parameters 'start_f' and 'end_f'); 1083 ; 4th input file produced by PALM; if there is more than one file for 1084 ; all timesteps of a job chain, 1085 ; declare path and file name without cycle number and ".nc" (first and 1086 ; last cycle numbers are given with the parameters 'start_f' and 'end_f'); 1005 1087 ; otherwise declare path and full file name 1006 1088 ; 1007 1089 ; data type: string 1008 1090 ; 1009 ; example: file_4 = "/path_to_file/file_pr" if you use more than one cycle number 1010 ; file_4 = "/path_to_file/file_pr.4.nc" if you use one file (e.g. with cycle number 4) 1091 ; example: file_4 = "/path_to_file/file_pr" 1092 ; if you use more than one cycle number 1093 ; file_4 = "/path_to_file/file_pr.4.nc" 1094 ; if you use one file (e.g. with cycle number 4) 1011 1095 ; 1012 1096 ; default: "File in" … … 1022 1106 ; REQUIRED --start_f_4-- START OF CYCLIC NUMBER OF THE 4TH INPUT FILE 1023 1107 ; 1024 ; if there is more than one file for all timesteps of a job chain, declare the first cyclicnumber which contains timesteps you'd like to use 1108 ; if there is more than one file for all timesteps of a job chain, 1109 ; declare the first cyclicnumber which contains timesteps you'd like to use 1025 1110 ; 1026 1111 ; data type: integer … … 1040 1125 ; REQUIRED --end_f_4-- END OF CYCLIC NUMBER OF THE 4TH INPUT FILE 1041 1126 ; 1042 ; if there is more than one file for all timesteps of a job chain, declare the last cyclicnumber which contains timesteps you'd like to use 1127 ; if there is more than one file for all timesteps of a job chain, 1128 ; declare the last cyclicnumber which contains timesteps you'd like to use 1043 1129 ; 1044 1130 ; data type: integer … … 1074 1160 ; REQUIRED if no_files > 4 --file_5-- 5TH INPUT FILE 1075 1161 ; 1076 ; 5th input file produced by PALM; if there is more than one file for all timesteps of a job chain, 1077 ; declare path and file name without cycle number and ".nc" (first and last cycle numbers are given with the parameters 'start_f' and 'end_f'); 1162 ; 5th input file produced by PALM; if there is more than one file for 1163 ; all timesteps of a job chain, 1164 ; declare path and file name without cycle number and ".nc" (first and 1165 ; last cycle numbers are given with the parameters 'start_f' and 'end_f'); 1078 1166 ; otherwise declare path and full file name 1079 1167 ; 1080 1168 ; data type: string 1081 1169 ; 1082 ; example: file_5 = "/path_to_file/file_pr" if you use more than one cycle number 1083 ; file_5 = "/path_to_file/file_pr.4.nc" if you use one file (e.g. with cycle number 4) 1170 ; example: file_5 = "/path_to_file/file_pr" 1171 ; if you use more than one cycle number 1172 ; file_5 = "/path_to_file/file_pr.4.nc" 1173 ; if you use one file (e.g. with cycle number 4) 1084 1174 ; 1085 1175 ; default: "File in" … … 1095 1185 ; REQUIRED --start_f_5-- START OF CYCLIC NUMBER OF THE 5TH INPUT FILE 1096 1186 ; 1097 ; if there is more than one file for all timesteps of a job chain, declare the first cyclicnumber which contains timesteps you'd like to use 1187 ; if there is more than one file for all timesteps of a job chain, 1188 ; declare the first cyclicnumber which contains timesteps you'd like to use 1098 1189 ; 1099 1190 ; data type: integer … … 1113 1204 ; REQUIRED --end_f_5-- END OF CYCLIC NUMBER OF THE 5TH INPUT FILE 1114 1205 ; 1115 ; if there is more than one file for all timesteps of a job chain, declare the last cyclicnumber which contains timesteps you'd like to use 1206 ; if there is more than one file for all timesteps of a job chain, 1207 ; declare the last cyclicnumber which contains timesteps you'd like to use 1116 1208 ; 1117 1209 ; data type: integer … … 1147 1239 ; REQUIRED if no_files > 5 --file_6-- 6TH INPUT FILE 1148 1240 ; 1149 ; 6th input file produced by PALM; if there is more than one file for all timesteps of a job chain, 1150 ; declare path and file name without cycle number and ".nc" (first and last cycle numbers are given with the parameters 'start_f' and 'end_f'); 1241 ; 6th input file produced by PALM; if there is more than one file for 1242 ; all timesteps of a job chain, 1243 ; declare path and file name without cycle number and ".nc" (first and 1244 ; last cycle numbers are given with the parameters 'start_f' and 'end_f'); 1151 1245 ; otherwise declare path and full file name 1152 1246 ; 1153 1247 ; data type: string 1154 1248 ; 1155 ; example: file_6 = "/path_to_file/file_pr" if you use more than one cycle number 1156 ; file_6 = "/path_to_file/file_pr.4.nc" if you use one file (e.g. with cycle number 4) 1249 ; example: file_6 = "/path_to_file/file_pr" 1250 ; if you use more than one cycle number 1251 ; file_6 = "/path_to_file/file_pr.4.nc" 1252 ; if you use one file (e.g. with cycle number 4) 1157 1253 ; 1158 1254 ; default: "File in" … … 1168 1264 ; REQUIRED --start_f_6-- START OF CYCLIC NUMBER OF THE 6TH INPUT FILE 1169 1265 ; 1170 ; if there is more than one file for all timesteps of a job chain, declare the first cyclicnumber which contains timesteps you'd like to use 1266 ; if there is more than one file for all timesteps of a job chain, 1267 ; declare the first cyclicnumber which contains timesteps you'd like to use 1171 1268 ; 1172 1269 ; data type: integer … … 1186 1283 ; REQUIRED --end_f_6-- END OF CYCLIC NUMBER OF THE 6TH INPUT FILE 1187 1284 ; 1188 ; if there is more than one file for all timesteps of a job chain, declare the last cyclicnumber which contains timesteps you'd like to use 1285 ; if there is more than one file for all timesteps of a job chain, 1286 ; declare the last cyclicnumber which contains timesteps you'd like to use 1189 1287 ; 1190 1288 ; data type: integer … … 1220 1318 ; OPTIONAL --start_time_step-- FIRST TIME STEP 1221 1319 ; 1222 ; first time step of plot; there is no need to specify a precise time value from the input file, 1320 ; first time step of plot; there is no need to specify a precise 1321 ; time value from the input file, 1223 1322 ; 'start_time_step' is rounded to the next existent time step 1224 1323 ; 1225 1324 ; data type: double; dimension: [hour] 1226 1325 ; 1227 ; example: start_time_step = 0.5 1326 ; example: start_time_step = 0.5d 1228 1327 ; 1229 1328 ; default: -1.d (first available time step) … … 1239 1338 ; OPTIONAL --end_time_step-- LAST TIME STEP 1240 1339 ; 1241 ; last time step of plot; there is no need to specify a precise time value from the input file, 1340 ; last time step of plot; there is no need to specify a precise 1341 ; time value from the input file, 1242 1342 ; 'end_time_step' is rounded to the next existent time step 1243 1343 ; 1244 1344 ; data type: double; dimension: [hour] 1245 1345 ; 1246 ; example: end_time_step = 2.0 1346 ; example: end_time_step = 2.0d 1247 1347 ; 1248 1348 ; default: -1.d (last available time step) … … 1258 1358 ; OPTIONAL --time_stride-- TEMPORAL STRIDE 1259 1359 ; 1260 ; temporal stride for the plots; if time_stride=1 all the profiles between first_time_step 1261 ; and end_time_step are plotted (including first_time_step and end_time_step), 1262 ; if time_stride=3 every third time step between start_time_step and end_time_step is plotted 1360 ; temporal stride for the plots; if time_stride=1 all the profiles 1361 ; between first_time_step and end_time_step are plotted 1362 ; (including first_time_step and end_time_step), 1363 ; if time_stride=3 every third time step between start_time_step and 1364 ; end_time_step is plotted 1263 1365 ; 1264 1366 ; data type: integer … … 1278 1380 ; OPTIONAL --start_x-- STARTVALUE IN X-DIRECTION 1279 1381 ; 1280 ; if 3D data is used for profiles you can choose a startvalue in x-direction for horizontal averaging 1382 ; if 3D data is used for profiles you can choose a startvalue 1383 ; in x-direction for horizontal averaging 1281 1384 ; 1282 1385 ; data type: integer; dimension [grippoint] … … 1296 1399 ; OPTIONAL --end_x-- ENDVALUE IN X-DIRECTION 1297 1400 ; 1298 ; if 3D data is used for profiles you can choose an endvalue in x-direction for horizontal averaging 1401 ; if 3D data is used for profiles you can choose an endvalue 1402 ; in x-direction for horizontal averaging 1299 1403 ; 1300 1404 ; data type: integer; dimension [grippoint] … … 1314 1418 ; OPTIONAL --start_y-- STARTVALUE IN Y-DIRECTION 1315 1419 ; 1316 ; if 3D data is used for profiles you can choose a startvalue in y-direction for horizontal averaging 1420 ; if 3D data is used for profiles you can choose a startvalue 1421 ; in y-direction for horizontal averaging 1317 1422 ; 1318 1423 ; data type: integer; dimension [grippoint] … … 1332 1437 ; OPTIONAL --end_y-- ENDVALUE IN Y-DIRECTION 1333 1438 ; 1334 ; if 3D data is used for profiles you can choose an endvalue in y-direction for horizontal averaging 1439 ; if 3D data is used for profiles you can choose an endvalue 1440 ; in y-direction for horizontal averaging 1335 1441 ; 1336 1442 ; data type: integer; dimension [grippoint] … … 1390 1496 ; data type: double; dimension: [meter] 1391 1497 ; 1392 ; example: min_z = 0.0 1498 ; example: min_z = 0.0d 1393 1499 ; 1394 1500 ; default: -1.d (related to the minimum of z-axis in input file) … … 1408 1514 ; data type: double; dimension: [meter] 1409 1515 ; 1410 ; example: max_z = 1000.0 1516 ; example: max_z = 1000.0d 1411 1517 ; 1412 1518 ; default: -1.d (related to the maximum of z-axis in input file) … … 1477 1583 ; OPTIONAL --combine-- COMBINING 1478 1584 ; 1479 ; combining of two or three individual variables is possible and switched on [=1] or off[=0] 1585 ; combining of two or three individual variables is possible and 1586 ; switched on [=1] or off[=0] 1480 1587 ; 1481 1588 ; data type: integer … … 1513 1620 ; REQUIRED IF combine=1 --c_var-- VARIABLES FOR COMBINING 1514 1621 ; 1515 ; names of variables; inidcate them with one comma before and after each variable; 1622 ; names of variables; inidcate them with one comma before and 1623 ; after each variable; 1516 1624 ; 1517 1625 ; data type: string … … 1549 1657 ; OPTIONAL --dash-- DASHED LINES 1550 1658 ; 1551 ; use of different line patterns [=1] or continous lines [=0] for different time steps 1659 ; use of different line patterns [=1] or continous lines [=0] 1660 ; for different time steps 1552 1661 ; 1553 1662 ; data type: integer … … 1613 1722 ; REQUIRED --file_1-- INPUT FILE 1614 1723 ; 1615 ; input file produced by PALM; if there is more than one file for all timesteps of a job chain, 1616 ; declare path and file name without cycle number and ".nc" (first and last cycle numbers are given with the parameters 'start_f' and 'end_f'); 1724 ; input file produced by PALM; if there is more than one file for 1725 ; all timesteps of a job chain, 1726 ; declare path and file name without cycle number and ".nc" (first and 1727 ; last cycle numbers are given with the parameters 'start_f' and 'end_f'); 1617 1728 ; otherwise declare path and full file name 1618 1729 ; 1619 1730 ; data type: string 1620 1731 ; 1621 ; example: file_1 = "/path_to_file/file_sp" if you use more than one cycle number 1622 ; file_1 = "/path_to_file/file_sp.4.nc" if you use one file (e.g. with cycle number 4) 1732 ; example: file_1 = "/path_to_file/file_sp" 1733 ; if you use more than one cycle number 1734 ; file_1 = "/path_to_file/file_sp.4.nc" 1735 ; if you use one file (e.g. with cycle number 4) 1623 1736 ; 1624 1737 ; default: "File in" … … 1632 1745 end if 1633 1746 ;*************************************************** 1634 ; REQUIRED if more than one file of a job chain --start_f-- START OF CYCLIC NUMBER 1635 ; 1636 ; if there is more than one file for all timesteps of a job chain, declare the first cyclicnumber which contains timesteps you'd like to use 1637 ; 1638 ; data type: integer 1639 ; 1640 ; example: start_f = 3 (if first file: example_sp.3.nc) and 0 (if first file: example_sp.nc) 1747 ; REQUIRED if more than one file of a job chain 1748 ; --start_f-- START OF CYCLIC NUMBER 1749 ; 1750 ; if there is more than one file for all timesteps of a job chain, 1751 ; declare the first cyclicnumber which contains timesteps you'd like to use 1752 ; 1753 ; data type: integer 1754 ; 1755 ; example: start_f = 3 (if first file: example_sp.3.nc) and 1756 ; start_f = 0 (if first file: example_sp.nc) 1641 1757 ; 1642 1758 ; default: -1 … … 1650 1766 end if 1651 1767 ;*************************************************** 1652 ; REQUIRED if more than one file of a job chain --end_f-- END OF CYCLIC NUMBER 1653 ; 1654 ; if there is more than one file for all timesteps of a job chain, declare the last cyclicnumber which contains timesteps you'd like to use 1655 ; 1656 ; data type: integer 1657 ; 1658 ; example: end_f = 48 (if last file: example_sp.48.nc) and 0 (if last file: example_sp.nc) 1768 ; REQUIRED if more than one file of a job chain 1769 ; --end_f-- END OF CYCLIC NUMBER 1770 ; 1771 ; if there is more than one file for all timesteps of a job chain, 1772 ; declare the last cyclicnumber which contains timesteps you'd like to use 1773 ; 1774 ; data type: integer 1775 ; 1776 ; example: end_f = 48 (if last file: example_sp.48.nc) and 1777 ; end_f = 0 (if last file: example_sp.nc) 1659 1778 ; 1660 1779 ; default: -1 … … 1670 1789 ; OPTIONAL --format_out-- OUTPUT FORMAT 1671 1790 ; 1672 ; format of the output file; supported file formats: x11, pdf, ps, eps, epsi or ncgm 1791 ; format of the output file; 1792 ; supported file formats: x11, pdf, ps, eps, epsi or ncgm 1673 1793 ; 1674 1794 ; data type: string … … 1742 1862 ; OPTIONAL --var-- OUTPUT VARIABLES 1743 1863 ; 1744 ; names of output variables; inidcate them with one comma before and after each variable 1864 ; names of output variables; inidcate them with one comma before 1865 ; and after each variable 1745 1866 ; 1746 1867 ; data type: string … … 1760 1881 ; OPTIONAL --height_level-- HEIGHT LEVELS 1761 1882 ; 1762 ; defines if all levels or selected levels are output; a 1D array with up to 100 elements 1883 ; defines if all levels or selected levels are output; 1884 ; a 1D array with up to 100 elements 1763 1885 ; from 0 to 99 must be indicated 1764 1886 ; … … 1779 1901 ; OPTIONAL --sort-- TYPE OF SORTING 1780 1902 ; 1781 ; defines if all heights [="height"] or all timesteps [="time"] are merged in one plot 1903 ; defines if all heights [="height"] or all timesteps [="time"] 1904 ; are merged in one plot 1782 1905 ; 1783 1906 ; data type: string … … 1797 1920 ; OPTIONAL --start_time_step-- FIRST TIME STEP 1798 1921 ; 1799 ; first time step of plot; there is no need to specify a precise time value from the input file, 1922 ; first time step of plot; there is no need to specify a precise 1923 ; time value from the input file, 1800 1924 ; 'start_time_step' is rounded to the next existent time step 1801 1925 ; 1802 1926 ; data type: double; dimension: [hour] 1803 1927 ; 1804 ; example: start_time_step = 0.5 1928 ; example: start_time_step = 0.5d 1805 1929 ; 1806 1930 ; default: -1.d (first available time step) … … 1816 1940 ; OPTIONAL --end_time_step-- LAST TIME STEP 1817 1941 ; 1818 ; last time step of plot; there is no need to specify a precise time value from the input file, 1942 ; last time step of plot; there is no need to specify a precise 1943 ; time value from the input file, 1819 1944 ; 'end_time_step' is rounded to the next existent time step 1820 1945 ; 1821 1946 ; data type: double; dimension: [hour] 1822 1947 ; 1823 ; example: end_time_step = 2.0 1948 ; example: end_time_step = 2.0d 1824 1949 ; 1825 1950 ; default: -1.d (last available time step) … … 1925 2050 ; OPTIONAL --norm_height-- NORMALISING X-AXIS WITH HEIGHT 1926 2051 ; 1927 ; normalising the x-axis with the height of each spectra is switched on [=1] or off [=0] 2052 ; normalising the x-axis with the height of each spectra 2053 ; is switched on [=1] or off [=0] 1928 2054 ; 1929 2055 ; data type: integer … … 2028 2154 ; REQUIRED --file_1-- INPUT FILE 2029 2155 ; 2030 ; input file produced by PALM; if there is more than one file for all timesteps of a job chain, 2031 ; declare path and file name without cycle number and ".nc" (first and last cycle numbers are given with the parameters 'start_f' and 'end_f'); 2156 ; input file produced by PALM; if there is more than one file for 2157 ; all timesteps of a job chain, 2158 ; declare path and file name without cycle number and ".nc" (first and 2159 ; last cycle numbers are given with the parameters 'start_f' and 'end_f'); 2032 2160 ; otherwise declare path and full file name 2033 2161 ; 2034 2162 ; data type: string 2035 2163 ; 2036 ; example: file_1 = "/path_to_file/file_ts" if you use more than one cycle number 2037 ; file_1 = "/path_to_file/file_ts.4.nc" if you use one file (e.g. with cycle number 4) 2164 ; example: file_1 = "/path_to_file/file_ts" 2165 ; if you use more than one cycle number 2166 ; file_1 = "/path_to_file/file_ts.4.nc" 2167 ; if you use one file (e.g. with cycle number 4) 2038 2168 ; 2039 2169 ; default: "File in" … … 2047 2177 end if 2048 2178 ;*************************************************** 2049 ; REQUIRED if more than one file of a job chain --start_f-- START OF CYCLIC NUMBER 2050 ; 2051 ; if there is more than one file for all timesteps of a job chain, declare the first cyclicnumber which contains timesteps you'd like to use 2052 ; 2053 ; data type: integer 2054 ; 2055 ; example: start_f = 3 (if first file: example_ts.3.nc) and 0 (if first file: example_ts.nc) 2179 ; REQUIRED if more than one file of a job chain 2180 ; --start_f-- START OF CYCLIC NUMBER 2181 ; 2182 ; if there is more than one file for all timesteps of a job chain, 2183 ; declare the first cyclicnumber which contains timesteps you'd like to use 2184 ; 2185 ; data type: integer 2186 ; 2187 ; example: start_f = 3 (if first file: example_ts.3.nc) and 2188 ; start_f = 0 (if first file: example_ts.nc) 2056 2189 ; 2057 2190 ; default: -1 … … 2065 2198 end if 2066 2199 ;*************************************************** 2067 ; REQUIRED if more than one file of a job chain --end_f-- END OF CYCLIC NUMBER 2068 ; 2069 ; if there is more than one file for all timesteps of a job chain, declare the last cyclicnumber which contains timesteps you'd like to use 2070 ; 2071 ; data type: integer 2072 ; 2073 ; example: end_f = 48 (if last file: example_ts.48.nc) and 0 (if last file: example_ts.nc) 2200 ; REQUIRED if more than one file of a job chain 2201 ; --end_f-- END OF CYCLIC NUMBER 2202 ; 2203 ; if there is more than one file for all timesteps of a job chain, 2204 ; declare the last cyclicnumber which contains timesteps you'd like to use 2205 ; 2206 ; data type: integer 2207 ; 2208 ; example: end_f = 48 (if last file: example_ts.48.nc) and 2209 ; end_f = 0 (if last file: example_ts.nc) 2074 2210 ; 2075 2211 ; default: -1 … … 2085 2221 ; OPTIONAL --format_out-- OUTPUT FORMAT 2086 2222 ; 2087 ; format of the output file; supported file formats: x11, pdf, ps, eps, epsi or ncgm 2223 ; format of the output file; 2224 ; supported file formats: x11, pdf, ps, eps, epsi or ncgm 2088 2225 ; 2089 2226 ; data type: string … … 2157 2294 ; OPTIONAL --var-- OUTPUT VARIABLES 2158 2295 ; 2159 ; names of output variables; inidcate them with one comma before and after each variable 2296 ; names of output variables; inidcate them with one comma before 2297 ; and after each variable 2160 2298 ; 2161 2299 ; data type: string … … 2175 2313 ; OPTIONAL --start_time_step-- FIRST TIME STEP 2176 2314 ; 2177 ; first time step of plot; there is no need to specify a precise time value from the input file, 2315 ; first time step of plot; there is no need to specify a precise 2316 ; time value from the input file, 2178 2317 ; 'start_time_step' is rounded to the next existent time step 2179 2318 ; 2180 2319 ; data type: double; dimension: [hour] 2181 2320 ; 2182 ; example: start_time_step = 0.5 2321 ; example: start_time_step = 0.5d 2183 2322 ; 2184 2323 ; default: -1.d (first available time step) … … 2194 2333 ; OPTIONAL --end_time_step-- LAST TIME STEP 2195 2334 ; 2196 ; last time step of plot; there is no need to specify a precise time value from the input file, 2335 ; last time step of plot; there is no need to specify a precise 2336 ; time value from the input file, 2197 2337 ; 'end_time_step' is rounded to the next existent time step 2198 2338 ; 2199 2339 ; data type: double; dimension: [hour] 2200 2340 ; 2201 ; example: end_time_step = 2.0 2341 ; example: end_time_step = 2.0d 2202 2342 ; 2203 2343 ; default: -1.d (last available time step) … … 2250 2390 ; OPTIONAL --norm_t-- NORMALISING X-AXIS OF TIMESERIES PLOTS (T-AXIS) 2251 2391 ; 2252 ; normalising the x-axis with the given value; the unit can explicitly set; by default no normalising and unit is set to [s] 2392 ; normalising the x-axis with the given value; the unit can explicitly set; 2393 ; by default no normalising and unit is set to [s] 2253 2394 ; 2254 2395 ; data type: float 2255 2396 ; 2256 ; example: norm_t = 3600 2397 ; example: norm_t = 3600. 2257 2398 ; 2258 2399 ; default: 1. -
palm/trunk/SCRIPTS/NCL/cross_sections.ncl
r358 r418 6 6 7 7 ;*************************************************** 8 ; load ncl_preferences.ncl8 ; load .ncl.config or .ncl.config.default 9 9 ;*************************************************** 10 10 … … 15 15 return(script) 16 16 end 17 18 if (isfilepresent(" ~/ncl_preferences.ncl")) then19 loadscript(" ~/ncl_preferences.ncl")17 18 if (isfilepresent("$PALM_BIN/../../.ncl.config")) then 19 loadscript("$PALM_BIN/../../.ncl.config") 20 20 else 21 if (isfilepresent(" ~/palm/current_version/trunk/SCRIPTS/NCL/ncl_preferences.ncl")) then22 loadscript( " ~/palm/current_version/trunk/SCRIPTS/NCL/ncl_preferences.ncl")21 if (isfilepresent("$PALM_BIN/NCL/.ncl.config.default")) then 22 loadscript( "$PALM_BIN/NCL/.ncl.config.default") 23 23 else 24 print(" ") 25 print("'ncl_preferences.ncl' does not exist in $home or $home/palm/current_version/trunk/SCRIPTS/NCL/") 24 palm_bin_path = getenv("PALM_BIN") 25 print(" ") 26 print("Neither the personal configuration file '.ncl.config' exists in") 27 print("~/palm/current_version") 28 print("nor the default configuration file '.ncl.config.default' exists in") 29 print(palm_bin_path + "/NCL") 26 30 print(" ") 27 31 exit 28 32 end if 29 end if 33 end if 30 34 31 35 begin … … 37 41 if (file_1 .EQ. "File in") then 38 42 print(" ") 39 print("Declare input file 'file_1=' in ' ncl_preferences.ncl' or prompt")43 print("Declare input file 'file_1=' in '.ncl.config' or prompt") 40 44 print(" ") 41 45 exit … … 1772 1776 ; *************************************************** 1773 1777 if (vector .EQ. 1 .AND. plotvec .EQ. "plotvec")then 1774 if ( format_out .EQ. "eps" .OR. format_out .EQ. "epsi") then1778 if ((format_out .EQ. "eps" .OR. format_out .EQ. "epsi") .AND. no_time*no_layer*(no_var+1) .gt. no_rows*no_columns) then 1775 1779 gsn_panel(wks_ps,plot(0:(no_time*no_layer*(no_var+1))-1),(/no_var+1,no_layer*no_time/),cs_resP) 1776 1780 print(" ") … … 1787 1791 end if 1788 1792 else 1789 if ( format_out .EQ. "eps" .OR. format_out .EQ. "epsi") then1793 if ((format_out .EQ. "eps" .OR. format_out .EQ. "epsi") .AND. dim_plot .gt. no_rows*no_columns) then 1790 1794 gsn_panel(wks_ps,plot(0:dim_plot-1),(/dim_plot,1/),cs_resP) 1791 1795 print(" ") -
palm/trunk/SCRIPTS/NCL/profiles.ncl
r375 r418 4 4 5 5 ;*************************************************** 6 ; load ncl_preferences.ncl6 ; load .ncl.config or .ncl.config.default 7 7 ;*************************************************** 8 8 … … 14 14 end 15 15 16 if (isfilepresent(" ~/ncl_preferences.ncl")) then17 loadscript(" ~/ncl_preferences.ncl")16 if (isfilepresent("$PALM_BIN/../../.ncl.config")) then 17 loadscript("$PALM_BIN/../../.ncl.config") 18 18 else 19 if (isfilepresent(" ~/palm/current_version/trunk/SCRIPTS/NCL/ncl_preferences.ncl")) then20 loadscript( " ~/palm/current_version/trunk/SCRIPTS/NCL/ncl_preferences.ncl")19 if (isfilepresent("$PALM_BIN/NCL/.ncl.config.default")) then 20 loadscript( "$PALM_BIN/NCL/.ncl.config.default") 21 21 else 22 print(" ") 23 print("'ncl_preferences.ncl' does not exist in $home or $home/palm/current_version/trunk/SCRIPTS/NCL/") 22 palm_bin_path = getenv("PALM_BIN") 23 print(" ") 24 print("Neither the personal configuration file '.ncl.config' exists in") 25 print("~/palm/current_version") 26 print("nor the default configuration file '.ncl.config.default' exists in") 27 print(palm_bin_path + "/NCL") 24 28 print(" ") 25 29 exit 26 30 end if 27 end if 31 end if 32 28 33 29 34 begin … … 47 52 if (file_1 .EQ. "File in") then 48 53 print(" ") 49 print("Declare 1st input file 'file_1=' in ' ncl_preferences.ncl' or prompt")54 print("Declare 1st input file 'file_1=' in '.ncl.config' or prompt") 50 55 print(" ") 51 56 exit … … 77 82 if (file_2 .EQ. "File in") then 78 83 print(" ") 79 print("Declare 2nd input file 'file_2=' in ' ncl_preferences.ncl' or prompt")84 print("Declare 2nd input file 'file_2=' in '.ncl.config' or prompt") 80 85 print(" ") 81 86 exit … … 108 113 if (file_3 .EQ. "File in") then 109 114 print(" ") 110 print("Declare 3rd input file 'file_3=' in ' ncl_preferences.ncl' or prompt")115 print("Declare 3rd input file 'file_3=' in '.ncl.config' or prompt") 111 116 print(" ") 112 117 exit … … 139 144 if (file_4 .EQ. "File in") then 140 145 print(" ") 141 print("Declare 4th input file 'file_4=' in ' ncl_preferences.ncl' or prompt")146 print("Declare 4th input file 'file_4=' in '.ncl.config' or prompt") 142 147 print(" ") 143 148 exit … … 170 175 if (file_5 .EQ. "File in") then 171 176 print(" ") 172 print("Declare 5th input file 'file_5=' in ' ncl_preferences.ncl' or prompt")177 print("Declare 5th input file 'file_5=' in '.ncl.config' or prompt") 173 178 print(" ") 174 179 exit … … 201 206 if (file_6 .EQ. "File in") then 202 207 print(" ") 203 print("Declare 6th input file 'file_6=' in ' ncl_preferences.ncl' or prompt")208 print("Declare 6th input file 'file_6=' in '.ncl.config' or prompt") 204 209 print(" ") 205 210 exit … … 1939 1944 res@gsnRightString = " " 1940 1945 if (xs .EQ. -1) then 1941 res@trXMinF = mini lq1946 res@trXMinF = miniq 1942 1947 else 1943 1948 res@trXMinF = xs 1944 1949 end if 1945 1950 if (xe .EQ. -1) then 1946 res@trXMaxF = maxi lq1951 res@trXMaxF = maxiq 1947 1952 else 1948 1953 res@trXMaxF = xe … … 1962 1967 res@gsnRightString = " " 1963 1968 if (xs .EQ. -1) then 1964 res@trXMinF = mini lqv1969 res@trXMinF = miniqv 1965 1970 else 1966 1971 res@trXMinF = xs 1967 1972 end if 1968 1973 if (xe .EQ. -1) then 1969 res@trXMaxF = maxi lqv1974 res@trXMaxF = maxiqv 1970 1975 else 1971 1976 res@trXMaxF = xe … … 4033 4038 end do 4034 4039 4035 if ( format_out .EQ. "eps" .OR. format_out .EQ. "epsi") then4040 if ((format_out .EQ. "eps" .OR. format_out .EQ. "epsi") .AND. n .gt. no_rows*no_columns) then 4036 4041 gsn_panel(wks,plot_,(/n,1/),resP) 4037 4042 print(" ") -
palm/trunk/SCRIPTS/NCL/spectra.ncl
r324 r418 4 4 5 5 ;*************************************************** 6 ; load ncl_preferences.ncl6 ; load .ncl.config or .ncl.config.default 7 7 ;*************************************************** 8 8 … … 14 14 end 15 15 16 if (isfilepresent(" ~/ncl_preferences.ncl")) then17 loadscript(" ~/ncl_preferences.ncl")16 if (isfilepresent("$PALM_BIN/../../.ncl.config")) then 17 loadscript("$PALM_BIN/../../.ncl.config") 18 18 else 19 if (isfilepresent(" ~/palm/current_version/trunk/SCRIPTS/NCL/ncl_preferences.ncl")) then20 loadscript( " ~/palm/current_version/trunk/SCRIPTS/NCL/ncl_preferences.ncl")19 if (isfilepresent("$PALM_BIN/NCL/.ncl.config.default")) then 20 loadscript( "$PALM_BIN/NCL/.ncl.config.default") 21 21 else 22 print(" ") 23 print("'ncl_preferences.ncl' does not exist in $home or $home/palm/current_version/trunk/SCRIPTS/NCL/") 22 palm_bin_path = getenv("PALM_BIN") 23 print(" ") 24 print("Neither the personal configuration file '.ncl.config' exists in") 25 print("~/palm/current_version") 26 print("nor the default configuration file '.ncl.config.default' exists in") 27 print(palm_bin_path + "/NCL") 24 28 print(" ") 25 29 exit 26 30 end if 27 end if 31 end if 28 32 29 33 begin … … 35 39 if (file_1 .EQ. "File in") then 36 40 print(" ") 37 print("Declare input file 'file_1=' in ' ncl_preferences.ncl' or prompt")41 print("Declare input file 'file_1=' in '.ncl.config' or prompt") 38 42 print(" ") 39 43 exit … … 639 643 resP@txFontHeightF = 0.015 640 644 641 if ( format_out .EQ. "eps" .OR. format_out .EQ. "epsi") then645 if ((format_out .EQ. "eps" .OR. format_out .EQ. "epsi") .AND. n .gt. no_rows*no_columns) then 642 646 gsn_panel(wks,plot,(/n,1/),resP) 643 647 print(" ") -
palm/trunk/SCRIPTS/NCL/timeseries.ncl
r317 r418 5 5 6 6 ;*************************************************** 7 ; load ncl_preferences.ncl7 ; load .ncl.config or .ncl.config.default 8 8 ;*************************************************** 9 9 … … 14 14 return(script) 15 15 end 16 17 if (isfilepresent(" ~/ncl_preferences.ncl")) then18 loadscript(" ~/ncl_preferences.ncl")16 17 if (isfilepresent("$PALM_BIN/../../.ncl.config")) then 18 loadscript("$PALM_BIN/../../.ncl.config") 19 19 else 20 if (isfilepresent(" ~/palm/current_version/trunk/SCRIPTS/NCL/ncl_preferences.ncl")) then21 loadscript( " ~/palm/current_version/trunk/SCRIPTS/NCL/ncl_preferences.ncl")20 if (isfilepresent("$PALM_BIN/NCL/.ncl.config.default")) then 21 loadscript( "$PALM_BIN/NCL/.ncl.config.default") 22 22 else 23 print(" ") 24 print("'ncl_preferences.ncl' does not exist in $home or $home/palm/current_version/trunk/SCRIPTS/NCL/") 23 palm_bin_path = getenv("PALM_BIN") 24 print(" ") 25 print("Neither the personal configuration file '.ncl.config' exists in") 26 print("~/palm/current_version") 27 print("nor the default configuration file '.ncl.config.default' exists in") 28 print(palm_bin_path + "/NCL") 25 29 print(" ") 26 30 exit 27 31 end if 28 end if 32 end if 29 33 30 34 begin … … 36 40 if (file_1 .EQ. "File in") then 37 41 print(" ") 38 print("Declare input file 'file_1=' in ' ncl_preferences.ncl' or prompt")42 print("Declare input file 'file_1=' in '.ncl.config' or prompt") 39 43 print(" ") 40 44 exit … … 1315 1319 ; *************************************************** 1316 1320 1317 if ( format_out .EQ. "eps" .OR. format_out .EQ. "epsi") then1321 if ((format_out .EQ. "eps" .OR. format_out .EQ. "epsi") .AND. n .gt. no_rows*no_columns) then 1318 1322 gsn_panel(wks_ps,plot_ps(1:n),(/n,1/),resP) 1319 1323 print(" ")
Note: See TracChangeset
for help on using the changeset viewer.