In [1]:
import netCDF4
import matplotlib.pylab as plt

In [2]:
# make the URL that points to the Whroo L6 file on the OzFlux DAP server
dappath = "http://dap.ozflux.org.au/"
dapname = "/thredds/dodsC/ozflux/sites/Whroo/L6/Whroo_2012_to_2013_L6.nc"
dapfullname = dappath+dapname

In [3]:
# open the remore file
root = netCDF4.Dataset(dapfullname)

In [4]:
# print the dimensions
for item in root.dimensions:
    print item+": ",root.dimensions[item]


latitude:  <type 'netCDF4.Dimension'>: name = 'latitude', size = 1

longitude:  <type 'netCDF4.Dimension'>: name = 'longitude', size = 1

time:  <type 'netCDF4.Dimension'>: name = 'time', size = 35087


In [5]:
# print a list of variables and their attributes
for item in root.variables:
    print item+": ",root.variables[item]


latitude:  <type 'netCDF4.Variable'>
float64 latitude(latitude)
    long_name: latitude
    standard_name: latitude
    units: degrees north
unlimited dimensions: 
current shape = (1,)
filling off

longitude:  <type 'netCDF4.Variable'>
float64 longitude(longitude)
    long_name: longitude
    standard_name: longitude
    units: degrees east
unlimited dimensions: 
current shape = (1,)
filling off

time:  <type 'netCDF4.Variable'>
float32 time(time)
    units: days since 1800-01-01 00:00:00.0
    long_name: time
    standard_name: time
    coverage_L6: 100
    calendar: gregorian
unlimited dimensions: 
current shape = (35087,)
filling off

crs:  <type 'netCDF4.Variable'>
int32 crs()
    grid_mapping_name: latitude_longitude
    long_name: WGS 1984 datum
    longitude_of_prime_meridian: 0.0
    semi_major_axis: 6378137.0
    inverse_flattening: 298.257223563
unlimited dimensions: 
current shape = ()
filling off

Day:  <type 'netCDF4.Variable'>
int32 Day(time, latitude, longitude)
    long_name: Day
    ancillary_variables: not defined
    height: not defined
    coverage_L2: 100
    instrument: not defined
    standard_name: not defined
    coverage_L3: 100
    coverage_L6: 100
    coverage_L4: 100
    coverage_L5: 100
    units: none
    serial_number: not defined
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

Day_QCFlag:  <type 'netCDF4.Variable'>
float64 Day_QCFlag(time, latitude, longitude)
    long_name: DayQC flag
    units: none
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

Hdh:  <type 'netCDF4.Variable'>
float64 Hdh(time, latitude, longitude)
    long_name: Decimal hour of the day
    ancillary_variables: not defined
    height: not defined
    coverage_L2: 100
    instrument: not defined
    standard_name: not defined
    coverage_L3: 100
    coverage_L6: 100
    coverage_L4: 100
    coverage_L5: 100
    units: none
    serial_number: not defined
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

Hdh_QCFlag:  <type 'netCDF4.Variable'>
float64 Hdh_QCFlag(time, latitude, longitude)
    long_name: HdhQC flag
    units: none
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

Hour:  <type 'netCDF4.Variable'>
int32 Hour(time, latitude, longitude)
    long_name: Hour
    ancillary_variables: not defined
    height: not defined
    coverage_L2: 100
    instrument: not defined
    standard_name: not defined
    coverage_L3: 100
    coverage_L6: 100
    coverage_L4: 100
    coverage_L5: 100
    units: none
    serial_number: not defined
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

Hour_QCFlag:  <type 'netCDF4.Variable'>
float64 Hour_QCFlag(time, latitude, longitude)
    long_name: HourQC flag
    units: none
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

Minute:  <type 'netCDF4.Variable'>
int32 Minute(time, latitude, longitude)
    long_name: Minute
    ancillary_variables: not defined
    height: not defined
    coverage_L2: 100
    instrument: not defined
    standard_name: not defined
    coverage_L3: 100
    coverage_L6: 100
    coverage_L4: 100
    coverage_L5: 100
    units: none
    serial_number: not defined
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

Minute_QCFlag:  <type 'netCDF4.Variable'>
float64 Minute_QCFlag(time, latitude, longitude)
    long_name: MinuteQC flag
    units: none
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

Month:  <type 'netCDF4.Variable'>
int32 Month(time, latitude, longitude)
    long_name: Month
    ancillary_variables: not defined
    height: not defined
    coverage_L2: 100
    instrument: not defined
    standard_name: not defined
    coverage_L3: 100
    coverage_L6: 100
    coverage_L4: 100
    coverage_L5: 100
    units: none
    serial_number: not defined
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

Month_QCFlag:  <type 'netCDF4.Variable'>
float64 Month_QCFlag(time, latitude, longitude)
    long_name: MonthQC flag
    units: none
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

Second:  <type 'netCDF4.Variable'>
int32 Second(time, latitude, longitude)
    long_name: Second
    ancillary_variables: not defined
    height: not defined
    coverage_L2: 100
    instrument: not defined
    standard_name: not defined
    coverage_L3: 100
    coverage_L6: 100
    coverage_L4: 100
    coverage_L5: 100
    units: none
    serial_number: not defined
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

Second_QCFlag:  <type 'netCDF4.Variable'>
float64 Second_QCFlag(time, latitude, longitude)
    units: none
    long_name: SecondQC flag
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

Year:  <type 'netCDF4.Variable'>
int32 Year(time, latitude, longitude)
    long_name: Year
    ancillary_variables: not defined
    height: not defined
    coverage_L2: 100
    instrument: not defined
    standard_name: not defined
    coverage_L3: 100
    coverage_L6: 100
    coverage_L4: 100
    coverage_L5: 100
    units: none
    serial_number: not defined
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

Year_QCFlag:  <type 'netCDF4.Variable'>
float64 Year_QCFlag(time, latitude, longitude)
    long_name: YearQC flag
    units: none
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

xlDateTime:  <type 'netCDF4.Variable'>
float64 xlDateTime(time, latitude, longitude)
    coverage_L3: 100
    cf_role: timeseries_id
    coverage_L2: 100
    long_name: Date/time in Excel format
    standard_name: not defined
    coverage_L6: 100
    coverage_L4: 100
    coverage_L5: 100
    units: days since 1899-12-31 00:00:00 +9:30
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

xlDateTime_QCFlag:  <type 'netCDF4.Variable'>
int32 xlDateTime_QCFlag(time, latitude, longitude)
    long_name: xlDateTimeQC flag
    units: none
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

Ah:  <type 'netCDF4.Variable'>
float32 Ah(time, latitude, longitude)
    instrument: HMP45C
    ancillary_variables: Ah_HMP_16m QC flag
    serial_number: ?
    height: 16m
    coverage_L2: 98
    long_name: Merged from Ah_HMP_16m, Ah_7500_Av, Ah_LI840_32m, Ah_HMP_8m, Ah_HMP_4m, Ah_HMP_2m, Ah_HMP_1m, Ah_HMP_32m, merged from Ah, Ah_acc, Ah_cli
    standard_name: not defined
    coverage_L6: 100
    coverage_L4: 100
    coverage_L5: 100
    units: g/m3
    coverage_L3: 99
    valid_range: 0,30
    rangecheck_upper: [30]*12
    rangecheck_lower: [0]*12
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

Ah_QCFlag:  <type 'netCDF4.Variable'>
float64 Ah_QCFlag(time, latitude, longitude)
    units: none
    long_name: AhQC flag
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

Cc:  <type 'netCDF4.Variable'>
float32 Cc(time, latitude, longitude)
    ExcludeDates_0: ['2012-06-01 00:00','2012-06-24 00:00']
    long_name: converted to umol/mol, merged from Cc, Cc_cli
    ExcludeDates_1: ['2012-05-31 03:30','2012-05-31 10:30']
    ancillary_variables: not defined
    serial_number: not defined
    height: not defined
    coverage_L2: 88
    instrument: not defined
    standard_name: not defined
    coverage_L6: 100
    ExcludeDates_2: ['2012-08-13 04:00','2012-08-13 10:30']
    coverage_L4: 100
    coverage_L5: 100
    units: umol/mol
    coverage_L3: 88
    valid_range: 250,900
    rangecheck_upper: [900]*12
    rangecheck_lower: [250]*12
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

Cc_QCFlag:  <type 'netCDF4.Variable'>
float64 Cc_QCFlag(time, latitude, longitude)
    units: none
    long_name: CcQC flag
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

