Skip to content

add weather data - first pass#12

Merged
mwiering merged 2 commits intomasterfrom
feature/MIRIAD-add-weather-data
Nov 10, 2025
Merged

add weather data - first pass#12
mwiering merged 2 commits intomasterfrom
feature/MIRIAD-add-weather-data

Conversation

@mwiering
Copy link
Collaborator

@mwiering mwiering commented Nov 6, 2025

Added temperature, pressure, wind speed, direction and humidity calculated from dew point.

@mwiering mwiering requested a review from VoronkovMA November 6, 2025 06:20
VoronkovMA
VoronkovMA previously approved these changes Nov 10, 2025
Copy link
Collaborator

@VoronkovMA VoronkovMA left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am happy with the changes. All looks good to me.

do i = 1, nwth
dewc(i) = max(-50.0,dewc(i))
relhum(i) = 100 * exp(b*dewc(i)/(c+dewc(i)))/
* exp(b*tempc(i)/(c+tempc(i)))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there a good reason to divide two exponents instead of subtracting the arguments?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right, that's just how the formula was written

call uvputvrr(tno,'wind',wind(wthid),1)
call uvputvrr(tno,'winddir',winddir(wthid),1)
c call uvputvrr(tno,'precipmm',rainmm(wthid),1)
c call uvputvrr(tno,'smonrms',real(wvr(wthid)),1)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know it is commented out, but we shouldn't use WVR for seeing monitor data. There is no good way to capture seeing monitor data in our ASDMs at the moment (and it won't get to fits anyway), but this is beyond the scope of this ticket.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed

@mwiering mwiering merged commit 4fa306d into master Nov 10, 2025
8 checks passed
@mwiering mwiering deleted the feature/MIRIAD-add-weather-data branch November 10, 2025 02:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants