Due to the current gap in continued funding from the U.S. National Science Foundation (NSF), the NSF Unidata Program Center has temporarily paused most operations. See NSF Unidata Pause in Most Operations for details.

[netcdf-java] grid copied upside down

Hi all,
I have a strange problem.
I have two netcdf file, both containing a grid. The grids have both
lat and lon dimansions and they happen to be of the same size.

I want to merge the two programmatically and do it by adding to the
new netcdfwritable the dimansions of the first file and then add the
grid variable of every file:

                netcdfwrtitable.write(var1.getName(), var1.read());
                netcdfwrtitable.write(var2.getName(), var2.read());

The result is that I get the first map properly, while the second
shows up upside-down.

I checked thousand times the starting maps and the resulting
variables, all seems ok, but the data are copied over upside-down in
the second case.

Anyone an idea what I might have scrambled?
Thanks,
Andrea



  • 2010 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdf-java archives: