Uploading parameters from a file

Julie created the ability to upload a parameter file in order to simplify the entry of parameters for a new dataset entry.  

Features include:

  • You can upload more than one file, but if there are duplicates, you'll have to remove them yourself.  Julie will work on flagging duplicates (with another color perhaps?) in the next version.
  • It's easier to remove parameter associations - per Cyndy's request there are now three buttons called "Select All", "Clear All", and "Remove parameters", with check boxes next to each parameter.
  • OSPREY will recognize comment lines (lines beginning with tilda, but can be modified to recognize <!-- and %), and blank lines in the input parameter file(s).

The input file is usually created from a spreadsheet with the following headings: suppliedName, description, suppliedUnits, and no_data_value as shown below:

suppliedName description suppliedUnits no_data_value
DeploymentId MAPCO2 Buoy Deployment Id text nd
date Date (UTC) YYYYMMDD nd
time Time (UTC) HHMM nd
lon buoy longitude position (West is negative) decimal degrees nd
lat buoy latitude position (South is negative) decimal degrees nd
Temp_5m Temperature from sensors mounted at 5meters depth degrees celsius nd

 

 After Dicky had trouble with these directions, the following has been added:

Julie has elaborated two things:

1)  the above example looks 'white space' separated and not comma-separated.  The parameter file itself should be comma separated and the lines terminated with line-feeds.

and -- very important --

2) if there is a blank field, there has to be a space between the commas.  e.g. ,^,  NOT ,,.

These are a few lines from a real input file:

suppliedName,description,suppliedUnits,no_data_value
year, , ,nd
yrday_utc,day of year; universal coordinated time; Jan. 1 = 1, ,nd
cast, , ,nd
bottle, , ,nd
depth,depth the sample was taken,meters,nd
temp,temperature,degrees C,nd