EVI:  <type 'netCDF4.Variable'>
float32 EVI(time, latitude, longitude)
    instrument: not defined
    ancillary_variables: not defined
    height: not defined
    long_name: MODIS EVI, 250m, interpolated
    standard_name: not defined
    coverage_L6: 100
    coverage_L4: 100
    coverage_L5: 100
    units: none
    serial_number: not defined
    missing_value: -9999.0
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

EVI_QCFlag:  <type 'netCDF4.Variable'>
float64 EVI_QCFlag(time, latitude, longitude)
    long_name: EVIQC flag
    units: none
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

Fa:  <type 'netCDF4.Variable'>
float32 Fa(time, latitude, longitude)
    long_name: Available energy using Fn,Fg, merged from Fa, Fa_acc, Fa_cli
    instrument: not defined
    ancillary_variables: not defined
    height: not defined
    coverage_L3: 96
    standard_name: not defined
    coverage_L6: 100
    coverage_L4: 100
    coverage_L5: 100
    units: W/m2
    serial_number: not defined
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

Fa_QCFlag:  <type 'netCDF4.Variable'>
float64 Fa_QCFlag(time, latitude, longitude)
    long_name: FaQC flag
    units: none
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

Fc:  <type 'netCDF4.Variable'>
float32 Fc(time, latitude, longitude)
    coverage_L3: 89
    ancillary_variables: not defined
    height: not defined
    long_name: converted to umol/m2/s, merged from Fc, Fc_SOLO
    standard_name: not defined
    coverage_L6: 100
    instrument: not defined
    coverage_L4: 89
    coverage_L5: 100
    units: umol/m2/s
    serial_number: not defined
    valid_range: -15,10
    rangecheck_upper: [10]*12
    rangecheck_lower: [-15]*12
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

Fc_QCFlag:  <type 'netCDF4.Variable'>
float64 Fc_QCFlag(time, latitude, longitude)
    units: none
    long_name: FcQC flag
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

Fc_storage:  <type 'netCDF4.Variable'>
float32 Fc_storage(time, latitude, longitude)
    long_name: converted to umol/m2/s
    instrument: not defined
    ancillary_variables: not defined
    height: not defined
    coverage_L3: 87
    standard_name: not defined
    coverage_L6: 91
    coverage_L4: 87
    coverage_L5: 87
    units: umol/m2/s
    serial_number: not defined
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

Fc_storage_QCFlag:  <type 'netCDF4.Variable'>
float64 Fc_storage_QCFlag(time, latitude, longitude)
    long_name: Fc_storageQC flag
    units: none
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

Fe:  <type 'netCDF4.Variable'>
float32 Fe(time, latitude, longitude)
    long_name: WPL corrected Fe, merged from Fe, Fe_SOLO
    instrument: not defined
    ancillary_variables: not defined
    height: not defined
    coverage_L3: 91
    standard_name: surface_upward_latent_heat_flux
    coverage_L6: 100
    coverage_L4: 91
    coverage_L5: 100
    units: W/m2
    serial_number: not defined
    valid_range: -100,190
    rangecheck_upper: [300,350,300,280,200,200,200,190,200,230,255,300]
    rangecheck_lower: [-100]*12
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

Fe_QCFlag:  <type 'netCDF4.Variable'>
float64 Fe_QCFlag(time, latitude, longitude)
    long_name: FeQC flag
    units: none
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

Fg:  <type 'netCDF4.Variable'>
float32 Fg(time, latitude, longitude)
    long_name: Soil heat flux corrected for storage, merged from Fg, Fg_acc, Fg_cli
    ancillary_variables: not defined
    serial_number: not defined
    height: not defined
    coverage_L2: 98
    instrument: not defined
    standard_name: downward_heat_flux_in_soil
    coverage_L6: 100
    coverage_L4: 100
    coverage_L5: 100
    units: W/m2
    coverage_L3: 98
    valid_range: -100,300
    rangecheck_upper: [300]*12
    rangecheck_lower: [-100]*12
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

Fg_QCFlag:  <type 'netCDF4.Variable'>
float64 Fg_QCFlag(time, latitude, longitude)
    long_name: FgQC flag
    units: none
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

Fh:  <type 'netCDF4.Variable'>
float32 Fh(time, latitude, longitude)
    coverage_L3: 91
    ancillary_variables: not defined
    height: not defined
    long_name: Sensible heat flux from virtual heat flux, merged from Fh, Fh_SOLO
    standard_name: surface_upward_sensible_heat_flux
    coverage_L6: 100
    instrument: not defined
    coverage_L4: 91
    coverage_L5: 100
    units: W/m2
    serial_number: not defined
    valid_range: -100,650
    rangecheck_upper: [650]*12
    rangecheck_lower: [-100]*12
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

Fh_QCFlag:  <type 'netCDF4.Variable'>
float64 Fh_QCFlag(time, latitude, longitude)
    units: none
    long_name: FhQC flag
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

Fld:  <type 'netCDF4.Variable'>
float32 Fld(time, latitude, longitude)
    instrument: Kipp and Zonen CNR4
    ancillary_variables: Fld QC flag
    serial_number: ?
    height: 36m
    coverage_L2: 99
    long_name: Down-welling long wave", merged from Fld, Fld_acc, Fld_cli
    standard_name: surface_downwelling_longwave_flux_in_air
    coverage_L6: 100
    coverage_L4: 100
    coverage_L5: 100
    units: W/m2
    coverage_L3: 99
    valid_range: 250,700
    rangecheck_upper: [700]*12
    rangecheck_lower: [250]*12
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

Fld_QCFlag:  <type 'netCDF4.Variable'>
float64 Fld_QCFlag(time, latitude, longitude)
    units: none
    long_name: FldQC flag
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

Flu:  <type 'netCDF4.Variable'>
float32 Flu(time, latitude, longitude)
    instrument: Kipp and Zonen CNR4
    ancillary_variables: Flu QC flag
    serial_number: ?
    height: 36m
    coverage_L2: 99
    long_name: Up-welling long wave, merged from Flu, Flu_acc, Flu_cli
    standard_name: surface_upwelling_longwave_flux_in_air
    coverage_L6: 100
    coverage_L4: 100
    coverage_L5: 100
    units: W/m2
    coverage_L3: 99
    valid_range: 250,700
    rangecheck_upper: [700]*12
    rangecheck_lower: [250]*12
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

Flu_QCFlag:  <type 'netCDF4.Variable'>
float64 Flu_QCFlag(time, latitude, longitude)
    units: none
    long_name: FluQC flag
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

Fm:  <type 'netCDF4.Variable'>
float32 Fm(time, latitude, longitude)
    coverage_L3: 98
    ancillary_variables: not defined
    height: not defined
    long_name: Momentum flux, rotated to natural wind coordinates
    standard_name: not defined
    coverage_L6: 98
    instrument: not defined
    coverage_L4: 98
    coverage_L5: 98
    units: kg/m/s2
    serial_number: not defined
    valid_range: -2,3.7
    rangecheck_upper: [3.7]*12
    rangecheck_lower: [-2]*12
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

Fm_QCFlag:  <type 'netCDF4.Variable'>
float64 Fm_QCFlag(time, latitude, longitude)
    long_name: FmQC flag
    units: none
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

Fn:  <type 'netCDF4.Variable'>
float32 Fn(time, latitude, longitude)
    coverage_L3: 98
    ancillary_variables: not defined
    height: not defined
    long_name: Calculated net radiation using Fsd,Fsu,Fld,Flu, merged from Fn, Fn_acc, Fn_cli
    standard_name: surface_net_allwave_radiation
    coverage_L6: 100
    instrument: not defined
    coverage_L4: 100
    coverage_L5: 100
    units: W/m2
    serial_number: not defined
    valid_range: -150,1100
    rangecheck_upper: [1100]*12
    rangecheck_lower: [-150]*12
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

Fn_QCFlag:  <type 'netCDF4.Variable'>
float64 Fn_QCFlag(time, latitude, longitude)
    long_name: FnQC flag
    units: none
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

Fre:  <type 'netCDF4.Variable'>
float32 Fre(time, latitude, longitude)
    long_name: Ecosystem respiration (observed)
    ustar_threshold_1: ['2013-01-01 00:30', '2014-01-01 00:00', 0.4]
    ustar_threshold_0: ['2012-01-01 00:30', '2013-01-01 00:00', 0.4]
    ancillary_variables: not defined
    Fsd_threshold: 10.0
    height: not defined
    instrument: not defined
    standard_name: not defined
    coverage_L6: 19
    units: umol/m2/s
    serial_number: not defined
    missing_value: -9999.0
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

Fre_QCFlag:  <type 'netCDF4.Variable'>
int32 Fre_QCFlag(time, latitude, longitude)
    long_name: FreQC flag
    units: none
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

