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.
David, > To: "'address@hidden'" <address@hidden> > From: "Bennett, David A" <address@hidden> > Subject: nc-3.5 Fortran 90 question > Organization: Lockheed Martin Space Systems > Keywords: 200101162001.f0GK1ue07435 The above message contained the following: > > I was wondering if someone could give me a short description of > > how to read in a two dimensional array of character data from a > > netCDF file using the nc-3.5 Fortran 90 interface. Robert Pincus, the creator of the Fortran-90 API, has agreed to help you. He emailed me the following: > I'd need to know more about why this isn't working to be able to be much > help. He should be able to us a call like > > status = nf90_put_var(ncid, varid, values) > > where the declaration for values should be > character (len = SomeConstant), dimension(:, :) :: values > > or, if he trying to read a bunch of lines, > character (len = LineLength), dimension(:) :: values > > That's the most I can offer without more info. If the above is insufficient to solve your problem, then feel free to contact Robert directly at <address@hidden>. He's on personal time at the moment, so adjust your expectations accordingly. Please CC me on any correspondence so that I can enter it into our support-email archive. Regards, Steve Emmerson <http://www.unidata.ucar.edu>