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

Home » Public Forums » archive » NCDF_ATTPUT segmentation fault with /STRING keyword
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
NCDF_ATTPUT segmentation fault with /STRING keyword [message #90491] Thu, 05 March 2015 05:17 Go to next message
andeh is currently offline  andeh
Messages: 23
Registered: April 2011
Junior Member
Hello,

The following lines of code cause my IDL session (linux, 8.3 and 8.4) to segfault. Do the gurus have any advice for my novice NCDF skills?

Cheers!

A





d = NCDF_CREATE( './test.nc', /CLOBBER, /NETCDF4_FORMAT )


theGroup = NCDF_GROUPDEF( d, 'groupname' )


theTitle = NCDF_VARDEF( theGroup, 'my_title' )


;; Segfault happens here, but ONLY when the /STRING keyword is set.
NCDF_ATTPUT, theGroup, theTitle, 'my_title', "blah blah blah", /STRING
Re: NCDF_ATTPUT segmentation fault with /STRING keyword [message #90498 is a reply to message #90491] Thu, 05 March 2015 08:32 Go to previous messageGo to next message
chris_torrence@NOSPAM is currently offline  chris_torrence@NOSPAM
Messages: 528
Registered: March 2007
Senior Member
On Thursday, March 5, 2015 at 6:17:55 AM UTC-7, AJAS wrote:
> Hello,
>
> The following lines of code cause my IDL session (linux, 8.3 and 8.4) to segfault. Do the gurus have any advice for my novice NCDF skills?
>
> Cheers!
>
> A

Yes, upgrade to IDL 8.4.1. :-) This bug was just fixed.
8.4.1 should be going up on the web site in a couple of weeks.
-Chris
Re: NCDF_ATTPUT segmentation fault with /STRING keyword [message #90515 is a reply to message #90498] Thu, 05 March 2015 13:39 Go to previous messageGo to next message
andeh is currently offline  andeh
Messages: 23
Registered: April 2011
Junior Member
Thanks Chris!

A
Re: NCDF_ATTPUT segmentation fault with /STRING keyword [message #90540 is a reply to message #90515] Fri, 06 March 2015 17:49 Go to previous message
Mark[1] is currently offline  Mark[1]
Messages: 66
Registered: February 2008
Member
On Friday, 6 March 2015 10:39:24 UTC+13, AJAS wrote:
> Thanks Chris!
>
> A

Another piece of advice: don't use the netCDF STRING data type unless you really want it. It can't be read by Fortran programs. Use the old CHAR data type.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: EOF Arctic Oscillation for beginner
Next Topic: Save hundreds of TIFFs as .bsq

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

Current Time: Wed Oct 08 07:23:47 PDT 2025

Total time taken to generate the page: 0.00470 seconds