Changeset 418 for palm/trunk


Ignore:
Timestamp:
Dec 22, 2009 12:46:23 PM (14 years ago)
Author:
heinze
Message:

ncl_preferences is renamed .ncl.config.default

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
     5command = "ksh 'if [ ! -f $HOME/.hluresfile ]; then; "+\
     6          "cp $PALM_BIN/NCL/.hluresfile $HOME; fi'"
     7system(command)
     8   
     9;*********************************************************
     10
     11
    112begin
    213
     
    1627      ; REQUIRED --file_1-- INPUT FILE
    1728      ;
    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');
    2035      ; otherwise declare path and full file name
    2136      ;
    2237      ; data type: string
    2338      ;
    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)
    2643      ;
    2744      ; default:   "File in"
     
    3552      end if
    3653      ;***************************************************
    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)
    4465      ;
    4566      ; default:   -1 
     
    5576      ; REQUIRED if more than one file of a job chain --end_f-- END OF CYCLIC NUMBER
    5677      ;
    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)
    6285      ;
    6386      ; default:   -1 
     
    7396      ; REQUIRED --xyc--xzc--yzc-- SELECTION of XY or XZ or YZ CROSS SECTIONS
    7497      ;
    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
    76100      ;
    77101      ; data type: integer
     
    101125      ; OPTIONAL --format_out-- OUTPUT FORMAT
    102126      ;
    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
    104129      ;
    105130      ; data type: string
     
    173198      ; OPTIONAL --sort-- TYPE OF SORTING
    174199      ;
    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"]
    176202      ;
    177203      ; data type: string
     
    191217      ; OPTIONAL --var-- OUTPUT VARIABLES
    192218      ;
    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
    194221      ;
    195222      ; data type: string
     
    209236      ; OPTIONAL --start_time_step-- FIRST TIME STEP
    210237      ;
    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,
    212240      ; 'start_time_step' is rounded to the next existent time step
    213241      ;
    214242      ; data type: double; dimension: [hour]
    215243      ;
    216       ; example:   start_time_step = 0.5
     244      ; example:   start_time_step = 0.5d
    217245      ;
    218246      ; default:   -1.d (first available time step)
     
    228256      ; OPTIONAL --end_time_step-- LAST TIME STEP
    229257      ;
    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,
    231260      ; 'end_time_step' is rounded to the next existent time step
    232261      ;
    233262      ; data type: double; dimension: [hour]
    234263      ;
    235       ; example:   end_time_step = 2.0
     264      ; example:   end_time_step = 2.0d
    236265      ;
    237266      ; default:   -1.d (last available time step)
     
    247276      ; OPTIONAL --xs-- MINIMUM X-AXIS
    248277      ;
    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
    251282      ;
    252283      ; data type: double; dimension: [meter]
    253284      ;
    254       ; example: xs = 150.0
     285      ; example: xs = 150.0d
    255286      ;
    256287      ; default:   -1.d (minimum of range)
     
    266297      ; OPTIONAL --xe-- MAXIMUM X-AXIS
    267298      ;
    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
    270303      ;
    271304      ; data type: double; dimension: [meter]
    272305      ;
    273       ; example: xe = 300.0
     306      ; example: xe = 300.0d
    274307      ;
    275308      ; default:   -1.d (maximum of range)
     
    285318      ; OPTIONAL --ys-- MINIMUM Y-AXIS
    286319      ;
    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
    289324      ;
    290325      ; data type: double; dimension: [meter]
    291326      ;
    292       ; example: ys = 150.0
     327      ; example: ys = 150.0d
    293328      ;
    294329      ; default:   -1.d (minimum of range)
     
    304339      ; OPTIONAL --ye-- MAXIMUM Y-AXIS
    305340      ;
    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
    308345      ;
    309346      ; data type: double; dimension: [meter]
    310347      ;
    311       ; example: ye = 300.0
     348      ; example: ye = 300.0d
    312349      ;
    313350      ; default:   -1.d (maximum of range)
     
    323360      ; OPTIONAL --zs-- MINIMUM Z-AXIS
    324361      ;
    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);
    326364      ; you cannot specify a meter value from the input file due to grid stretching 
    327365      ;
     
    342380      ; OPTIONAL --ze-- MAXIMUM Z-AXIS
    343381      ;
    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);
    345384      ; you cannot specify a meter value from the input file due to grid stretching 
    346385      ;
     
    361400      ; OPTIONAL --mode-- TYPE OF PLOT
    362401      ;
    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
    364404      ;
    365405      ; data type: string
     
    379419      ; OPTIONAL --fill_mode-- TYPE OF FILLING
    380420      ;
    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
    382423      ;
    383424      ; data type: string
     
    449490      end if   
    450491      ;***************************************************
    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, ...
    454497      ;
    455498      ; data type: integer
     
    469512      ; OPTIONAL --axes_explicit-- EXPLICIT SETTINGS OF X- AND Y-AXES ARE SWITCHED ON
    470513      ;
    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]
    472516      ;
    473517      ; data type: integer
     
    485529      end if
    486530      ;***************************************************
    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
    491538      ;
    492539      ; data type: integer
     
    504551      end if
    505552      ;***************************************************
    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
    510560      ;
    511561      ; data type: integer
     
    523573      end if
    524574      ;***************************************************
    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]
    528580      ;
    529581      ; data type: float
    530582      ;
    531       ; default:   1.
     583      ; default:   1.0
    532584      ;***************************************************
    533585      if(.not. isvar("norm_x"))then     
    534586         
    535          norm_x = 1.     
     587         norm_x = 1.0   
    536588         
    537589      end if
    538590      if(.not. isvar("norm_y"))then     
    539591         
    540          norm_y = 1.     
     592         norm_y = 1.0   
    541593         
    542594      end if
    543595      if(.not. isvar("norm_z"))then     
    544596         
    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]
    552606      ;
    553607      ; data type: string,
     
    593647      ; REQUIRED IF vector=1 --vec1, vec2-- VECTOR FOR VECTOR PLOT
    594648      ;
    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;
    596651      ; inidcate them with one comma before and after each variable;
    597652      ;
     
    616671      ; OPTIONAL --plotvec-- VARIABLE FOR EXTRA VECTOR PLOT
    617672      ;
    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
    620677      ;
    621678      ; data type: string
     
    663720      ; REQUIRED --file_1-- 1ST INPUT FILE
    664721      ;
    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');
    667726      ; otherwise declare path and full file name
    668727      ;
    669728      ; data type: string
    670729      ;
    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)
    673734      ;
    674735      ; default:   "File in"
     
    684745      ; REQUIRED --start_f_1-- START OF CYCLIC NUMBER OF THE 1ST INPUT FILE
    685746      ;
    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)
    691754      ;
    692755      ; default:   -1 
     
    702765      ; REQUIRED --end_f_1-- END OF CYCLIC NUMBER OF THE 1ST INPUT FILE
    703766      ;
    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)
    709774      ;
    710775      ; default:   -1 
     
    784849      ; OPTIONAL --var-- OUTPUT VARIABLES
    785850      ;
    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
    787853      ;
    788854      ; data type: string
     
    820886      ; OPTIONAL ---no_files-- NUMBER OF INPUT FILES
    821887      ;
    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;
    823890      ; identical variables are merged in one plot;
    824891      ; 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
    826894      ;
    827895      ; data type: integer
     
    855923      ; REQUIRED if no_files > 1 --file_2-- 2ND INPUT FILE
    856924      ;
    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');
    859929      ; otherwise declare path and full file name
    860930      ;
    861931      ; data type: string
    862932      ;
    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)
    865937      ;
    866938      ; default:   "File in"
     
    876948      ; REQUIRED --start_f_2-- START OF CYCLIC NUMBER OF THE 2ND INPUT FILE
    877949      ;
    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
    879952      ;
    880953      ; data type: integer
     
    894967      ; REQUIRED --end_f_2-- END OF CYCLIC NUMBER OF THE 2ND INPUT FILE
    895968      ;
    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
    897971      ;
    898972      ; data type: integer
     
    9281002      ; REQUIRED if no_files > 2 --file_3-- 3RD INPUT FILE
    9291003      ;
    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');
    9321008      ; otherwise declare path and full file name
    9331009      ;
    9341010      ; data type: string
    9351011      ;
    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)
    9381016      ;
    9391017      ; default:   "File in"
     
    9491027      ; REQUIRED --start_f_3-- START OF CYCLIC NUMBER OF THE 3RD INPUT FILE
    9501028      ;
    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
    9521031      ;
    9531032      ; data type: integer
     
    9671046      ; REQUIRED --end_f_3-- END OF CYCLIC NUMBER OF THE 3RD INPUT FILE
    9681047      ;
    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
    9701050      ;
    9711051      ; data type: integer
     
    10011081      ; REQUIRED if no_files > 3 --file_4-- 4TH INPUT FILE
    10021082      ;
    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');
    10051087      ; otherwise declare path and full file name
    10061088      ;
    10071089      ; data type: string
    10081090      ;
    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)
    10111095      ;
    10121096      ; default:   "File in"
     
    10221106      ; REQUIRED --start_f_4-- START OF CYCLIC NUMBER OF THE 4TH INPUT FILE
    10231107      ;
    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
    10251110      ;
    10261111      ; data type: integer
     
    10401125      ; REQUIRED --end_f_4-- END OF CYCLIC NUMBER OF THE 4TH INPUT FILE
    10411126      ;
    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
    10431129      ;
    10441130      ; data type: integer
     
    10741160      ; REQUIRED if no_files > 4 --file_5-- 5TH INPUT FILE
    10751161      ;
    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');
    10781166      ; otherwise declare path and full file name
    10791167      ;
    10801168      ; data type: string
    10811169      ;
    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)
    10841174      ;
    10851175      ; default:   "File in"
     
    10951185      ; REQUIRED --start_f_5-- START OF CYCLIC NUMBER OF THE 5TH INPUT FILE
    10961186      ;
    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
    10981189      ;
    10991190      ; data type: integer
     
    11131204      ; REQUIRED --end_f_5-- END OF CYCLIC NUMBER OF THE 5TH INPUT FILE
    11141205      ;
    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
    11161208      ;
    11171209      ; data type: integer
     
    11471239      ; REQUIRED if no_files > 5 --file_6-- 6TH INPUT FILE
    11481240      ;
    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');
    11511245      ; otherwise declare path and full file name
    11521246      ;
    11531247      ; data type: string
    11541248      ;
    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)
    11571253      ;
    11581254      ; default:   "File in"
     
    11681264      ; REQUIRED --start_f_6-- START OF CYCLIC NUMBER OF THE 6TH INPUT FILE
    11691265      ;
    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
    11711268      ;
    11721269      ; data type: integer
     
    11861283      ; REQUIRED --end_f_6-- END OF CYCLIC NUMBER OF THE 6TH INPUT FILE
    11871284      ;
    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
    11891287      ;
    11901288      ; data type: integer
     
    12201318      ; OPTIONAL --start_time_step-- FIRST TIME STEP
    12211319      ;
    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,
    12231322      ; 'start_time_step' is rounded to the next existent time step
    12241323      ;
    12251324      ; data type: double; dimension: [hour]
    12261325      ;
    1227       ; example:   start_time_step = 0.5
     1326      ; example:   start_time_step = 0.5d
    12281327      ;
    12291328      ; default:   -1.d (first available time step)
     
    12391338      ; OPTIONAL --end_time_step-- LAST TIME STEP
    12401339      ;
    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,
    12421342      ; 'end_time_step' is rounded to the next existent time step
    12431343      ;
    12441344      ; data type: double; dimension: [hour]
    12451345      ;
    1246       ; example:   end_time_step = 2.0
     1346      ; example:   end_time_step = 2.0d
    12471347      ;
    12481348      ; default:   -1.d (last available time step)
     
    12581358      ; OPTIONAL --time_stride-- TEMPORAL STRIDE
    12591359      ;
    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
    12631365      ;
    12641366      ; data type: integer
     
    12781380      ; OPTIONAL --start_x-- STARTVALUE IN X-DIRECTION 
    12791381      ;
    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
    12811384      ;
    12821385      ; data type: integer; dimension [grippoint]
     
    12961399      ; OPTIONAL --end_x-- ENDVALUE IN X-DIRECTION 
    12971400      ;
    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
    12991403      ;
    13001404      ; data type: integer; dimension [grippoint]
     
    13141418      ; OPTIONAL --start_y-- STARTVALUE IN Y-DIRECTION 
    13151419      ;
    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
    13171422      ;
    13181423      ; data type: integer; dimension [grippoint]
     
    13321437      ; OPTIONAL --end_y-- ENDVALUE IN Y-DIRECTION 
    13331438      ;
    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
    13351441      ;
    13361442      ; data type: integer; dimension [grippoint]
     
    13901496      ; data type: double; dimension: [meter]
    13911497      ;
    1392       ; example: min_z = 0.0
     1498      ; example: min_z = 0.0d
    13931499      ;
    13941500      ; default:   -1.d (related to the minimum of z-axis in input file)
     
    14081514      ; data type: double; dimension: [meter]
    14091515      ;
    1410       ; example: max_z = 1000.0
     1516      ; example: max_z = 1000.0d
    14111517      ;
    14121518      ; default:   -1.d (related to the maximum of z-axis in input file)
     
    14771583      ; OPTIONAL --combine-- COMBINING
    14781584      ;
    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]
    14801587      ;
    14811588      ; data type: integer
     
    15131620      ; REQUIRED IF combine=1 --c_var-- VARIABLES FOR COMBINING
    15141621      ;
    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;
    15161624      ;
    15171625      ; data type: string
     
    15491657      ; OPTIONAL --dash-- DASHED LINES
    15501658      ;
    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
    15521661      ;
    15531662      ; data type: integer
     
    16131722      ; REQUIRED --file_1-- INPUT FILE
    16141723      ;
    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');
    16171728      ; otherwise declare path and full file name
    16181729      ;
    16191730      ; data type: string
    16201731      ;
    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)
    16231736      ;
    16241737      ; default:   "File in"
     
    16321745      end if
    16331746      ;***************************************************
    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)
    16411757      ;
    16421758      ; default:   -1 
     
    16501766      end if
    16511767      ;***************************************************
    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)
    16591778      ;
    16601779      ; default:   -1 
     
    16701789      ; OPTIONAL --format_out-- OUTPUT FORMAT
    16711790      ;
    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
    16731793      ;
    16741794      ; data type: string
     
    17421862      ; OPTIONAL --var-- OUTPUT VARIABLES
    17431863      ;
    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
    17451866      ;
    17461867      ; data type: string
     
    17601881      ; OPTIONAL --height_level-- HEIGHT LEVELS
    17611882      ;
    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
    17631885      ; from 0 to 99 must be indicated
    17641886      ;
     
    17791901      ; OPTIONAL --sort-- TYPE OF SORTING
    17801902      ;
    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
    17821905      ;
    17831906      ; data type: string
     
    17971920      ; OPTIONAL --start_time_step-- FIRST TIME STEP
    17981921      ;
    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,
    18001924      ; 'start_time_step' is rounded to the next existent time step
    18011925      ;
    18021926      ; data type: double; dimension: [hour]
    18031927      ;
    1804       ; example:   start_time_step = 0.5 
     1928      ; example:   start_time_step = 0.5d
    18051929      ;
    18061930      ; default:   -1.d (first available time step)
     
    18161940      ; OPTIONAL --end_time_step-- LAST TIME STEP
    18171941      ;
    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,
    18191944      ; 'end_time_step' is rounded to the next existent time step
    18201945      ;
    18211946      ; data type: double; dimension: [hour]
    18221947      ;
    1823       ; example:   end_time_step = 2.0
     1948      ; example:   end_time_step = 2.0d
    18241949      ;
    18251950      ; default:   -1.d (last available time step)
     
    19252050      ; OPTIONAL --norm_height-- NORMALISING X-AXIS WITH HEIGHT
    19262051      ;
    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]
    19282054      ;
    19292055      ; data type: integer
     
    20282154      ; REQUIRED --file_1-- INPUT FILE
    20292155      ;
    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');
    20322160      ; otherwise declare path and full file name
    20332161      ;
    20342162      ; data type: string
    20352163      ;
    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)
    20382168      ;
    20392169      ; default:   "File in"
     
    20472177      end if
    20482178      ;***************************************************
    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)
    20562189      ;
    20572190      ; default:   -1 
     
    20652198      end if
    20662199      ;***************************************************
    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)
    20742210      ;
    20752211      ; default:   -1 
     
    20852221      ; OPTIONAL --format_out-- OUTPUT FORMAT
    20862222      ;
    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
    20882225      ;
    20892226      ; data type: string
     
    21572294      ; OPTIONAL --var-- OUTPUT VARIABLES
    21582295      ;
    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
    21602298      ;
    21612299      ; data type: string
     
    21752313      ; OPTIONAL --start_time_step-- FIRST TIME STEP
    21762314      ;
    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,
    21782317      ; 'start_time_step' is rounded to the next existent time step
    21792318      ;
    21802319      ; data type: double; dimension: [hour]
    21812320      ;
    2182       ; example:   start_time_step = 0.5 
     2321      ; example:   start_time_step = 0.5d
    21832322      ;
    21842323      ; default:   -1.d (first available time step)
     
    21942333      ; OPTIONAL --end_time_step-- LAST TIME STEP
    21952334      ;
    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,
    21972337      ; 'end_time_step' is rounded to the next existent time step
    21982338      ;
    21992339      ; data type: double; dimension: [hour]
    22002340      ;
    2201       ; example:   end_time_step = 2.0
     2341      ; example:   end_time_step = 2.0d
    22022342      ;
    22032343      ; default:   -1.d (last available time step)
     
    22502390      ; OPTIONAL --norm_t-- NORMALISING X-AXIS OF TIMESERIES PLOTS (T-AXIS)
    22512391      ;
    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]
    22532394      ;
    22542395      ; data type: float
    22552396      ;
    2256       ; example: norm_t = 3600
     2397      ; example: norm_t = 3600.
    22572398      ;
    22582399      ; default:   1.
  • palm/trunk/SCRIPTS/NCL/cross_sections.ncl

    r358 r418  
    66
    77;***************************************************
    8 ; load ncl_preferences.ncl
     8; load .ncl.config or .ncl.config.default
    99;***************************************************
    1010
     
    1515   return(script)
    1616end
    17        
    18 if (isfilepresent("~/ncl_preferences.ncl")) then
    19    loadscript("~/ncl_preferences.ncl")
     17
     18if (isfilepresent("$PALM_BIN/../../.ncl.config")) then
     19   loadscript("$PALM_BIN/../../.ncl.config")
    2020else
    21   if (isfilepresent("~/palm/current_version/trunk/SCRIPTS/NCL/ncl_preferences.ncl")) then
    22      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")
    2323  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")
    2630      print(" ")
    2731      exit
    2832   end if
    29 end if
     33end if   
    3034
    3135begin
     
    3741   if (file_1 .EQ. "File in") then
    3842      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")
    4044      print(" ")
    4145      exit
     
    17721776   ; ***************************************************   
    17731777   if (vector .EQ. 1 .AND. plotvec .EQ. "plotvec")then
    1774       if (format_out .EQ. "eps" .OR. format_out .EQ. "epsi") then
     1778      if ((format_out .EQ. "eps" .OR. format_out .EQ. "epsi") .AND. no_time*no_layer*(no_var+1) .gt. no_rows*no_columns) then
    17751779         gsn_panel(wks_ps,plot(0:(no_time*no_layer*(no_var+1))-1),(/no_var+1,no_layer*no_time/),cs_resP)
    17761780         print(" ")
     
    17871791      end if
    17881792   else       
    1789       if (format_out .EQ. "eps" .OR. format_out .EQ. "epsi") then
     1793      if ((format_out .EQ. "eps" .OR. format_out .EQ. "epsi") .AND. dim_plot .gt. no_rows*no_columns) then
    17901794         gsn_panel(wks_ps,plot(0:dim_plot-1),(/dim_plot,1/),cs_resP)
    17911795         print(" ")
  • palm/trunk/SCRIPTS/NCL/profiles.ncl

    r375 r418  
    44
    55;***************************************************
    6 ; load ncl_preferences.ncl
     6; load .ncl.config or .ncl.config.default
    77;***************************************************
    88
     
    1414end
    1515   
    16 if (isfilepresent("~/ncl_preferences.ncl")) then
    17    loadscript("~/ncl_preferences.ncl")
     16if (isfilepresent("$PALM_BIN/../../.ncl.config")) then
     17   loadscript("$PALM_BIN/../../.ncl.config")
    1818else
    19   if (isfilepresent("~/palm/current_version/trunk/SCRIPTS/NCL/ncl_preferences.ncl")) then
    20      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")
    2121  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")
    2428      print(" ")
    2529      exit
    2630   end if
    27 end if
     31end if   
     32
    2833   
    2934begin
     
    4752   if (file_1 .EQ. "File in") then
    4853      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")
    5055      print(" ")
    5156      exit
     
    7782      if (file_2 .EQ. "File in") then
    7883         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")
    8085         print(" ")
    8186         exit
     
    108113      if (file_3 .EQ. "File in") then
    109114         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")
    111116         print(" ")
    112117         exit
     
    139144      if (file_4 .EQ. "File in") then
    140145         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")
    142147         print(" ")
    143148         exit
     
    170175      if (file_5 .EQ. "File in") then
    171176         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")
    173178         print(" ")
    174179         exit
     
    201206      if (file_6 .EQ. "File in") then
    202207         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")
    204209         print(" ")
    205210         exit
     
    19391944                  res@gsnRightString     = " "
    19401945                  if (xs .EQ. -1) then
    1941                      res@trXMinF            = minilq
     1946                     res@trXMinF            = miniq
    19421947                  else
    19431948                     res@trXMinF            = xs
    19441949                  end if
    19451950                  if (xe .EQ. -1) then       
    1946                      res@trXMaxF            = maxilq
     1951                     res@trXMaxF            = maxiq
    19471952                  else
    19481953                     res@trXMaxF            = xe 
     
    19621967                  res@gsnRightString     = " "
    19631968                  if (xs .EQ. -1) then
    1964                      res@trXMinF            = minilqv
     1969                     res@trXMinF            = miniqv
    19651970                  else
    19661971                     res@trXMinF            = xs
    19671972                  end if
    19681973                  if (xe .EQ. -1) then         
    1969                      res@trXMaxF            = maxilqv
     1974                     res@trXMaxF            = maxiqv
    19701975                  else
    19711976                     res@trXMaxF            = xe 
     
    40334038   end do
    40344039
    4035    if (format_out .EQ. "eps" .OR. format_out .EQ. "epsi") then
     4040   if ((format_out .EQ. "eps" .OR. format_out .EQ. "epsi") .AND. n .gt. no_rows*no_columns) then
    40364041      gsn_panel(wks,plot_,(/n,1/),resP)
    40374042      print(" ")
  • palm/trunk/SCRIPTS/NCL/spectra.ncl

    r324 r418  
    44
    55;***************************************************
    6 ; load ncl_preferences.ncl
     6; load .ncl.config or .ncl.config.default
    77;***************************************************
    88
     
    1414end
    1515   
    16 if (isfilepresent("~/ncl_preferences.ncl")) then
    17    loadscript("~/ncl_preferences.ncl")
     16if (isfilepresent("$PALM_BIN/../../.ncl.config")) then
     17   loadscript("$PALM_BIN/../../.ncl.config")
    1818else
    19   if (isfilepresent("~/palm/current_version/trunk/SCRIPTS/NCL/ncl_preferences.ncl")) then
    20      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")
    2121  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")
    2428      print(" ")
    2529      exit
    2630   end if
    27 end if
     31end if   
    2832
    2933begin
     
    3539   if (file_1 .EQ. "File in") then
    3640      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")
    3842      print(" ")
    3943      exit
     
    639643   resP@txFontHeightF          = 0.015
    640644
    641    if (format_out .EQ. "eps" .OR. format_out .EQ. "epsi") then
     645   if ((format_out .EQ. "eps" .OR. format_out .EQ. "epsi") .AND. n .gt. no_rows*no_columns) then
    642646      gsn_panel(wks,plot,(/n,1/),resP)
    643647      print(" ")
  • palm/trunk/SCRIPTS/NCL/timeseries.ncl

    r317 r418  
    55 
    66;***************************************************
    7 ; load ncl_preferences.ncl
     7; load .ncl.config or .ncl.config.default
    88;***************************************************
    99
     
    1414   return(script)
    1515end
    16    
    17 if (isfilepresent("~/ncl_preferences.ncl")) then
    18    loadscript("~/ncl_preferences.ncl")
     16
     17if (isfilepresent("$PALM_BIN/../../.ncl.config")) then
     18   loadscript("$PALM_BIN/../../.ncl.config")
    1919else
    20   if (isfilepresent("~/palm/current_version/trunk/SCRIPTS/NCL/ncl_preferences.ncl")) then
    21      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")
    2222  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")
    2529      print(" ")
    2630      exit
    2731   end if
    28 end if
     32end if   
    2933   
    3034begin
     
    3640   if (file_1 .EQ. "File in") then
    3741      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")
    3943      print(" ")
    4044      exit
     
    13151319   ; ***************************************************
    13161320 
    1317    if (format_out .EQ. "eps" .OR. format_out .EQ. "epsi") then
     1321   if ((format_out .EQ. "eps" .OR. format_out .EQ. "epsi") .AND. n .gt. no_rows*no_columns) then
    13181322      gsn_panel(wks_ps,plot_ps(1:n),(/n,1/),resP)
    13191323      print(" ")
Note: See TracChangeset for help on using the changeset viewer.