[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[netCDF #NVT-996784]: variable with only one unlimited dimension
- Subject: [netCDF #NVT-996784]: variable with only one unlimited dimension
- Date: Fri, 23 Jan 2009 05:24:47 -0700
> Hi, everyone,
Howdy Dong Li!
>
> I want to create a netcdf dataset with
>
> CDL snippet:
>
> netcdf test01 {
>
> dimensions:
> x = nx(some fixed value), time=unlimited;
>
> variables:
> ...
> float time(time);
> ...
> data:
> ...
> }
> That is, there is an unlimited variable time whose only dimension is
> unlimited time.
This will work just fine.
>
> Program snippet:
> ...
> NF90_DEF_DIM(ncid, "time", NF90_UNLIMITED, t_dimid)
> ...
> NF90_DEF_VAR(ncid, "time", NF90_FLOAT, (/ t_dimid /), t_varid))
> ...
> (some loop)
> NF90_PUT_VAR(ncid, t_varid, cur_time, (/ output_counter /), (/ 1 /))
> ...
>
> Compile error output snippet:
> ...
> ... There is no matching specific function for this generic function
> reference. [NF90_PUT_VAR] ...
>
> Thanks for help!
>
This looks like it should work. Is cur_time a float? And is output_counter and
int?
Thanks,
Ed
Ticket Details
===================
Ticket ID: NVT-996784
Department: Support netCDF
Priority: Normal
Status: Closed