Skip to content
Merged
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
7 changes: 4 additions & 3 deletions examples/bnf_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@
combining radar volumes with ground stations at multiple locations (M1, S4, S20, S30, S40, S13).
"""

import radclss
import glob
import matplotlib.pyplot as plt
import os

import matplotlib.pyplot as plt
from dask.distributed import Client, LocalCluster

import radclss


def main():
date = "20250520"
Expand Down Expand Up @@ -67,7 +68,7 @@ def main():

for vars in my_columns.data_vars:
print(vars, my_columns[vars].dtype)
fig, ax = radclss.vis.create_radclss_columns("radclss_example.nc")
fig, _ax = radclss.vis.create_radclss_columns("radclss_example.nc")
print(fig)
plt.show()

Expand Down
6 changes: 3 additions & 3 deletions src/radclss/config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@
set_output_facility, # noqa
set_output_platform, # noqa
set_output_level, # noqa
) # noqa
)
from .output_config import (
set_output_gate_time_attrs, # noqa
set_output_time_offset_attrs, # noqa
get_output_config, # noqa
) # noqa
)
from .output_config import (
set_output_alt_attrs, # noqa
set_output_lat_attrs, # noqa
set_output_lon_attrs, # noqa
set_output_station_attrs, # noqa
) # noqa
)
from .default_config import DEFAULT_NEXRAD_RADARS # noqa
5 changes: 2 additions & 3 deletions src/radclss/config/default_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
"normalized_coherent_power",
"normalized_coherent_power_v",
],
"radar_xsapr": [
"radar_xsapr": [
"classification_mask",
"censor_mask",
"uncorrected_copol_correlation_coeff",
Expand All @@ -96,7 +96,7 @@
"signal_to_noise_ratio_copolar_v",
"normalized_coherent_power",
"normalized_coherent_power_v",
"radar_echo_classification"
"radar_echo_classification",
],
"met": [
"base_time",
Expand Down Expand Up @@ -244,5 +244,4 @@ def set_discarded_variables(instrument, var_list):
var_list : list
List of variable names to discard.
"""
global DEFAULT_DISCARD_VAR
DEFAULT_DISCARD_VAR[instrument] = var_list
35 changes: 19 additions & 16 deletions src/radclss/config/output_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,29 @@
),
"description": "Time in Seconds that Cooresponds to the Minimum Height Gate",
}
OUTPUT_TIME_OFFSET_ATTRS = dict(
long_name=("Time in Seconds Since Midnight"),
description=(
OUTPUT_TIME_OFFSET_ATTRS = {
"long_name": ("Time in Seconds Since Midnight"),
"description": (
"Time in Seconds Since Midnight that Cooresponds"
+ "to the Center of Each Height Gate"
+ "Above the Target Location "
),
)
OUTPUT_STATION_ATTRS = dict(
long_name="Bankhead National Forest AMF-3 In-Situ Ground Observation Station Identifers"
)
OUTPUT_LAT_ATTRS = dict(
long_name="Latitude of BNF AMF-3 Ground Observation Site", units="Degrees North"
)
OUTPUT_LON_ATTRS = dict(
long_name="Longitude of BNF AMF-3 Ground Observation Site", units="Degrees East"
)
OUTPUT_ALT_ATTRS = dict(
long_name="Altitude above mean sea level for each station", units="m"
)
}
OUTPUT_STATION_ATTRS = {
"long_name": "Bankhead National Forest AMF-3 In-Situ Ground Observation Station Identifers"
}
OUTPUT_LAT_ATTRS = {
"long_name": "Latitude of BNF AMF-3 Ground Observation Site",
"units": "Degrees North",
}
OUTPUT_LON_ATTRS = {
"long_name": "Longitude of BNF AMF-3 Ground Observation Site",
"units": "Degrees East",
}
OUTPUT_ALT_ATTRS = {
"long_name": "Altitude above mean sea level for each station",
"units": "m",
}


def set_output_site(site):
Expand Down
2 changes: 1 addition & 1 deletion src/radclss/core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@

"""

from .radclss_core import radclss # noqa: F401
from .radclss_core import radclss

__all__ = ["radclss"]
Loading
Loading