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

Home » Public Forums » archive » NCDF_ATTPUT _FillValue problem for string arrays?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
NCDF_ATTPUT _FillValue problem for string arrays? [message #67146] Mon, 06 July 2009 12:14
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
Hello,

I've encountered a strange problem with some netCDF output using IDL.

I define a character string array variable in my output netCDF file like so:

VarId = NCDF_VARDEF( fid, 'Absorber_Units_Name', [32,n_Absorbers_DimId], /CHAR)

where the "32" is the maximum string length.

Now if I try to set a fill value attribute for that variable, like so

NCDF_ATTPUT, fid, VarId, '_FillValue', ' '
or
NCDF_ATTPUT, fid, VarId, '_FillValue', 0B

when I run the code I get the following error when I take the file out of define mode:

% NCDF_CONTROL: Attempt to take the file out of define mode (ENDEF) failed. (NC_ERROR=-45)

If I simply comment out the call to NCDF_ATTPUT for these character variables, there's no
problem.

I do this sort of thing (i.e. _FillValue of " " for character string variables) all the
time using the Fortran90 API to netCDF so I assume an empty space is a valid fill value.

Has anyone else encountered this behaviour in IDL? I.e. is this a known bug in the IDL
netCDF interface, or do I need to do something special with character fill values?

Thanks for any info.

cheers,

paulv
[Message index]
 
Read Message
Previous Topic: nike clothing,nike shoes,online store,http://www.maidi2008.net air Jordan Shoes,Nike Air Jordans, Air Force Ones,Retro Air Jordan, Bape Hoodies,Bape shoes-Tencent Traveler|Jordan Shoes,Nike Air Jordans, Air Force Ones,Retro Air Jordan, Bape Hood
Next Topic: Multiple Plots in PostScript

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

Current Time: Fri Oct 10 15:32:12 PDT 2025

Total time taken to generate the page: 0.40210 seconds