This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
>To: address@hidden >From: Kathy Fischer <address@hidden> >Subject: ncview problems >Organization: NCAR/CGD >Keywords: 200403012231.i21MVjrV008588 netCDF ncview Kathy, > I haven't copied/moved any of these files. I've either cd'd over > to the users directory, and tried this as me (user kfischer), > or i've logged in as the user, cd'd to the directory which housed > the file, and tried it there. > > As another test, I just logged on as the user, and tried firing up > the older version - 1.75 on the same file ... it worked fine. > > I've put two files (same owner) at ftp.cgd.ucar.edu:/pub/kfischer > > Let me know if you have trouble getting them. I got them, and worked fine on both of them, so they seem to be valid, uncorrupted netcdf files. For example: $ ncdump -c sfcObs-monthly-3hrly-1971-1996mean.nc netcdf sfcObs-monthly-3hrly-1971-1996mean { dimensions: time = UNLIMITED ; // (108 currently) lat = 45 ; lon = 72 ; variables: float AH(time, lat, lon) ; AH:long_name = "high cloud amount when IB=1 (%)" ; AH:missing_value = -99999.f ; ... time = 100, 103, 106, 109, 112, 115, 118, 121, 124, 200, 203, 206, 209, 212, 215, 218, 221, 224, 300, 303, 306, 309, 312, 315, 318, 321, 324, 400, 403, 406, 409, 412, 415, 418, 421, 424, 500, 503, 506, 509, 512, 515, 518, 521, 524, 600, 603, 606, 609, 612, 615, 618, 621, 624, 700, 703, 706, 709, 712, 715, 718, 721, 724, 800, 803, 806, 809, 812, 815, 818, 821, 824, 900, 903, 906, 909, 912, 915, 918, 921, 924, 1000, 1003, 1006, 1009, 1012, 1015, 1018, 1021, 1024, 1100, 1103, 1106, 1109, 1112, 1115, 1118, 1121, 1124, 1200, 1203, 1206, 1209, 1212, 1215, 1218, 1221, 1224 ; } So the fact that you get a runtime error running the same ncdump command may mean there is something wrong with your netCDF installation. Does your ncdump work OK on other valid netCDF files, for example the sample file: ftp://ftp.unidata.ucar.edu/pub/netcdf/sample_data/aR.nc When I run ncdump -c on that, I get: $ ncdump -c aR.nc netcdf aR { dimensions: lat = 73 ; lon = 73 ; frtime = UNLIMITED ; // (11 currently) level = 5 ; timelen = 20 ; variables: float RH(frtime, level, lat, lon) ; RH:long_name = "relative humidity" ; RH:units = "percent" ; RH:valid_range = -10.f, 110.f ; RH:_FillValue = -9999.f ; float lat(lat) ; lat:long_name = "latitude" ; lat:units = "degrees_north" ; float lon(lon) ; lon:long_name = "longitude" ; lon:units = "degrees_east" ; int frtime(frtime) ; frtime:long_name = "forecast time" ; frtime:units = "hours" ; float level(level) ; level:long_name = "level" ; level:units = "millibars" ; char reftime(timelen) ; reftime:long_name = "reference time" ; reftime:units = "text_time" ; int grib_center(frtime, level) ; grib_center:long_name = "center ID" ; grib_center:units = "WMO centers table" ; int grib_model(frtime, level) ; grib_model:long_name = "model ID" ; grib_model:units = "(allocated by center)" ; // global attributes: :history = "created by Unidata LDM from NPS broadcast" ; :title = "NMC Global Product Set: Relative Humidity" ; data: lat = -90, -87.5, -85, -82.5, -80, -77.5, -75, -72.5, -70, -67.5, -65, -62.5, -60, -57.5, -55, -52.5, -50, -47.5, -45, -42.5, -40, -37.5, -35, -32.5, -30, -27.5, -25, -22.5, -20, -17.5, -15, -12.5, -10, -7.5, -5, -2.5, 0, 2.5, 5, 7.5, 10, 12.5, 15, 17.5, 20, 22.5, 25, 27.5, 30, 32.5, 35, 37.5, 40, 42.5, 45, 47.5, 50, 52.5, 55, 57.5, 60, 62.5, 65, 67.5, 70, 72.5, 75, 77.5, 80, 82.5, 85, 87.5, 90 ; lon = -180, -175, -170, -165, -160, -155, -150, -145, -140, -135, -130, -125, -120, -115, -110, -105, -100, -95, -90, -85, -80, -75, -70, -65, -60, -55, -50, -45, -40, -35, -30, -25, -20, -15, -10, -5, 0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100, 105, 110, 115, 120, 125, 130, 135, 140, 145, 150, 155, 160, 165, 170, 175, 180 ; frtime = 12, 18, 24, 30, 36, 0, 6, 42, 48, 60, 72 ; level = 850, 700, 500, 400, 300 ; } --Russ