opening the files

From: Alexander Semenov <asemenov_at_nyahnyahspammersnyahnyah>
Date: Wed Mar 27 2013 - 15:45:13 MDT


I have a question.

I am reading a bunch of files like this

year = 1979
month = 01
 files = systemfunc("ls era.cice.h."+year+"-"+month+".nc")

With that notion I believe ncl will loop through the files, but the
program crashes because month in the output file has 2 digits and not 1.
So, when the code reads the data it reads: which is
incorrect, it needs to be

I tried to fix it with the if statement but I got confused with syntaxis.
Could you help me please with this?


ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
Received on Wed Mar 27 15:45:27 2013

This archive was generated by hypermail 2.1.8 : Tue Apr 02 2013 - 21:23:48 MDT