Skip to content
Back to formatted view

Raw Message

Message-ID: <87a9xfdzka.fsf@pobox.com>
Date: 2012-08-28T11:29:57Z
From: Tom Roche
Subject: [netcdfgroup] [ncdf4] error converting GEIA data to netCDF
In-Reply-To: <CAL+Zad_QZ8ixAxA2HFmtA2=_tEWGvKvf31+q+XvwJ8hmY+SqUQ@mail.gmail.com>

Tom Roche Mon, 27 Aug 2012 23:31:23 -0400
>> summary: I can successfully ncvar_put(...) data to a file, but when
>> I try to ncvar_get(...) the same data

in the one and only datavar

>> I get

>> > Error in if (nc$var[[li]]$hasAddOffset) addOffset = nc$var[[li]]$addOffset else addOffset = 0 : 
>> >   argument is of length zero

David W. Pierce Mon, 27 Aug 2012 21:35:35 -0700
> If you want to create a file and write to it, and then read back in from that same file, close it first and then reopen it.

So nc_sync is not enough--good to know. But ...

Unfortunately I do that (nc_close then nc_open) in the latest code @

https://github.com/TomRoche/GEIA_to_NetCDF

(direct link to relevant file=

https://github.com/TomRoche/GEIA_to_netCDF/blob/master/GEIA.to.netCDF.r

) but no fix--same error. Any other suggestions?

your assistance is appreciated, Tom Roche <Tom_Roche at pobox.com>