Re: problem opening indexed files within loop?

From: Leslie Hartten <Leslie.M.Hartten_at_nyahnyahspammersnyahnyah>
Date: Wed, 24 Sep 2008 15:08:31 -0600

Dear Adam,

   Thank you, that did it! (and now that I've done it, I see the
"delete" function referenced on the "new" page).

Cheers,
   Leslie

On 9/24/08 1:00 PM, Adam Phillips wrote:
> Hi Leslie,
>
> I am guessing that each cruise has a different number of timesteps,
> which is causing the code to crash when it tries to put time (from
> cruise 2) into a predefined time array set from cruise 1.
>
> Simply delete the time array at the end of your do loop via a:
> delete(time)
> . You might have to delete the lat and lon arrays if those are different
> from cruise to cruise as well.
> Adan
>
> Leslie Hartten wrote:
>> Hi All,
>>
>> I am modifying some working code. The original code read in
>> time/lat/lon from a file & plotted the ship track on a map. This
>> version loops through cruises and each time reads in data from that
>> cruise's file. If I've only got a 1-element array of cruises (1
>> cruise) it works fine; when I go to 3 cruises, I get
>>
>> "fatal:Dimension sizes of left hand side and right hand side of
>> assignment do not match" at or near the indicated line below
_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Sep 24 2008 - 15:08:31 MDT

This archive was generated by hypermail 2.2.0 : Mon Sep 29 2008 - 13:35:43 MDT