diff --git a/.gitignore b/.gitignore index 16f2dc5fa95ef368c3f09eaca24f75cb45102d3e..bee83355db3aa494bb7f77d0d25af1f947b9c5dd 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,10 @@ -*.csv \ No newline at end of file +*.csv + +*.egg-info +build/* +dist/* +*.swp +*.nc +*__pycache__ + +aosstower/level_b1/monthly/* diff --git a/aosstower/level_b1/daily/nc.py b/aosstower/level_b1/daily/nc.py index 501e5cbfce9bf0a41d4cf0630ed76e65c9602805..c1b676f9e00f7500a362f975c9393067213ee7bf 100644 --- a/aosstower/level_b1/daily/nc.py +++ b/aosstower/level_b1/daily/nc.py @@ -100,10 +100,15 @@ def createVariables(ncFile, firstStamp, chunksizes, zlib): variable = ncFile.createVariable(entry, np.float32, dimensions=('time'), fill_value=float(-999), zlib=zlib, chunksizes=chunksizes) + variable.standard_name = varTup[1] variable.description = varTup[3] variable.units = varTup[4] + if(varTup[5] != ''): + variable.valid_min = float(varTup[5]) + variable.valid_max = float(varTup[6]) + #create global attributes ncFile.source = 'surface observation' ncFile.conventions = 'ARM-1.2 CF-1.6' diff --git a/aosstower/schema.py b/aosstower/schema.py index b89f72beaa763037fde6ec8e6b043ce21fdde2c5..65fa4d27e8be5db21b4353928d8dd78664a363f5 100644 --- a/aosstower/schema.py +++ b/aosstower/schema.py @@ -11,7 +11,10 @@ database = dict( 'air_temperature', 'box_temp', 'Auxillary Temperature', - 'degC'), + 'degC', + '', + '' + ), box_pressure=Var( float32, 'air_pressure', @@ -60,7 +63,10 @@ database = dict( '', 'paro_cal_sig', '', - ''), + '', + '', + '' + ), box_rh=Var( float32, 'relative_humidity',