command line

From: Yang Yang <yang123yang_at_nyahnyahspammersnyahnyah>
Date: Thu May 08 2014 - 16:35:10 MDT

Dear Sir/Madam:   I have a ncl script momentum_flux_new.ncl, which has the following codes:   if (.not. isvar("nc_file_in")) then     print("Input NC file not specified: EXIT")     quote = str_get_dq()     print("Syntax:  $ncl 'nc_file_in=" + quote + "directory(or path) and input nc file name" + quote + "' momentum_flux_new.ncl")     exit   end if ........................ When I typed: ncl   momentum_flux_new.ncl, it showed: yangy_at_wrh-1 $ncl momentum_flux_new.ncl  Copyright (C) 1995-2011 - All Rights Reserved  University Corporation for Atmospheric Research  NCAR Command Language Version 6.0.0  The use of this software is governed by a License Agreement.  See http://www.ncl.ucar.edu/ for more details. (0)     Input NC file not specified: EXIT (0)     Syntax:  $ncl 'nc_file_in="directory(or path) and input nc file name"' momentum_flux_new.ncl   However, when typed: yangy_at_wrh-1 $ncl 'nc_file_in="/home/yangy/SLOPE_WIND/WAVE_E_FLUX/xagcda_pi000_ieee.nc"' momentum_flux_4km.ncl  Copyright (C) 1995-2011 - All Rights Reserved  University Corporation for Atmospheric Research  NCAR Command Language Version 6.0.0  The use of this software is governed by a License Agreement.  See http://www.ncl.ucar.edu/ for more details. Segmentation fault (core dumped)   The path and the nc file are right and have no problem. Can anyone tell me what is wrong in my command line and the codes? Thanks very much!   Ed

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu May 8 16:38:16 2014

This archive was generated by hypermail 2.1.8 : Fri May 09 2014 - 15:23:17 MDT