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

Home » Public Forums » archive » writing fixed-length string arrays to netcdf-4
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: writing fixed-length string arrays to netcdf-4 [message #86460 is a reply to message #86403] Mon, 11 November 2013 16:17 Go to previous message
Chris O'Dell is currently offline  Chris O'Dell
Messages: 5
Registered: August 2011
Junior Member
On Tuesday, November 5, 2013 11:50:42 AM UTC-7, David Fanning wrote:
> Chris O'Dell writes:
>
>
>
>> Thanks David! However, your program seems to require your special NetCDF libraries, which I downloaded and installed so I could run your test program. However, it still produces the same fundamental netCDF objects inside the actual netcdf file. The reason they come out as string arrays when you read them seems to be because of logic you have built into your netCDF reader. Something like, "When you encounter a field that is a n-dimensional array of characters (length
>
> 1 strings), interpret this as an array of strings, where the string length is the size of the first dimension". Something like that.
>
>
>
> Well, I think I wrote this code in 2007, which is the last time I worked
>
> extensively with netCDF files. I wrote the code because I couldn't make
>
> any sense at all of the IDL documentation and I thought I could write
>
> something that worked better. As far as I can tell, the documentation
>
> hasn't improved. And, generally speaking, I've found that my code always
>
> works, so I've just continued using it. If I built logic into it, it
>
> must have been because the code was missing it in the original. ;-)
>
>
>
> Cheers,
>
>
>
> David
>
>
>
>
>
>
>
> --
>
> David Fanning, Ph.D.
>
> Fanning Software Consulting, Inc.
>
> Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
>
> Sepore ma de ni thue. ("Perhaps thou speakest truth.")

Sorry it took so long to reply. I don't check this every day and it shows. Thanks for putting some thought into this, but this is about as far as I've gotten. It's good to know about your netCDF software though, thanks!

Chris
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Difficulty in succesfully creating a runtime app
Next Topic: derivative function in IDL similar as DIFF in matlab

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

Current Time: Wed Oct 08 18:38:40 PDT 2025

Total time taken to generate the page: 0.00438 seconds