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.

[netcdf-java] problem recognising variable

Hi,

We recently upgraded ncWMS to add new functionality and for that we are using the java netcdf-4.0.48.4 library. However, we are now having difficulty displaying "wind stress" variable from a certain dataset; the library thinks that it's a vertical axis with units of pressure. Previously, we didn't have this problem with netcdf-4.0.

Following is a brief ncdump of the dataset using ToolsUI (version 4.0.48.5.2) :

dimensions:
  x = 1442;
  y = 1021;
  deptht = 1;
  time_counter = UNLIMITED;   // (1 currently)
variables:
  float nav_lon(y=1021, x=1442);
    :units = "degrees_east";
    :valid_min = -180.0f; // float
    :valid_max = 180.0f; // float
    :long_name = "Longitude";
    :nav_model = "Default grid";
    :_CoordinateAxisType = "Lon";
  float nav_lat(y=1021, x=1442);
    :units = "degrees_north";
    :valid_min = -77.010475f; // float
    :valid_max = 89.94787f; // float
    :long_name = "Latitude";
    :nav_model = "Default grid";
    :_CoordinateAxisType = "Lat";
  float deptht(deptht=1);
    :units = "m";
    :positive = "unknown";
    :valid_min = 0.0f; // float
    :valid_max = 0.0f; // float
    :title = "deptht";
    :long_name = "Vertical T levels";
    :_CoordinateAxisType = "Height";
    :_CoordinateZisPositive = "unknown";
  float time_counter(time_counter=1);
    :calendar = "gregorian";
    :title = "Time";
    :long_name = "Time axis";
  float iocestru(time_counter=1, y=1021, x=1442);
    :units = "Pa";
    :missing_value = 0.0f; // float
    :valid_min = -50.0f; // float
    :valid_max = 50.0f; // float
    :long_name = "Wind stress u";
    :short_name = "iocestru";
    :online_operation = "N/A";
    :axis = "TYX";
    :interval_operation = 432000.0f; // float
    :interval_write = 432000.0f; // float
    :associate = "time_counter deptht nav_lat nav_lon";
    :_CoordinateAxisType = "Pressure";

:Conventions = "GDT 1.3";
:file_name = "/data/perseus/users/dab/WORK/Exp4/ORCA025/ORCA025-R07-S/2007/ORCA025-R07_y2007m03d01_icemod.nc";
:production = "OPA9.0 beta";
:TimeStamp = "2008-OCT-15 10:29:42 GMT+0100";
}

If I change the units to something other than Pa, then the variable is correctly recognised as a variable. Any suggestion will be much appreciated.

Cheers,
Adit




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