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.

Re: [netcdf-java] problem getting axistype

Hi John,

Just to return to this problem with some more info.  The following program:

    public static void main(String[] args) throws Exception {
        NetcdfDataset nc =
NetcdfDataset.openDataset("http://topaz.nersc.no/thredds/dodsC/topaz/mersea-ipv2/arctic/tmipv2a-class1-b-be";);
        GridDataset gd = (GridDataset)TypedDatasetFactory.open(FeatureType.GRID,
            nc, null, null);
        GridDatatype tmp = gd.findGridDatatype("temperature");
        GridCoordSystem coordSys = tmp.getCoordinateSystem();
        System.out.println("X axis type: " +
coordSys.getXHorizAxis().getAxisType());
        System.out.println("Y axis type: " +
coordSys.getYHorizAxis().getAxisType());
        System.out.println("Z axis type: " +
coordSys.getVerticalAxis().getAxisType());
        System.out.println("T axis type: " +
coordSys.getTimeAxis().getAxisType());
        nc.close();
    }

prints out:

X axis type: null
Y axis type: GeoY
Z axis type: Height
T axis type: Time

The variable in question is on a polar stereographic grid.  The types
of the Y, Z and T axes are correctly recognized as the above output
shows.  I can't figure out why the X axis is not.  This problem has
only recently appeared, and it might have occurred due to a change in
the version of nj4 that we use (or the OPeNDAP provider might have
changed something).

Can you shed any light on this?

Thanks, Jon

-- 
Dr Jon Blower
Technical Director, Reading e-Science Centre
Environmental Systems Science Centre
University of Reading
Harry Pitt Building, 3 Earley Gate
Reading RG6 6AL. UK
Tel: +44 (0)118 378 5213
Fax: +44 (0)118 378 6413
j.d.blower@xxxxxxxxxxxxx
http://www.nerc-essc.ac.uk/People/Staff/Blower_J.htm



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