Skip to content

Problem with cross section #2939

Answered by DanielAdriaansen
oki36 asked this question in Q&A
Discussion options

You must be logged in to vote

Based on this #949 (comment):

Try including the specific variable you'd like to make the cross-section for. If you are trying to make a reflectivity cross section, then change this line:
cross = cross_section(data, start, end)
to be:
cross = cross_section(data['REF'], start, end)

And see if that works.

The trouble I think is that variables U and V do not have LAT and LON coordinate variables, and so cross_section fails when passing the whole dataset.

If you want multiple variables, you can do:
cross = cross_section(data[['REF','ZDR','RHOHV','KDP','RR','QUALITY_FLAGS']], start, end)

Just make sure any variable you're passing to cross_section has LAT and LON coordinates.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@oki36
Comment options

@DanielAdriaansen
Comment options

Answer selected by dopplershift
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants