Changeset 418 for palm/trunk/SCRIPTS/NCL/spectra.ncl
- Timestamp:
- Dec 22, 2009 12:46:23 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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(" ")
Note: See TracChangeset
for help on using the changeset viewer.