Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion examples/rottnest.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,18 @@
"coordinates": "TIME PRES_REL DEPTH LATITUDE LONGITUDE",
"_FillValue": 999999.0,
"valid_min": -2.5,
"valid_max": 40.0
"valid_max": 40.0,
"ancillary_variables": "TEMP_quality_control"
},
"TEMP_quality_control": {
"_dimensions": ["TIME"],
"_datatype": "b",
"standard_name": "sea_water_temperature status_flag",
"long_name": "quality flag for sea_water_temperature",
"quality_control_conventions": "IMOS standard flags",
"flag_meanings": "No_QC_performed Good_data Probably_good_data Bad_data_that_are_potentially_correctable Bad_data Value_changed Not_used Not_used Not_used Missing_value",
"flag_values": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
"_FillValue": 99
}
},
"title": "Sample data from Rottnest Island NRS",
Expand Down
9 changes: 0 additions & 9 deletions examples/rottnest.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,6 @@
if '_data' not in var:
var['_data'] = df[name].values

# convert valid_min/max attributes to match variable type
# TODO: make this a template method
for name, var in template.variables.items():
var_type = var['_datatype']
for attr in ('valid_min', 'valid_max'):
if attr in var:
var[attr] = np.array(var[attr], dtype=var_type)


# update range attributes
template.add_extent_attributes()

Expand Down