Changeset 418 for palm/trunk/SCRIPTS/NCL/timeseries.ncl
- Timestamp:
- Dec 22, 2009 12:46:23 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.