[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[netCDFJava #EJT-345152]: Display content of .grib and .nc file
- Subject: [netCDFJava #EJT-345152]: Display content of .grib and .nc file
- Date: Thu, 03 Nov 2016 01:24:11 -0600
Hi Arunima,
We don't have any ready-made programs or services that will print your data in
that format. It's certainly possible, but you'll have to code it yourself. A
couple hints:
* Use NetcdfDataset.getCoordinateSystems() to identify the coordinate axes
(time, lat, lon, z).
* Loop through all indices for each axis, outputting corresponding data values
along the way (forecast_hr, temp, etc).
Pseudo-code:
for (int i = 0; i < lat.length; ++i) {
for (int j = 0; j < lon.length; ++j) {
// etc...
printf("%s %s ... %s", lat[i], lon[j], ..., data_var[i, j, ...])
}
}
Hopefully that gets you started.
-Christian
Ticket Details
===================
Ticket ID: EJT-345152
Department: Support netCDF Java
Priority: Normal
Status: Closed
===================
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.