Fre_FFNET:  <type 'netCDF4.Variable'>
float32 Fre_FFNET(time, latitude, longitude)
    long_name: Ecosystem respiration (observed), merged from Fre, Fre_FFNET_all
    ancillary_variables: not defined
    height: not defined
    instrument: not defined
    standard_name: not defined
    coverage_L6: 19
    units: umol/m2/s
    serial_number: not defined
    missing_value: -9999.0
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

Fre_FFNET_QCFlag:  <type 'netCDF4.Variable'>
int32 Fre_FFNET_QCFlag(time, latitude, longitude)
    long_name: Fre_FFNETQC flag
    units: none
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

Fre_FFNET_all:  <type 'netCDF4.Variable'>
float64 Fre_FFNET_all(time, latitude, longitude)
    instrument: not defined
    ancillary_variables: not defined
    height: not defined
    long_name: not defined
    standard_name: not defined
    coverage_L6: 0
    units: not defined
    serial_number: not defined
    missing_value: -9999.0
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

Fre_FFNET_all_QCFlag:  <type 'netCDF4.Variable'>
int32 Fre_FFNET_all_QCFlag(time, latitude, longitude)
    long_name: Fre_FFNET_allQC flag
    units: none
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

Fre_LL:  <type 'netCDF4.Variable'>
float32 Fre_LL(time, latitude, longitude)
    long_name: Ecosystem respiration (observed), merged from Fre
    ancillary_variables: not defined
    height: not defined
    instrument: not defined
    standard_name: not defined
    coverage_L6: 19
    units: umol/m2/s
    serial_number: not defined
    missing_value: -9999.0
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

Fre_LL_QCFlag:  <type 'netCDF4.Variable'>
int32 Fre_LL_QCFlag(time, latitude, longitude)
    units: none
    long_name: Fre_LLQC flag
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

Fre_LT:  <type 'netCDF4.Variable'>
float32 Fre_LT(time, latitude, longitude)
    long_name: Ecosystem respiration (observed), merged from Fre
    ancillary_variables: not defined
    height: not defined
    instrument: not defined
    standard_name: not defined
    coverage_L6: 19
    units: umol/m2/s
    serial_number: not defined
    missing_value: -9999.0
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

Fre_LT_QCFlag:  <type 'netCDF4.Variable'>
int32 Fre_LT_QCFlag(time, latitude, longitude)
    long_name: Fre_LTQC flag
    units: none
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

Fre_SOLO:  <type 'netCDF4.Variable'>
float32 Fre_SOLO(time, latitude, longitude)
    long_name: Ecosystem respiration (observed), merged from Fre, Fre_SOLO_all
    ancillary_variables: not defined
    height: not defined
    instrument: not defined
    standard_name: not defined
    coverage_L6: 19
    units: umol/m2/s
    serial_number: not defined
    missing_value: -9999.0
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

Fre_SOLO_QCFlag:  <type 'netCDF4.Variable'>
int32 Fre_SOLO_QCFlag(time, latitude, longitude)
    units: none
    long_name: Fre_SOLOQC flag
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

Fre_SOLO_all:  <type 'netCDF4.Variable'>
float64 Fre_SOLO_all(time, latitude, longitude)
    instrument: not defined
    ancillary_variables: not defined
    height: not defined
    long_name: not defined
    standard_name: not defined
    coverage_L6: 0
    units: not defined
    serial_number: not defined
    missing_value: -9999.0
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

Fre_SOLO_all_QCFlag:  <type 'netCDF4.Variable'>
int32 Fre_SOLO_all_QCFlag(time, latitude, longitude)
    units: none
    long_name: Fre_SOLO_allQC flag
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

Fsd:  <type 'netCDF4.Variable'>
float32 Fsd(time, latitude, longitude)
    instrument: Kipp and Zonen CNR4
    ancillary_variables: Fsd QC flag
    serial_number: ?
    height: 36m
    coverage_L2: 98
    long_name: Down-welling short wave, merged from Fsd, Fsd_acc, Fsd_cli
    standard_name: surface_downwelling_shortwave_flux_in_air
    coverage_L6: 100
    coverage_L4: 100
    coverage_L5: 100
    units: W/m2
    coverage_L3: 98
    valid_range: -10,1500
    rangecheck_upper: [1500]*12
    rangecheck_lower: [-10]*12
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

Fsd_QCFlag:  <type 'netCDF4.Variable'>
float64 Fsd_QCFlag(time, latitude, longitude)
    long_name: FsdQC flag
    units: none
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

