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

20040220: Hyperslab I/O of Varying Size

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: 20040220: Hyperslab I/O of Varying Size
  • Date: Fri, 20 Feb 2004 13:08:56 -0700

Ben,

> To: address@hidden
> From: "Ben Howell" <address@hidden>
> Subject: netCDF Fortran (77 + 90) - Linux - Output of Hyperslab of Varying 
> Size
> Organization: University of Wisconsin, Madison/SSEC
> Keywords: 200402181846.i1IIkk2N001457

The above message contained the following:

> Institution: University of Wisconsin - Madison
> Package Version: $Id: netcdf.h,v 2.74 2000/10/13 15:48:08 russ Exp $
> Operating System: Linux
> Hardware Information: IBM Thinkpad \"T21\"
> Inquiry: I would like to set the size of a two-dimensional array to a size 
> that accommodates a number of input-data sizes, and write the variable size 
> to a NetCDF file.
> 
> For instance,  I want to define a maximum size grid as
> 1000 latiitudes by 1000 longitudes, and be able to output
> data with the dimensions 250 latitudes by 600 longitudes.
> 
> Can this be done in FORTRAN 77?

This can be done via the nf_put_varm_* and nf_get_varm_* routines of the
Fortran-77 API of the netCDF package.

> Thanks!

Regards,
Steve Emmerson