NCL as a scripting language: one step further

From: Rob Nicholas <rnicholas_at_nyahnyahspammersnyahnyah>
Date: Wed, 13 May 2009 13:05:17 -0700

Hi all,

I know that many folks use NCL within Csh or Bash script using
something like the following approach:

   cat > temp_ncl_script.ncl << EOF
   ncl temp_ncl_script.ncl
   rm temp_ncl_script.ncl

However, it turns out that the following *simpler* approach will also work...


...but with one minor problem: NCL generates an error on the first
line of the script. Does anyone know of a way to get NCL to ignore
the opening line of the above script when it is executed directly from
the shell?

While I'm on the subject, I'd like to make a request to the
developers: Although both # and ! have particular meanings within
NCL, would it be possible to have NCL ignore the first line of a
script if it begins with a "#!"? If not added as a standard behavior,
could it be enabled with a command line option?

ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
Received on Wed May 13 2009 - 14:05:17 MDT

This archive was generated by hypermail 2.2.0 : Tue May 19 2009 - 09:17:29 MDT