NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
Dear all, I am new to Java and NetCDF so I hope this question is not too basic. I want to write a file with rotated lat lon coordinates, height and a fourth dimension called urban class. All values are calculated inside java and are not read or connected to a netcdf file. I followed the tutorial and was able to write all the stuff manually, ie using ncfile.addVariable and ncfile.addVariableAttribute to enter information about the rotated grid, the variable names, units, etc. So I used standard java arrays and only at the end I converted them to Array. Is there a more elegant way? I found several classes like NetcdfDataset and CoordinateAxis1D but it looks like I need one of them to get the other (looking at the Constructors). There is also NetcdfCFWriter which looks interesting but it says it writes a gridded dataset. As far as I can see, my forth dimension is not usable then, right? I would be happy if you could point me to the right places, I think I am able to work out the details. Thanks a lot Sebastian -- Potsdam Institute for Climate Impact Research (PIK) Research Domain II - Climate Impacts & Vulnerabilities http://www.pik-potsdam.de/members/schubert/
Attachment:
signature.asc
Description: This is a digitally signed message part.
netcdf-java
archives: