Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check rogue files again #105

Open
mdsumner opened this issue Jun 10, 2020 · 0 comments
Open

check rogue files again #105

mdsumner opened this issue Jun 10, 2020 · 0 comments

Comments

@mdsumner
Copy link
Collaborator

l3b_file <- system.file("extdata/oceandata/S2008001.L3b_DAY_RRS.nc", 
+                           package = "tidync", mustWork = TRUE)
> tidync(l3b_file)
Error: `distinct()` must use existing variables.
x `id` not found in `.data`.
x `name` not found in `.data`.
x `type` not found in `.data`.
x `ndims` not found in `.data`.
x `natts` not found in `.data`.

ncdf4 doens't like at all

ncdf4::nc_open(l3b_file)
Error in ncvar_type_to_string(rv$precint) : 
  Error, unrecognized type code of variable supplied: -1

For RNetCDF it's groups

RNetCDF::print.nc(RNetCDF::open.nc(l3b_file))
netcdf netcdf4 {

// global attributes:
		NC_CHAR :product_name = "S2008001.L3b_DAY_RRS.nc" ;
		NC_CHAR :title = "SeaWiFS Level-3 Binned Data" ;
		NC_CHAR :instrument = "SeaWiFS" ;
		NC_CHAR :platform = "Orbview-2" ;
		NC_CHAR :temporal_range = "day" ;
		NC_INT :start_orbit_number = 55461 ;
		NC_INT :end_orbit_number = 55475 ;
		NC_CHAR :date_created = "2018-01-30T21:30:05.000Z" ;
		NC_CHAR :processing_version = "2018.0" ;
		NC_CHAR :history = "l2bin par=S2008001.L3b_DAY_RRS.param" ;
		NC_CHAR :time_coverage_start = "2007-12-31T18:09:01.000Z" ;
		NC_CHAR :time_coverage_end = "2008-01-01T17:49:13.000Z" ;
		NC_FLOAT :northernmost_latitude = -75.875 ;
		NC_FLOAT :southernmost_latitude = -77.2916641235352 ;
		NC_FLOAT :easternmost_longitude = 170.553436279297 ;
		NC_FLOAT :westernmost_longitude = 165.317810058594 ;
		NC_DOUBLE :geospatial_lat_max = -75.875 ;
		NC_DOUBLE :geospatial_lat_min = -77.2916641235352 ;
		NC_DOUBLE :geospatial_lon_max = 170.553436279297 ;
		NC_DOUBLE :geospatial_lon_min = 165.317810058594 ;
		NC_CHAR :geospatial_lat_units = "degrees_north" ;
		NC_CHAR :geospatial_lon_units = "degrees_east" ;
		NC_DOUBLE :geospatial_lon_resolution = 0.0833333333333333 ;
		NC_DOUBLE :geospatial_lat_resolution = 0.0833333333333333 ;
		NC_CHAR :spatialResolution = "9.2 km" ;
		NC_INT :data_bins = 2 ;
		NC_FLOAT :percent_data_bins = 3.3667642128421e-05 ;
		NC_CHAR :units = "angstrom:undefined,aot_865:undefined,Rrs_412:sr^-1,Rrs_443:sr^-1,Rrs_490:sr^-1,Rrs_510:sr^-1,Rrs_555:sr^-1,Rrs_670:sr^-1" ;
		NC_CHAR :binning_scheme = "Integerized Sinusoidal Grid" ;
		NC_CHAR :project = "Ocean Biology Processing Group (NASA/GSFC/OBPG)" ;
		NC_CHAR :institution = "NASA Goddard Space Flight Center, Ocean Ecology Laboratory, Ocean Biology Processing Group" ;
		NC_CHAR :standard_name_vocabulary = "CF Standard Name Table v36" ;
		NC_CHAR :Conventions = "CF-1.6 ACDD-1.3" ;
		NC_CHAR :naming_authority = "gov.nasa.gsfc.sci.oceandata" ;
		NC_CHAR :id = "S2008001.L3b_DAY_RRS.nc/L3/S2008001.L3b_DAY_RRS.nc" ;
		NC_CHAR :license = "http://science.nasa.gov/earth-science/earth-science-data/data-information-policy/" ;
		NC_CHAR :creator_name = "NASA/GSFC/OBPG" ;
		NC_CHAR :publisher_name = "NASA/GSFC/OBPG" ;
		NC_CHAR :creator_email = "[email protected]" ;
		NC_CHAR :publisher_email = "[email protected]" ;
		NC_CHAR :creator_url = "http://oceandata.sci.gsfc.nasa.gov" ;
		NC_CHAR :publisher_url = "http://oceandata.sci.gsfc.nasa.gov" ;
		NC_CHAR :processing_level = "L3 Binned" ;
		NC_CHAR :cdm_data_type = "point" ;
		NC_CHAR :identifier_product_doi_authority = "http://dx.doi.org" ;
		NC_CHAR :identifier_product_doi = "10.5067/ORBVIEW-2/SEAWIFS/L3B/RRS/2018" ;
		NC_CHAR :keywords_vocabulary = "NASA Global Change Master Directory (GCMD) Science Keywords" ;
		NC_CHAR :keywords = "Earth Science > Oceans > Ocean Optics > Reflectance" ;

group: level-3_binned_data {
  dimensions:
  	binListDim = UNLIMITED ; // (2 currently)
  	binDataDim = UNLIMITED ; // (2 currently)
  	binIndexDim = UNLIMITED ; // (2160 currently)
  types:
    compound binListType {
      NC_UINT bin_num ;
      NC_SHORT nobs ;
      NC_SHORT nscenes ;
      NC_FLOAT weights ;
      NC_FLOAT time_rec ;
    }; // binListType
    compound binDataType {
      NC_FLOAT sum ;
      NC_FLOAT sum_squared ;
    }; // binDataType
    compound binIndexType {
      NC_UINT start_num ;
      NC_UINT begin ;
      NC_UINT extent ;
      NC_UINT max ;
    }; // binIndexType
  variables:
  	binListType BinList(binListDim) ;
  	binDataType angstrom(binDataDim) ;
  	binDataType aot_865(binDataDim) ;
  	binDataType Rrs_412(binDataDim) ;
  	binDataType Rrs_443(binDataDim) ;
  	binDataType Rrs_490(binDataDim) ;
  	binDataType Rrs_510(binDataDim) ;
  	binDataType Rrs_555(binDataDim) ;
  	binDataType Rrs_670(binDataDim) ;
  	binIndexType BinIndex(binIndexDim) ;
  } // group level-3_binned_data

group: processing_control {

  // group attributes:
  		NC_CHAR :software_name = "l2bin" ;
  		NC_CHAR :software_version = "4.4.1" ;
  		NC_CHAR :source = "S2007365180135.L2_GAC_OC.nc,S2007365180901.L2_GAC_OC.nc,S2007365194235.L2_GAC_OC.nc,S2007365212117.L2_GAC_OC.nc,S2007365225958.L2_GAC_OC.nc,S2008001003832.L2_GAC_OC.nc,S2008001021713.L2_GAC_OC.nc,S2008001035555.L2_GAC_OC.nc,S2008001053447.L2_GAC_OC.nc,S2008001071318.L2_GAC_OC.nc,S2008001085200.L2_GAC_OC.nc,S2008001103041.L2_GAC_OC.nc,S2008001120923.L2_GAC_OC.nc,S2008001134804.L2_GAC_OC.nc,S2008001152646.L2_GAC_OC.nc,S2008001170527.L2_GAC_OC.nc" ;
  		NC_CHAR :l2_flag_names = "ATMFAIL,LAND,HILT,HISATZEN,STRAYLIGHT,CLDICE,COCCOLITH,LOWLW,CHLWARN,CHLFAIL,NAVWARN,MAXAERITER,ATMWARN,HISOLZEN,NAVFAIL,FILTER,HIGLINT" ;

  group: input_parameters {

    // group attributes:
    		NC_CHAR :infile = "/data4/sdpsoper/vdc/vpu10/workbuf/l2inlist.dat" ;
    		NC_CHAR :ofile = "S2008001.L3b_DAY_RRS.nc" ;
    		NC_CHAR :oformat = "2" ;
    		NC_CHAR :fileuse = "S2008001.L3b_DAY_RRS.contrib" ;
    		NC_CHAR :sday = "2008001" ;
    		NC_CHAR :eday = "2008001" ;
    		NC_CHAR :resolve = "9" ;
    		NC_CHAR :rowgroup = "270" ;
    		NC_CHAR :flaguse = "ATMFAIL,LAND,HILT,HISATZEN,STRAYLIGHT,CLDICE,COCCOLITH,LOWLW,CHLWARN,CHLFAIL,NAVWARN,MAXAERITER,ATMWARN,HISOLZEN,NAVFAIL,FILTER,HIGLINT" ;
    		NC_CHAR :l3bprod = "angstrom=-1.0,aot_865,Rrs_412=-0.005,Rrs_443=-0.005,Rrs_490=-0.005,Rrs_510=-0.005,Rrs_555=-0.005,Rrs_670=-0.005" ;
    		NC_CHAR :prodtype = "O" ;
    		NC_CHAR :pversion = "2018.0" ;
    		NC_CHAR :suite = "RRS" ;
    		NC_CHAR :average = "standard" ;
    		NC_CHAR :night = "0" ;
    		NC_CHAR :verbose = "0" ;
    		NC_CHAR :minobs = "0" ;
    		NC_CHAR :deflate = "4" ;
    		NC_CHAR :qual_prod = "" ;
    		NC_CHAR :composite_prod = "" ;
    		NC_CHAR :composite_scheme = "" ;
    		NC_CHAR :qual_max = "255" ;
    		NC_CHAR :healpix = "0" ;
    } // group input_parameters
  } // group processing_control
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant