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.
After you open the Netcdf file, use NetcdfFile.getVariables() to find out what variables are present in the file. Similarly, call getAttributes(), getDimensions(), etc. Unidata Support wrote:
------- Forwarded MessageTo: address@hidden From: address@hidden Subject: Read netcdf files Organization: ? Keywords: 200509261241.j8QCfIYJ026246 netCDF JavaHi I use the Netcdf librairy for java but I have some problems . I try with a netcdf file but I have to specify the name of the variables. I need a program which can read all the netcdf files without saying the name of the variables or anything else. I don't know if it is possible . So if you can help me to read netcdf files , it will be great. Thank you very much Fabrice -- 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. ------- End of Forwarded Message