% This is an example metadata file for a Nortek Aquadopp. % Reqired NetCDF attributes are noted and must not be removed. % Users may remove any non-required attributes or add any % additional attributes they choose, just make sure the descriptor is % no more than 50 characters % metadata=read_globalattsKJR('/Projects/PalosVerdes/2007/gatts/global_atts851.txt'); %the base file name of the data files baseFile = '8512aq01'; instnum = '2'; metadata.INSTRUMENT_TYPE = 'Nortek Aquadopp'; % type of instrument and instrument manufacturer metadata.transducer_offset_from_bottom = 0.80; % height of transducer heads off the bottom metadata.DATA_CMNT ='PV07 B1 Tripod Single Point Current meter'; % any comment metadata.WATER_DEPTH = 19.68; %this is the correct water depth based on mean pressure data metadata.WATER_DEPTH_NOTE = 'MSL from Water Level Data'; % source of water depth information %these attributes are part of the EPIC standard and don't change from %deployment to deployment, so keep them for the next deployment metadata.DATA_TYPE = ncchar('TIME'); metadata.DATA_SUBTYPE = 'MOORED'; metadata.COORD_SYSTEM = 'GEOGRAPHIC'; metadata.Conventions = 'PMEL/EPIC'; metadata.WATER_MASS = '?'; % water mass flag used for EPIC contouring programs metadata.POS_CONST = 0; % consistent position flag (=1 not consistent) metadata.DEPTH_CONST = 0; % consistent depth flag (=1 not consistent) metadata.DRIFTER = 0; % drifter flag (=1 if drifter) metadata.COMPOSITE = 0; % number of pieces in composite series % N.B. - Positive is westerly variation % Get this from the planning stage metadata.DiagnosticsInterval = 360; metadata.DiagnosticsSamples = 60; %use these attributes if you have external sensors metadata.AnalogInput1.sensor_type = 'D+A OBS3 Optical Backscatter Sensor'; metadata.AnalogInput1.serial_number = '1224'; metadata.AnalogInput1.sensor_height = 0.6; %in meters metadata.AnalogInput1.manufacturer = 'D+A Instruments'; % metadata.AnalogInput1.cals.NTUcoef = [0.95886 366.02362 38.7]; %[x^0 x^1 x^2] - get from calibration certificate %use this if you need to correct the time, for instance if the instrument %was not set in GMT - a positive value adds time, thus moving it forward %(e.g., for Hawaii, use 10 hours to correct to GMT). %Leave empty if not necessary - use hours % metadata.TimeCorrection = []; metadata.fixgaps = 1; metadata.amplitude_cutoff = 55; %if you want to specify your own amplitude cutoff metadata.metadatafile_name = '8512metadata.m'; % name of metadatafile metadata.metadatafile_author = 'Kurt Rosenberger, USGS MP'; % author of the metadatafile %now run the scripts % %now run the scripts cdfFile = [metadata.MOORING instnum 'aq']; metadata.filename = cdfFile; if 1 aqd2cdf(baseFile,cdfFile,metadata); end %convert raw data to netcdf CDFFile = [cdfFile '-raw'];outFile = cdfFile; if 1 aqd2nc(CDFFile,outFile,metadata) end