New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixing bug in IDL DLM RadarYMDHMSGetSite #561
Conversation
…RadarYMDHMSGetSite
@egthomas This works if the radar was active on the requested date (i.e. I get status=1 on this branch, status=0 on But if the input date is outside the range that the radar was operating, |
@ecbland thanks for testing this! Do you mind giving a specific example of the date and radar combinations you tried? I think you are encountering the expected behavior - my understanding is that a |
Sorry @egthomas for the slow response...for some reason I'm not getting email notifications even though I was getting them a few weeks ago. Below is my IDL code for reading the hardware information for Adak East. I get I think this is the correct behaviour; it's just not how I interpreted your original description of this PR:
|
@ecbland thanks for the example - I see what you mean. If you try a radar that has alternated between status flags of I think the original problem I was trying to fix was that the |
@egthomas, I agree that changing the output from a structure to a single number might break some code downstream. |
Thanks @egthomas, now I understand. I indeed get |
This pull request fixes a bug in the IDL DLM implementation of
RadarYMDHMSGetSite
which prevents the correctstatus
value being returned from thehdw
file.Currently, the
status
field returned byRadarYMDHMSGetSite
will always be zero, whereas on this branch the correct value will be returned (ie1
for active or-1
for inactive). As far as I can tell this bug has been present since the newhdw
file format was introduced in RST 4.7. Oops.