comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Stride error message
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Stride error message [message #28781] Fri, 11 January 2002 09:07 Go to next message
k-bowman is currently offline  k-bowman
Messages: 12
Registered: December 2001
Junior Member
In article <610ef65b.0201100914.5dac3ee5@posting.google.com>, ksonntag@ou.edu (Karen) wrote:

> While using the ncdf_varput command (writing a 3-d file), I received
> the following error message: 'Non-positive stride not allowed'. I
> read the online help and looked at the example program, but can not
> determine a solution. Has anyone encountered this problem? Thanks.

I seem to recall getting "stride error" messages even when I had not set the STRIDE keyword. The error was in my specifications for the OFFSET and COUNT (e.g, trying to get more data than there is, using a negative count, etc.)

Check your OFFSET and COUNT vectors carefully.

Ken
Re: Stride error message [message #28785 is a reply to message #28781] Fri, 11 January 2002 08:26 Go to previous messageGo to next message
James Kuyper is currently offline  James Kuyper
Messages: 425
Registered: March 2000
Senior Member
Karen wrote:

> While using the ncdf_varput command (writing a 3-d file), I received
> the following error message: 'Non-positive stride not allowed'. I
> read the online help and looked at the example program, but can not
> determine a solution. Has anyone encountered this problem? Thanks.

Could you show us an example of the code that failed? I presume you've
already checked the obvious: you did make sure that 'stride' is either
not specified, or is specified as vector of 3 numbers, all of them positive?
Re: Stride error message [message #28787 is a reply to message #28785] Fri, 11 January 2002 08:15 Go to previous messageGo to next message
Liam E. Gumley is currently offline  Liam E. Gumley
Messages: 378
Registered: January 2000
Senior Member
Karen wrote:
> While using the ncdf_varput command (writing a 3-d file), I received
> the following error message: 'Non-positive stride not allowed'. I
> read the online help and looked at the example program, but can not
> determine a solution. Has anyone encountered this problem? Thanks.

Could you post the shortest example program that reproduces the problem?

Cheers,
Liam.
Practical IDL Programming
http://www.gumley.com/
Re: Stride error message [message #28845 is a reply to message #28781] Mon, 14 January 2002 11:14 Go to previous message
ksonntag is currently offline  ksonntag
Messages: 2
Registered: January 2002
Junior Member
Thank you Ken! I adjusted offset and count. I left stride
unspecified and it worked. Thanks to all.

Karen Sonntag
Cooperative Institute for Mesoscale Meteorological Studies
Universtiy of Oklahoma

k-bowman@null.com (Kenneth Bowman) wrote in message news:<k-bowman-1101021107270001@bowman.tamu.edu>...
> In article <610ef65b.0201100914.5dac3ee5@posting.google.com>, ksonntag@ou.edu (Karen) wrote:
>
>> While using the ncdf_varput command (writing a 3-d file), I received
>> the following error message: 'Non-positive stride not allowed'. I
>> read the online help and looked at the example program, but can not
>> determine a solution. Has anyone encountered this problem? Thanks.
>
> I seem to recall getting "stride error" messages even when I had not set the STRIDE keyword. The error was in my specifications for the OFFSET and COUNT (e.g, trying to get more data than there is, using a negative count, etc.)
>
> Check your OFFSET and COUNT vectors carefully.
>
> Ken
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IDLWAVE 4.12
Next Topic: IDL DICOM writer

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:51:26 PDT 2025

Total time taken to generate the page: 0.00606 seconds