ncdfvdfcreate with no variables?

3 posts / 0 new
Last post
schen21_658127
ncdfvdfcreate with no variables?

Hi I tried to use ncdfvdfcreate to create .vdf file. However, while doing this command:

ncdfvdfcreate ngac.t00z.a3df.2015051000.nc ngac.t00z.a3df.2015051000.vdf

Here come the results:

Created VDF file:
Num time steps : 1
3D Variable names :
2DXY Variable names :
2DXZ Variable names :
2DYZ Variable names :
Excluded 3D Variable names :
Excluded 2D Variable names :
Coordinate extents : 0 0 0 1 1 1

I can use the ncdump for the netcdf file. Also tried using -vars to specific vars but did not work. Should I use this command to create .vdf file or others even though what i use is netcdf file? Much appreciated....

netcdf ngac.t00z.a3df.2015051000 {
dimensions:
latitude = 181 ;
longitude = 360 ;
time = UNLIMITED ; // (1 currently)
hlevel = 64 ;
variables:
double latitude(latitude) ;
latitude:units = "degrees_north" ;
latitude:long_name = "latitude" ;
double longitude(longitude) ;
longitude:units = "degrees_east" ;
longitude:long_name = "longitude" ;
double time(time) ;
time:units = "seconds since 1970-01-01 00:00:00.0 0:00" ;
time:long_name = "verification time generated by wgrib2 function verftime()" ;
time:reference_time = 1431216000. ;
time:reference_time_type = 1 ;
time:reference_date = "2015.05.10 00:00:00 UTC" ;
time:reference_time_description = "analyses, reference date is fixed" ;
time:time_step_setting = "auto" ;
time:time_step = 0. ;
float hlevel(hlevel) ;
hlevel:lev_type = 105 ;
hlevel:units = "level" ;
hlevel:long_name = "hybrid level" ;
hlevel:_FillValue = 9.999e+20f ;
float PRES(time, hlevel, latitude, longitude) ;
PRES:_FillValue = 9.999e+20f ;
PRES:short_name = "PRES" ;
PRES:long_name = "Pressure" ;
PRES:level = "hybrid level" ;
PRES:units = "Pa" ;
float TMP(time, hlevel, latitude, longitude) ;
TMP:_FillValue = 9.999e+20f ;
TMP:short_name = "TMP" ;
TMP:long_name = "Temperature" ;
TMP:level = "hybrid level" ;
TMP:units = "K" ;
float RH(time, hlevel, latitude, longitude) ;
RH:_FillValue = 9.999e+20f ;
RH:short_name = "RH" ;
RH:long_name = "Relative Humidity" ;
RH:level = "hybrid level" ;
RH:units = "percent" ;
float dust_bin1(time, hlevel, latitude, longitude) ;
dust_bin1:_FillValue = 9.999e+20f ;
dust_bin1:short_name = "MASSMR_aerosol_EQ_Dust_Dry_aerosol_size_GE_2eM07_LT_2eM06_" ;
dust_bin1:long_name = "Mass Mixing Ratio (Mass Fraction in Air)" ;
dust_bin1:level = "hybrid level" ;
dust_bin1:units = "kg/kg" ;
float dust_bin2(time, hlevel, latitude, longitude) ;
dust_bin2:_FillValue = 9.999e+20f ;
dust_bin2:short_name = "MASSMR_aerosol_EQ_Dust_Dry_aerosol_size_GE_2eM06_LT_3D6eM06_" ;
dust_bin2:long_name = "Mass Mixing Ratio (Mass Fraction in Air)" ;
dust_bin2:level = "hybrid level" ;
dust_bin2:units = "kg/kg" ;
float dust_bin3(time, hlevel, latitude, longitude) ;
dust_bin3:_FillValue = 9.999e+20f ;
dust_bin3:short_name = "MASSMR_aerosol_EQ_Dust_Dry_aerosol_size_GE_3D6eM06_LT_6eM06_" ;
dust_bin3:long_name = "Mass Mixing Ratio (Mass Fraction in Air)" ;
dust_bin3:level = "hybrid level" ;
dust_bin3:units = "kg/kg" ;
float dust_bin4(time, hlevel, latitude, longitude) ;
dust_bin4:_FillValue = 9.999e+20f ;
dust_bin4:short_name = "MASSMR_aerosol_EQ_Dust_Dry_aerosol_size_GE_6eM06_LT_1D2eM05_" ;
dust_bin4:long_name = "Mass Mixing Ratio (Mass Fraction in Air)" ;
dust_bin4:level = "hybrid level" ;
dust_bin4:units = "kg/kg" ;
float dust_bin5(time, hlevel, latitude, longitude) ;
dust_bin5:_FillValue = 9.999e+20f ;
dust_bin5:short_name = "MASSMR_aerosol_EQ_Dust_Dry_aerosol_size_GE_1D2eM05_LT_2eM05_" ;
dust_bin5:long_name = "Mass Mixing Ratio (Mass Fraction in Air)" ;
dust_bin5:level = "hybrid level" ;
dust_bin5:units = "kg/kg" ;

// global attributes:
:Conventions = "COARDS" ;
:History = "Tue Aug 25 19:03:02 2015: ncrename -v MASSMR_aerosol_EQ_Dust_Dry_aerosol_size_GE_2eM07_LT_2eM06_,dust_bin1 -v MASSMR_aerosol_EQ_Dust_Dry_aerosol_size_GE_2eM06_LT_3D6eM06_,dust_bin2 -v MASSMR_aerosol_EQ_Dust_Dry_aerosol_size_GE_3D6eM06_LT_6eM06_,dust_bin3 -v MASSMR_aerosol_EQ_Dust_Dry_aerosol_size_GE_6eM06_LT_1D2eM05_,dust_bin4 -v MASSMR_aerosol_EQ_Dust_Dry_aerosol_size_GE_1D2eM05_LT_2eM05_,dust_bin5 ngac.t00z.a3df.2015051000.nc\n",
"created by wgrib2" ;
:GRIB2_grid_template = 0 ;
}

tutnywm0o_661682

The following procedure results in a data-load error on OSX, and a failed assertion on Windows 10 (RegularGrid.cpp:724).

1) Navigate to /glade/p/DASG/VAPOR/Bugs/1254
2) Issue: ncdfvdfcreate -vdc2 -extents 4.1696e6:1.40459e7:0:4.2159e6:1.4144e7:129 -mapprojection "+proj=latlon +ellps=sphere" -gridtype regular uvw.nc uvw.vdf
3) Issue: ncdf2vdf -startts 0 uvw.nc uvw.vdf

http://www.anolispharma.com/

clyne

Hi

 

You'll need to identify the time variable and dimension with the '-timedim' and '-timevar' command line options.Try:

 

ncdfvdfcreate -timedim time -timevar time ngac.t00z.a3df.2015051000.nc ngac.t00z.a3df.2015051000.vdf

 

and see if that works for you.