<s> """<STR_LIT>""" <EOL> import numpy as np <EOL> from numpy . ma . core import MaskedArray <EOL> import pyart <EOL> def test_nexrad_level3_msg19 ( ) : <EOL> radar = pyart . io . read_nexrad_level3 ( pyart . testing . NEXRAD_LEVEL3_MSG19 ) <EOL> assert radar . time [ '<STR_LIT>' ] == '<STR_LIT>' <EOL> assert radar . time [ '<STR_LIT:data>' ] . shape == ( <NUM_LIT> , ) <EOL> assert round ( radar . time [ '<STR_LIT:data>' ] [ <NUM_LIT:0> ] ) == <NUM_LIT:0.> <EOL> assert radar . range [ '<STR_LIT:data>' ] . shape == ( <NUM_LIT> , ) <EOL> assert round ( radar . range [ '<STR_LIT:data>' ] [ <NUM_LIT:100> ] ) == <NUM_LIT> <EOL> assert radar . scan_type == '<STR_LIT>' <EOL> assert radar . latitude [ '<STR_LIT:data>' ] . shape == ( <NUM_LIT:1> , ) <EOL> assert round ( radar . latitude [ '<STR_LIT:data>' ] [ <NUM_LIT:0> ] ) == <NUM_LIT> <EOL> assert radar . longitude [ '<STR_LIT:data>' ] . shape == ( <NUM_LIT:1> , ) <EOL> assert round ( radar . longitude [ '<STR_LIT:data>' ] [ <NUM_LIT:0> ] ) == - <NUM_LIT> <EOL> assert radar . altitude [ '<STR_LIT:data>' ] . shape == ( <NUM_LIT:1> , ) <EOL> assert round ( radar . altitude [ '<STR_LIT:data>' ] [ <NUM_LIT:0> ] ) == <NUM_LIT> <EOL> assert radar . altitude_agl is None <EOL> assert radar . sweep_number [ '<STR_LIT:data>' ] . shape == ( <NUM_LIT:1> , ) <EOL> assert radar . sweep_number [ '<STR_LIT:data>' ] [ <NUM_LIT:0> ] == <NUM_LIT:0> <EOL> assert radar . sweep_mode [ '<STR_LIT:data>' ] . shape == ( <NUM_LIT:1> , ) <EOL> assert radar . sweep_mode [ '<STR_LIT:data>' ] . dtype . char == '<STR_LIT:S>' <EOL> assert np . all ( radar . sweep_mode [ '<STR_LIT:data>' ] == [ b'<STR_LIT>' ] ) <EOL> assert radar . fixed_angle [ '<STR_LIT:data>' ] . shape == ( <NUM_LIT:1> , ) <EOL> assert round ( radar . fixed_angle [ '<STR_LIT:data>' ] [ <NUM_LIT:0> ] , <NUM_LIT:2> ) == <NUM_LIT> <EOL> assert radar . sweep_start_ray_index [ '<STR_LIT:data>' ] . shape == ( <NUM_LIT:1> , ) <EOL> assert round ( radar . sweep_start_ray_index [ '<STR_LIT:data>' ] [ <NUM_LIT:0> ] ) == <NUM_LIT:0.0> <EOL> assert radar . sweep_end_ray_index [ '<STR_LIT:data>' ] . shape == ( <NUM_LIT:1> , ) <EOL> assert round ( radar . sweep_end_ray_index [ '<STR_LIT:data>' ] [ <NUM_LIT:0> ] ) == <NUM_LIT> <EOL> assert radar . target_scan_rate is None <EOL> assert round ( radar . azimuth [ '<STR_LIT:data>' ] [ <NUM_LIT:0> ] ) == <NUM_LIT> <EOL> assert round ( radar . azimuth [ '<STR_LIT:data>' ] [ <NUM_LIT:10> ] ) == <NUM_LIT> <EOL> assert radar . elevation [ '<STR_LIT:data>' ] . shape == ( <NUM_LIT> , ) <EOL> assert round ( radar . elevation [ '<STR_LIT:data>' ] [ <NUM_LIT:0> ] , <NUM_LIT:2> ) == <NUM_LIT> <EOL> assert radar . scan_rate is None <EOL> assert radar . antenna_transition is None <EOL> assert radar . instrument_parameters is None <EOL> assert radar . radar_calibration is None <EOL> assert radar . ngates == <NUM_LIT> <EOL> assert radar . nrays == <NUM_LIT> <EOL> assert radar . nsweeps == <NUM_LIT:1> <EOL> assert '<STR_LIT>' in radar . fields . keys ( ) <EOL> assert radar . fields [ '<STR_LIT>' ] [ '<STR_LIT:data>' ] . shape == ( <NUM_LIT> , <NUM_LIT> ) <EOL> assert type ( radar . fields [ '<STR_LIT>' ] [ '<STR_LIT:data>' ] ) is MaskedArray <EOL> assert round ( radar . fields [ '<STR_LIT>' ] [ '<STR_LIT:data>' ] [ <NUM_LIT:10> , <NUM_LIT:10> ] ) == <NUM_LIT> <EOL> def test_nexrad_level3_msg161 ( ) : <EOL> radar = pyart . io . read_nexrad_level3 ( pyart . testing . NEXRAD_LEVEL3_MSG163 ) <EOL> assert radar . time [ '<STR_LIT>' ] == '<STR_LIT>' <EOL> assert radar . time [ '<STR_LIT:data>' ] . shape == ( <NUM_LIT> , ) <EOL> assert round ( radar . time [ '<STR_LIT:data>' ] [ <NUM_LIT:0> ] ) == <NUM_LIT:0.> <EOL> assert radar . range [ '<STR_LIT:data>' ] . shape == ( <NUM_LIT> , ) <EOL> assert round ( radar . range [ '<STR_LIT:data>' ] [ <NUM_LIT:100> ] ) == <NUM_LIT> <EOL> assert radar . scan_type == '<STR_LIT>' <EOL> assert radar . latitude [ '<STR_LIT:data>' ] . shape == ( <NUM_LIT:1> , ) <EOL> assert round ( radar . latitude [ '<STR_LIT:data>' ] [ <NUM_LIT:0> ] ) == <NUM_LIT> <EOL> assert radar . longitude [ '<STR_LIT:data>' ] . shape == ( <NUM_LIT:1> , ) <EOL> assert round ( radar . longitude [ '<STR_LIT:data>' ] [ <NUM_LIT:0> ] ) == - <NUM_LIT> <EOL> assert radar . altitude [ '<STR_LIT:data>' ] . shape == ( <NUM_LIT:1> , ) <EOL> assert round ( radar . altitude [ '<STR_LIT:data>' ] [ <NUM_LIT:0> ] ) == <NUM_LIT> <EOL> assert radar . altitude_agl is None <EOL> assert radar . sweep_number [ '<STR_LIT:data>' ] . shape == ( <NUM_LIT:1> , ) <EOL> assert radar . sweep_number [ '<STR_LIT:data>' ] [ <NUM_LIT:0> ] == <NUM_LIT:0> <EOL> assert radar . sweep_mode [ '<STR_LIT:data>' ] . shape == ( <NUM_LIT:1> , ) <EOL> assert np . all ( radar . sweep_mode [ '<STR_LIT:data>' ] == [ b'<STR_LIT>' ] ) <EOL> assert radar . fixed_angle [ '<STR_LIT:data>' ] . shape == ( <NUM_LIT:1> , ) <EOL> assert round ( radar . fixed_angle [ '<STR_LIT:data>' ] [ <NUM_LIT:0> ] , <NUM_LIT:2> ) == <NUM_LIT> <EOL> assert radar . sweep_start_ray_index [ '<STR_LIT:data>' ] . shape == ( <NUM_LIT:1> , ) <EOL> assert round ( radar . sweep_start_ray_index [ '<STR_LIT:data>' ] [ <NUM_LIT:0> ] ) == <NUM_LIT:0.0> <EOL> assert radar . sweep_end_ray_index [ '<STR_LIT:data>' ] . shape == ( <NUM_LIT:1> , ) <EOL> assert round ( radar . sweep_end_ray_index [ '<STR_LIT:data>' ] [ <NUM_LIT:0> ] ) == <NUM_LIT> <EOL> assert radar . target_scan_rate is None <EOL> assert round ( radar . azimuth [ '<STR_LIT:data>' ] [ <NUM_LIT:0> ] ) == <NUM_LIT> <EOL> assert round ( radar . azimuth [ '<STR_LIT:data>' ] [ <NUM_LIT:10> ] ) == <NUM_LIT> <EOL> assert radar . elevation [ '<STR_LIT:data>' ] . shape == ( <NUM_LIT> , ) <EOL> assert round ( radar . elevation [ '<STR_LIT:data>' ] [ <NUM_LIT:0> ] , <NUM_LIT:2> ) == <NUM_LIT> <EOL> assert radar . scan_rate is None <EOL> assert radar . antenna_transition is None <EOL> assert radar . instrument_parameters is None <EOL> assert radar . radar_calibration is None <EOL> assert radar . ngates == <NUM_LIT> <EOL> assert radar . nrays == <NUM_LIT> <EOL> assert radar . nsweeps == <NUM_LIT:1> <EOL> field_name = '<STR_LIT>' <EOL> assert field_name in radar . fields . keys ( ) <EOL> assert radar . fields [ field_name ] [ '<STR_LIT:data>' ] . shape == ( <NUM_LIT> , <NUM_LIT> ) <EOL> assert type ( radar . fields [ field_name ] [ '<STR_LIT:data>' ] ) is MaskedArray <EOL> assert round ( radar . fields [ field_name ] [ '<STR_LIT:data>' ] [ <NUM_LIT> , <NUM_LIT> ] ) == <NUM_LIT> <EOL> def test_nexrad_level3_msg161_fileobj ( ) : <EOL> fh = open ( pyart . testing . NEXRAD_LEVEL3_MSG163 , '<STR_LIT:rb>' ) <EOL> radar = pyart . io . read_nexrad_level3 ( fh ) <EOL> fh . close ( ) <EOL> field_name = '<STR_LIT>' <EOL> assert field_name in radar . fields . keys ( ) <EOL> assert radar . fields [ field_name ] [ '<STR_LIT:data>' ] . shape == ( <NUM_LIT> , <NUM_LIT> ) <EOL> assert type ( radar . fields [ field_name ] [ '<STR_LIT:data>' ] ) is MaskedArray <EOL> assert round ( radar . fields [ field_name ] [ '<STR_LIT:data>' ] [ <NUM_LIT> , <NUM_LIT> ] ) == <NUM_LIT> </s>