Fsu:  <type 'netCDF4.Variable'>
float32 Fsu(time, latitude, longitude)
    instrument: Kipp and Zonen CNR4
    ancillary_variables: Fsu QC flag
    serial_number: ?
    height: 36m
    coverage_L2: 99
    long_name: Up-welling short wave, merged from Fsu, Fsu_acc, Fsu_cli
    standard_name: surface_upwelling_shortwave_flux_in_air
    coverage_L6: 100
    coverage_L4: 100
    coverage_L5: 100
    units: W/m2
    coverage_L3: 99
    valid_range: -10,200
    rangecheck_upper: [200]*12
    rangecheck_lower: [-10]*12
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

Fsu_QCFlag:  <type 'netCDF4.Variable'>
float64 Fsu_QCFlag(time, latitude, longitude)
    long_name: FsuQC flag
    units: none
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

GPP_FFNET:  <type 'netCDF4.Variable'>
float64 GPP_FFNET(time, latitude, longitude)
    instrument: not defined
    ancillary_variables: not defined
    height: not defined
    long_name: Gross Primary Productivity calculated from NEE_FFNET (NEE)  and Fre_FFNET (Fre)
    standard_name: not defined
    coverage_L6: 100
    units: umol/m2/s
    serial_number: not defined
    missing_value: -9999.0
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

GPP_FFNET_QCFlag:  <type 'netCDF4.Variable'>
int32 GPP_FFNET_QCFlag(time, latitude, longitude)
    long_name: GPP_FFNETQC flag
    units: none
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

GPP_SOLO:  <type 'netCDF4.Variable'>
float64 GPP_SOLO(time, latitude, longitude)
    instrument: not defined
    ancillary_variables: not defined
    height: not defined
    long_name: Gross Primary Productivity calculated from NEE_SOLO (NEE)  and Fre_SOLO (Fre)
    standard_name: not defined
    coverage_L6: 100
    units: umol/m2/s
    serial_number: not defined
    missing_value: -9999.0
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

GPP_SOLO_QCFlag:  <type 'netCDF4.Variable'>
int32 GPP_SOLO_QCFlag(time, latitude, longitude)
    units: none
    long_name: GPP_SOLOQC flag
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

NEE_FFNET:  <type 'netCDF4.Variable'>
float64 NEE_FFNET(time, latitude, longitude)
    instrument: not defined
    comment1: Fsd threshold used was 10.0
    ancillary_variables: not defined
    height: not defined
    long_name: Net Ecosystem Exchange calculated from Fc (Fc)  and Fre_FFNET (Fre)
    standard_name: not defined
    coverage_L6: 68
    units: umol/m2/s
    serial_number: not defined
    missing_value: -9999.0
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

NEE_FFNET_QCFlag:  <type 'netCDF4.Variable'>
int32 NEE_FFNET_QCFlag(time, latitude, longitude)
    long_name: NEE_FFNETQC flag
    units: none
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

NEE_SOLO:  <type 'netCDF4.Variable'>
float64 NEE_SOLO(time, latitude, longitude)
    instrument: not defined
    comment1: Fsd threshold used was 10.0
    ancillary_variables: not defined
    height: not defined
    long_name: Net Ecosystem Exchange calculated from Fc (Fc)  and Fre_SOLO (Fre)
    standard_name: not defined
    coverage_L6: 68
    units: umol/m2/s
    serial_number: not defined
    missing_value: -9999.0
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

NEE_SOLO_QCFlag:  <type 'netCDF4.Variable'>
int32 NEE_SOLO_QCFlag(time, latitude, longitude)
    long_name: NEE_SOLOQC flag
    units: none
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

Precip:  <type 'netCDF4.Variable'>
float32 Precip(time, latitude, longitude)
    ExcludeDates_0: ['2012-01-01 00:00','2013-01-01 00:00']
    long_name: Rainfall, 30 minute total, merged from Precip, Precip_bios
    ancillary_variables: Precip QC flag
    height: 0.6m
    coverage_L2: 0
    instrument: Hydrological Services CS7000
    standard_name: rainfall_amount
    coverage_L3: 0
    coverage_L6: 100
    coverage_L4: 100
    coverage_L5: 100
    units: mm
    serial_number: ?
    valid_range: 0,50
    rangecheck_upper: [50]*12
    rangecheck_lower: [0]*12
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

