Looking for help with netcdf input file...

Robert midnight113355 at YAHOO.COM
Fri Mar 31 03:02:13 EST 2006


I have a netcdf input file that I am attempting to write a formatter for...

  I have done everything I can to conform to the COARDS conventions, but I still get "Entire grid is undefined!"

  or U is undefined...
  when trying to plot the u;v components..

  "cannot draw vector/barbs --- u field all undefined" <-- is the exact error...

  Since I am relatively new to grads so perhaps I am missing something here.

  The Netcdf files I am creating are to show windbarbs of specific stations and I am hoping to open multiple files to plot each of these data points in grads for each time stamp...

  However, I have to get to the point of definition first...

  I am including a small sample cdl output... any help would be greatly appreciated.

  -- Robert Powell

  /////


  netcdf jeanShort.csv{

  dimensions:
   lon = 1 ;
   lat = 1 ;
   level = 30 ;
   windspeed = 60 ;
   winddir = 60 ;
   time = UNLIMITED ; // Currently 2

  variables:
   double lon(lon) ;
    lon:long_name = "longitude" ;
    lon:units = "degrees_east" ;
   double lat(lat) ;
    lat:long_name = "latitude" ;
    lat:units = "degrees_north" ;
   double level(level) ;
    level:units = "meters" ;
    level:positive = "up" ;
   double windspeed(windspeed) ;
    windspeed:long_name = "wind speed in m/s" ;
    windspeed:missing_value = -9999 ;
    windspeed:units = "m s-1" ;
   double winddir(winddir) ;
    winddir:long_name = "wind direction in degrees north" ;
    winddir:missing_value = -9999 ;
   long time(time) ;
    time:units = "hours since 1970-1-1 00:00:0.0" ;
    time:long_name = "hours since 1970-1-1 00:00:0.0" ;
   double u(time, level, lat, lon) ;
    u:long_name = "u vector" ;
    u:missing_value = -9999 ;
    u:units = "m s-1" ;
   double v(time, level, lat, lon) ;
    v:long_name = "v vector" ;
    v:missing_value = -9999 ;
    v:units = "m s-1" ;
   double pressure(time,level,lat,lon);
    pressure:missing_value = -9999 ;
   double o3(time, level, lat, lon) ;
    o3:missing_value = -9999 ;
   double temp(time, level, lat, lon) ;
    temp:missing_value = -9999 ;
   double rh(time, level, lat, lon) ;
    rh:missing_value = -9999 ;

   data:
    lon = -115.3333 ;

  lat = 35.7667 ;

  level = 882,902,922,942,962,
  982,1002,1022,1042,1062,
  1082,1102,1122,1142,1162,
  1182,1202,1222,1242,1262,
  1282,1302,1322,1342,1362,
  1382,1402,1422,1442,1462 ;

  time = 310375,310376 ;

  windspeed = -9999,5.12,8.1,9.13,7.54,
  8.75,10.38,8.74,8.53,6.97,
  8.18,7.93,8.67,10.24,7.84,
  5.19,5.08,6.28,12.2,6.93,
  -9999,-9999,-9999,-9999,-9999,
  -9999,-9999,-9999,-9999,-9999,
  -9999,7.63,7.98,8.11,7.03,
  8.21,7.09,7.91,6.66,8.12,
  7.73,9.48,7.77,8.24,10.23,
  8.03,8.38,12.16,8.05,9.71,
  -9999,-9999,-9999,-9999,-9999,
  -9999,17.48,-9999,-9999,-9999 ;

  winddir = -9999,201,187,182,188,
  216,209,203,204,196,
  197,203,211,217,245,
  257,274,246,232,295,
  -9999,-9999,-9999,-9999,-9999,
  -9999,-9999,-9999,-9999,-9999,
  -9999,175,173,183,182,
  197,197,201,203,197,
  209,199,218,239,225,
  220,239,249,235,236,
  -9999,-9999,-9999,-9999,-9999,
  -9999,215,-9999,-9999,-9999 ;

  u = -9999,1.83484148059513,0.9871378930745,0.318628220155604,1.04936164393189,
  5.14311710445894,5.03231907677181,3.41498594747955,3.46945955953588,1.92118906085767,
  2.39159666128098,3.0984941148184,4.46537615800657,6.16258136510406,7.10545100476382,
  5.05697988013423,5.06762561999368,5.73706389056461,9.61372680282721,6.28071514134196,
  0,0,0,0,0,
  0,0,0,0,0,
  -9999,-0.665001669114948,-0.97252081332444,0.42444087033222,0.24534023961598,
  2.40036779818055,2.07291202059684,2.83468674052881,2.60226617965833,2.37405438748186,
  3.7475748038002,3.08638160933055,4.78368629970999,7.06305600181727,7.23369827012026,
  5.16158109555769,7.18305938048893,11.3523352518616,6.59417122222743,8.04995160039199,
  -9999,-9999,-9999,-9999,-9999,
  -9999,10.0261083496756,-9999,-9999,-9999 ;

  v = -9999,4.77993271302928,8.03962429346399,9.12443839681766,7.46662173544666,
  7.07890150022035,9.07855521047036,8.04521416610628,7.79254453723205,6.69999496958325,
  7.82257409103612,7.29960507290879,7.43164287136475,8.17803099275567,3.31333155885445,
  1.16749924707366,-0.354359387604836,2.55430967495714,7.51107561941708,-2.92873988488528,
  0,0,0,0,0,
  0,0,0,0,0,
  -9999,7.60096525318162,7.92051786612787,8.0988857225912,7.0257176264653,
  7.85126323806927,6.78020174883204,7.38462260938703,6.13056365517939,7.76519579696984,
  6.76081230991675,8.96351764440647,6.12284618343193,4.24391799110126,7.23370647295417,
  6.15133973976251,4.31602339386269,4.35776138967474,4.61729421760706,5.4297678800614,
  -9999,-9999,-9999,-9999,-9999,
  -9999,14.318783166197,-9999,-9999,-9999 ;

  pressure = -9999,-9999,-9999,-9999,-9999,
  -9999,-9999,-9999,-9999,-9999,
  -9999,-9999,-9999,-9999,-9999,
  -9999,-9999,-9999,-9999,-9999,
  -9999,-9999,-9999,-9999,-9999,
  -9999,-9999,-9999,-9999,-9999,
  -9999,-9999,-9999,-9999,-9999,
  -9999,-9999,-9999,-9999,-9999,
  -9999,-9999,-9999,-9999,-9999,
  -9999,-9999,-9999,-9999,-9999,
  -9999,-9999,-9999,-9999,-9999,
  -9999,-9999,-9999,-9999,-9999 ;

  o3 = -9999,-9999,-9999,-9999,-9999,
  -9999,-9999,-9999,-9999,-9999,
  -9999,-9999,-9999,-9999,-9999,
  -9999,-9999,-9999,-9999,-9999,
  -9999,-9999,-9999,-9999,-9999,
  -9999,-9999,-9999,-9999,-9999,
  -9999,-9999,-9999,-9999,-9999,
  -9999,-9999,-9999,-9999,-9999,
  -9999,-9999,-9999,-9999,-9999,
  -9999,-9999,-9999,-9999,-9999,
  -9999,-9999,-9999,-9999,-9999,
  -9999,-9999,-9999,-9999,-9999 ;

  temp= -9999,-9999,-9999,-9999,-9999,
  -9999,-9999,-9999,-9999,-9999,
  -9999,-9999,-9999,-9999,-9999,
  -9999,-9999,-9999,-9999,-9999,
  -9999,-9999,-9999,-9999,-9999,
  -9999,-9999,-9999,-9999,-9999,
  -9999,-9999,-9999,-9999,-9999,
  -9999,-9999,-9999,-9999,-9999,
  -9999,-9999,-9999,-9999,-9999,
  -9999,-9999,-9999,-9999,-9999,
  -9999,-9999,-9999,-9999,-9999,
  -9999,-9999,-9999,-9999,-9999 ;

  rh = -9999,-9999,-9999,-9999,-9999,
  -9999,-9999,-9999,-9999,-9999,
  -9999,-9999,-9999,-9999,-9999,
  -9999,-9999,-9999,-9999,-9999,
  -9999,-9999,-9999,-9999,-9999,
  -9999,-9999,-9999,-9999,-9999,
  -9999,-9999,-9999,-9999,-9999,
  -9999,-9999,-9999,-9999,-9999,
  -9999,-9999,-9999,-9999,-9999,
  -9999,-9999,-9999,-9999,-9999,
  -9999,-9999,-9999,-9999,-9999,
  -9999,-9999,-9999,-9999,-9999 ;
}





---------------------------------
New Yahoo! Messenger with Voice. Call regular phones from your PC for low, low rates.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20060331/56cd9a52/attachment.html 


More information about the gradsusr mailing list