[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

20000915: defining scalar variables

This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.


  • Subject: 20000915: defining scalar variables
  • Date: Fri, 15 Sep 2000 13:33:59 -0600

Stefan,

>Date: Fri, 15 Sep 2000 19:36:57 +0200
>From: Stefan Maehlmann <address@hidden>
>Organization: Aerodynamisches Institut der RWTH-Aachen
>To: Steve Emmerson <address@hidden>
>Subject: Re: 20000915: defining scalar variables
>Keywords: 200009151648.e8FGmtb07020

The above message contained the following:

> thank you for your quick help. Its works, but what's about the write 
> procedure 
> status = nf_put_var_double (ncid,time_id,time)

> 
> status =nf_put_var_double (ncid,val_id,val)
> 
> here i get the same compiler error message.
> Again time is a scalar and val an array. Their size shouldn't be identical.

Use the following:

    integer times(1)
    times(1) = time
    nf_put_var_double(ncid,time_id,times)

Regards,
Steve Emmerson   <http://www.unidata.ucar.edu>