Precip_QCFlag:  <type 'netCDF4.Variable'>
float64 Precip_QCFlag(time, latitude, longitude)
    long_name: PrecipQC flag
    units: none
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

RH:  <type 'netCDF4.Variable'>
float32 RH(time, latitude, longitude)
    instrument: not defined
    ancillary_variables: not defined
    height: not defined
    long_name: Relative humidity
    standard_name: not defined
    coverage_L6: 100
    coverage_L4: 100
    coverage_L5: 100
    units: %
    serial_number: not defined
    missing_value: -9999.0
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

RH_QCFlag:  <type 'netCDF4.Variable'>
float64 RH_QCFlag(time, latitude, longitude)
    long_name: RHQC flag
    units: none
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

Sws:  <type 'netCDF4.Variable'>
float32 Sws(time, latitude, longitude)
    instrument: Campbell Scientific CS616
    ancillary_variables: Sws_10cma QC flag
    serial_number: ?
    height: -0.1m
    coverage_L2: 98
    long_name: Element-wise average of series Sws_10cma, Sws_10cmb, Sws_10cmc, Sws_10cmd, merged from Sws, Sws_bios
    standard_name: soil_moisture_content
    coverage_L6: 100
    coverage_L4: 100
    coverage_L5: 100
    units: frac
    coverage_L3: 98
    valid_range: 0,0.7
    rangecheck_upper: [0.70]*12
    rangecheck_lower: [0]*12
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

Sws_QCFlag:  <type 'netCDF4.Variable'>
float64 Sws_QCFlag(time, latitude, longitude)
    long_name: SwsQC flag
    units: none
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

Ta:  <type 'netCDF4.Variable'>
float32 Ta(time, latitude, longitude)
    instrument: HMP45C
    ancillary_variables: Ta_HMP_16m QC flag
    serial_number: ?
    height: 16m
    coverage_L2: 98
    long_name: Merged from Ta_HMP_16m, Ta_CSAT, Ta_HMP_8m, Ta_HMP_4m, Ta_HMP_2m, Ta_HMP_1m, Ta_HMP_32m, merged from Ta, Ta_acc, Ta_cli
    standard_name: air_temperature
    coverage_L6: 100
    coverage_L4: 100
    coverage_L5: 100
    units: C
    coverage_L3: 99
    valid_range: -10,50
    rangecheck_upper: [50]*12
    rangecheck_lower: [-10]*12
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

Ta_QCFlag:  <type 'netCDF4.Variable'>
float64 Ta_QCFlag(time, latitude, longitude)
    long_name: TaQC flag
    units: none
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

Ts:  <type 'netCDF4.Variable'>
float32 Ts(time, latitude, longitude)
    instrument: Campbell Scientific TCAV
    ancillary_variables: Ts_8cma QC flag
    serial_number: ?
    height: -0.08m
    coverage_L2: 98
    long_name: Element-wise average of series Ts_8cma, Ts_8cmb, Ts_8cmc, Ts_8cmd, merged from Ts, Ts_acc, Ts_cli
    standard_name: soil_temperature
    coverage_L6: 100
    coverage_L4: 100
    coverage_L5: 100
    units: C
    coverage_L3: 98
    valid_range: 0,60
    rangecheck_upper: [60]*12
    rangecheck_lower: [0]*12
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

Ts_QCFlag:  <type 'netCDF4.Variable'>
float64 Ts_QCFlag(time, latitude, longitude)
    long_name: TsQC flag
    units: none
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

Wd:  <type 'netCDF4.Variable'>
float32 Wd(time, latitude, longitude)
    instrument: RM Young
    ancillary_variables: Wd_32m QC flag
    serial_number: ?
    height: 32m
    coverage_L2: 98
    long_name: Merged from Wd_RMY_32m, Wd_CSAT
    standard_name: wind_from_direction
    coverage_L6: 99
    coverage_L4: 99
    coverage_L5: 99
    units: deg
    coverage_L3: 99
    valid_range: 0,360
    rangecheck_upper: [360]*12
    rangecheck_lower: [0]*12
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

Wd_QCFlag:  <type 'netCDF4.Variable'>
float64 Wd_QCFlag(time, latitude, longitude)
    units: none
    long_name: WdQC flag
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

