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.

Re: [netcdf-java] [netcdfgroup] How to convert NetCDF data to T, Z, Y, X data

Thank you all for the fast reply.

Now I will slightly modify my initial question.
My actual work is to define a Java ImageIO plugin able to read some NetCDF
data to be used in GIS java applications. The actual version of the plugin
requires data to be indexed as:
Y,X if 2D
T/Z,Y,X if 3D
T,Z,Y,X if 4D

In case, is the ncpdq tool capable of working on the same netCDF file having
some variables with 4 Dimensions, while some other with 3, 2?
Finally, how to handle variables with "time, lat, lon, outlev, vector"
dimensions?
Anyway, I will go to that link to know more info about such an useful tool.

Best Regards,
Daniele


On Wed, Jul 16, 2008 at 5:16 PM, Larry D. Oolman <ldoolman@xxxxxxxx> wrote:

> It isn't a java solution but ncpdq which is part of
> the nco package can do this easily.
>
> Daniele Romagnoli wrote:
>
>> Hi list,
>> first of all, sorry for cross-posting.
>>
>> I have some NetCDF data containing 4D variables having dimensions ordered
>> as Time, Lat, Lon,  Level.
>> I would like to "simply" re-arrange data to become having dimensions
>> ordered as Time, Level, Lat, Lon, as recommended (although not required) by
>> CF-Convention.
>> Is there an easy way to achieve this? (I'm using net-cdf java 2.2 APIs)
>>
>> Basically I have a "test.nc <http://test.nc>" file with
>> attributes/variables/dimensions/more... and I would like to get a "
>> modified.nc <http://modified.nc>" file where the "only difference" is
>> having variables with differently ordered dimensions (and data array
>> respecting the new order).
>>
>> Any suggestion or guidance line would be greatly appreciated.
>>
>> Best Regards,
>> Daniele
>>
>> --
>> -------------------------------------------------------
>> Eng. Daniele Romagnoli
>> Software Engineer
>>
>> GeoSolutions S.A.S.
>> Via Carignoni 51
>> 55041 Camaiore (LU)
>> Italy
>>
>> phone: +39 0584983027
>> fax:     +39 0584983027
>> mob:   +39 328 0559267
>>
>>
>> http://www.geo-solutions.it
>>
>> -------------------------------------------------------
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> netcdfgroup mailing list
>> netcdfgroup@xxxxxxxxxxxxxxxx
>> For list information or to unsubscribe,  visit:
>> http://www.unidata.ucar.edu/mailing_lists/
>>
>
>
> --
> Larry Oolman
> Department of Atmospheric Science
> Dept. 3038
> University of Wyoming
> Laramie, WY 82071
> ldoolman@xxxxxxxx
> http://www-das.uwyo.edu
>
>


-- 
-------------------------------------------------------
Eng. Daniele Romagnoli
Software Engineer

GeoSolutions S.A.S.
Via Carignoni 51
55041 Camaiore (LU)
Italy

phone: +39 0584983027
fax:     +39 0584983027
mob:   +39 328 0559267


http://www.geo-solutions.it

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