[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDF #DZU-954292]: Cannot install. Urgent:: Please respond



> the function to get the datadds? and print it on the screeen

You can get the dds in a browser by just appending ".dds" to the 
OPeNDAP URL.  The netCDF library doesn't provide a function for
that kind of low-level access.  NetCDF functions give you access
to the data as native data types in a program.

Another way to see what's in the URL is to use the ncdump utility,
providing a URL instead of a file names, as in:

  ncdump 
'http://thredds.ucar.edu/thredds/dodsC/fmrc/NCEP/GFS/Hawaii_160km/NCEP-GFS-Hawaii_160km_best.ncd?Total_precipitation'
 | head 100

That will show the dimensions, variables, and attributes, as well as data, e.g.:

netcdf NCEP-GFS-Hawaii_160km_best {
dimensions:
        time1 = 62 ;
        x = 93 ;
        y = 68 ;
variables:
        float Total_precipitation(time1, y, x) ;
                Total_precipitation:units = "kg/m^2" ;
                Total_precipitation:long_name = 
"Total_precipitation_Accumulation (Accumulation for 12 hours Intervals) @ 
surface" ;
                Total_precipitation:cell_methods = "time1: sum" ;
                Total_precipitation:missing_value = -9999.f ;
                Total_precipitation:grid_mapping = "Mercator" ;
                Total_precipitation:GRIB_param_name = "Total_precipitation" ;
                Total_precipitation:GRIB_param_short_name = "APCP" ;
                Total_precipitation:GRIB_center_id = 7 ;
                Total_precipitation:GRIB_table_id = 2 ;
                Total_precipitation:GRIB_param_number = 61 ;
                Total_precipitation:GRIB_param_id = 1, 7, 2, 61 ;
                Total_precipitation:GRIB_product_definition_type = "Initialized 
analysis product" ;
                Total_precipitation:GRIB_level_type = 1 ;
                Total_precipitation:GRIB_VectorComponentFlag = 
"easterlyNortherlyRelative" ;
                Total_precipitation:coordinates = "time1_run time1 y x " ;

// global attributes:
                :Conventions = "CF-1.4, _Coordinates" ;
                :Originating_center = "US National Weather Service - NCEP(WMC) 
(7)" ;
                :Generating_Model = "Analysis from Global Data Assimilation 
System" ;
                :Product_Type = "product valid at reference time P1" ;
                :title = "US National Weather Service - NCEP(WMC) Analysis from 
Global Data Assimilation System product valid at reference time P1" ;
                :institution = "Center US National Weather Service - NCEP(WMC) 
(7)" ;
                :source = "product valid at reference time P1" ;
                :history = "Direct read of GRIB-1 into NetCDF-Java 4 API ;\n",
                        "FMRC Best Dataset" ;
                :CF\%3afeature_type = "GRID" ;
                :file_format = "GRIB-1" ;
                :location = "Proto fmrc:GFS_Hawaii_160km" ;
                :cdm_data_type = "GRID" ;
                :DODS.strlen = 0 ;
data:

 Total_precipitation =
  0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
    0, 0, 0.7, 0.3, 0.1, 0.1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1.3, 1.9, 2.3, 
    1.1, 0, 0, 0, 0.1, 0.2, 0.3, 0.3, 0.3, 0.3, 0.2, 0.2, 0.2, 0.3, 0.2, 0.2, 

--Russ

Russ Rew                                         UCAR Unidata Program
address@hidden                      http://www.unidata.ucar.edu



Ticket Details
===================
Ticket ID: DZU-954292
Department: Support netCDF
Priority: Normal
Status: Closed