Ws:  <type 'netCDF4.Variable'>
float32 Ws(time, latitude, longitude)
    instrument: RM Young
    ancillary_variables: Ws_32m QC flag
    serial_number: ?
    height: 32m
    coverage_L2: 98
    long_name: Merged from Ws_RMY_32m, Ws_CSAT, merged from Ws, Ws_acc, Ws_cli
    standard_name: wind_speed
    coverage_L6: 100
    coverage_L4: 100
    coverage_L5: 100
    units: m/s
    coverage_L3: 99
    valid_range: 0,30
    rangecheck_upper: [30]*12
    rangecheck_lower: [0]*12
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

Ws_QCFlag:  <type 'netCDF4.Variable'>
float64 Ws_QCFlag(time, latitude, longitude)
    long_name: WsQC flag
    units: none
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

eta:  <type 'netCDF4.Variable'>
float32 eta(time, latitude, longitude)
    coverage_L3: 98
    ancillary_variables: not defined
    height: not defined
    long_name: Horizontal rotation angle
    standard_name: not defined
    coverage_L6: 98
    instrument: not defined
    coverage_L4: 98
    coverage_L5: 98
    units: deg
    serial_number: not defined
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

eta_QCFlag:  <type 'netCDF4.Variable'>
float64 eta_QCFlag(time, latitude, longitude)
    long_name: etaQC flag
    units: none
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

ps:  <type 'netCDF4.Variable'>
float32 ps(time, latitude, longitude)
    instrument: Li-7500
    ancillary_variables: ps QC flag
    serial_number: ?
    height: 36m
    coverage_L2: 99
    long_name: Air pressure, standard deviation, merged from ps, ps_acc, ps_cli
    standard_name: surface_air_pressure
    coverage_L6: 100
    coverage_L4: 100
    coverage_L5: 100
    units: kPa
    coverage_L3: 99
    valid_range: 95,105
    rangecheck_upper: [105]*12
    rangecheck_lower: [95]*12
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

ps_QCFlag:  <type 'netCDF4.Variable'>
float64 ps_QCFlag(time, latitude, longitude)
    long_name: psQC flag
    units: none
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

q:  <type 'netCDF4.Variable'>
float32 q(time, latitude, longitude)
    instrument: not defined
    ancillary_variables: not defined
    height: not defined
    long_name: Specific humidity
    standard_name: specific_humidity
    coverage_L6: 100
    coverage_L4: 100
    coverage_L5: 100
    units: kg/kg
    serial_number: not defined
    missing_value: -9999.0
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

q_QCFlag:  <type 'netCDF4.Variable'>
float64 q_QCFlag(time, latitude, longitude)
    long_name: qQC flag
    units: none
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

theta:  <type 'netCDF4.Variable'>
float32 theta(time, latitude, longitude)
    coverage_L3: 98
    ancillary_variables: not defined
    height: not defined
    long_name: Vertical rotation angle
    standard_name: not defined
    coverage_L6: 98
    instrument: not defined
    coverage_L4: 98
    coverage_L5: 98
    units: deg
    serial_number: not defined
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

theta_QCFlag:  <type 'netCDF4.Variable'>
float64 theta_QCFlag(time, latitude, longitude)
    long_name: thetaQC flag
    units: none
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

time_QCFlag:  <type 'netCDF4.Variable'>
float64 time_QCFlag(time, latitude, longitude)
    long_name: timeQC flag
    units: none
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

ustar:  <type 'netCDF4.Variable'>
float32 ustar(time, latitude, longitude)
    coverage_L3: 98
    ancillary_variables: not defined
    height: not defined
    long_name: Friction velocity, rotated to natural wind coordinates, merged from ustar, ustar_SOLO
    standard_name: not defined
    coverage_L6: 100
    instrument: not defined
    coverage_L4: 98
    coverage_L5: 100
    units: m/s
    serial_number: not defined
    valid_range: 0,2
    rangecheck_upper: [2]*12
    rangecheck_lower: [0]*12
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off

ustar_QCFlag:  <type 'netCDF4.Variable'>
float64 ustar_QCFlag(time, latitude, longitude)
    long_name: ustarQC flag
    units: none
unlimited dimensions: 
current shape = (35087, 1, 1)
filling off


In [6]:
# get the netCDF time and the CO2 flux
time = root.variables["time"][:]
Fc = root.variables["Fc"][:]

In [7]:
# plot the CO2 flux
fig=plt.figure()
plt.plot(time,Fc[:,0,0])
plt.show()

In [ ]: