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

[netCDF #CMF-996026]: Creating NetCDF-4 F77 codes by using "ncgen" from *.cdl file.



I can think of two possible ways.
1. Check out the NCO package from UC Irvine:
   http://nco.sourceforge.net/
2. Assuming the existing file, call if f.nc, is not
   too large.
      1. convert f.nc to text file f.cdl using the command
          ncdump -s f.nc >f.cdl
      2. Edit f.cdl to add the blank line (by inserting '\n' into
         the reference attribute
      3. convert f.cdl to the new version of f.nc (call it fnew.nc) using:
         ncgen -4 -b f.cdl -o fnew.nc



> Could you let me know how I can put a blank line between two publications
> in the global attribute (e.g, references)? What tool (ncatted?) can do
> that?
> Thanks in advance!
> 
> -Yongsheng
> 
> address@hidden> wrote:
> 
> > Using the flag NF_CLASSIC_MODEL will produce a netcdf-4 file.
> > If you choose to use NF_NETCDF4, it probably will work also.
> >
> >
> > > Thank you very much!
> > > As what I want to do  is to output NetCDF4 file directly, do you have any
> > > idea how I can modify the codes (generated from cdl file with ncgen)  in
> > > order to use the flag of " NF_NETCDF4"?
> > > Or do you have any example of f77 NetCDF generation  codes for creating
> > > three dimension (lon,lat,t) NetCDF4  data?
> > >
> > > -Yongsheng
> > >
> > > address@hidden> wrote:
> > >
> > > > Oops, I meant NF_CLASSIC_MODEL.
> > > >
> > > > =Dennis Heimbigner
> > > >   Unidata
> > > >
> > > >
> > > > Ticket Details
> > > > ===================
> > > > Ticket ID: CMF-996026
> > > > Department: Support netCDF
> > > > Priority: Normal
> > > > Status: Open
> > > > ===================
> > > > NOTE: All email exchanges with Unidata User Support are recorded in the
> > > > Unidata inquiry tracking system and then made publicly available
> > through
> > > > the web.  If you do not want to have your interactions made available
> > in
> > > > this way, you must let us know in each email you send to us.
> > > >
> > > >
> > > >
> > >
> > >
> > > --
> > > Thanks!
> > >
> > > -Yongsheng
> > >
> > >
> >
> > =Dennis Heimbigner
> >   Unidata
> >
> >
> > Ticket Details
> > ===================
> > Ticket ID: CMF-996026
> > Department: Support netCDF
> > Priority: Normal
> > Status: Open
> > ===================
> > NOTE: All email exchanges with Unidata User Support are recorded in the
> > Unidata inquiry tracking system and then made publicly available through
> > the web.  If you do not want to have your interactions made available in
> > this way, you must let us know in each email you send to us.
> >
> >
> >
> 
> 
> --
> Thanks!
> 
> -Yongsheng
> 
> 

=Dennis Heimbigner
  Unidata


Ticket Details
===================
Ticket ID: CMF-996026
Department: Support netCDF
Priority: Urgent
Status: Open
===================
NOTE: All email exchanges with Unidata User Support are recorded in the Unidata 
inquiry tracking system and then made publicly available through the web.  If 
you do not want to have your interactions made available in this way, you must 
let us know in each email you send to us.