-
Notifications
You must be signed in to change notification settings - Fork 31
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
Handle some special cases for wrf-python #218
Conversation
for wind speed/direction variables rotated to earth coords
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 1 out of 1 changed files in this pull request and generated no suggestions.
@zmoon I am getting this issue as i tried it:
File "/scratch2/BMC/rcm1/qrasool/MMdir_developSept2024/monetio/monetio/models/_wrfchem_mm.py", line 139, in open_mfdataset |
For YAML obs key added these: obs:
pasadena_ground: # obs label
filename: '/scratch2/BMC/rcm1/qrasool/wrfout_postprocessing/LA_Ground_merge_NEW21Sept2023Update.csv' #'/wrk/users/charkins/MM_data/pasadena_ground_ict/20210725/recap-CIT-AMS1-NR-PM1_CITLL_20210725_RB.ict'
obs_type: ground
time_var: 'MasterTimewave_Start_UTC'
ground_coordinate: {'latitude':34.136363,'longitude':-118.126817}
#resample: '600S' #10 min so works on Hera as a test. Can comment this if submitting a job.
variables: #Opt
'uvmet10_wspd':
unit_scale: 1 #Opt Scaling factor
unit_scale_method: '*' #'/' #'*' #Opt Multiply = '*' , Add = '+', subtract = '-', divide = '/'
ylabel_plot: 'Wind speed (m s^-1)'
'uvmet10_wdir':
unit_scale: 1 #Opt Scaling factor
unit_scale_method: '*' #'/' #'*' #Opt Multiply = '*' , Add = '+', subtract = '-', divide = '/'
ylabel_plot: 'Wind dir (degrees)' |
@zmoon YAML path on Hera: /scratch2/BMC/rcm1/qrasool/wrfout_postprocessing/control_wrfchem_groundsunvex_QZR_mmdevelopaircraft_Copy_Rocky8_SSMATOMo3_LowvsHighNox_RefinedPlotting.yaml |
@zmoon still the same issue: m.open_model_files(time_interval=time_interval, control_dict=self.control_dict) |
@zmoon I don't have permission to push my commit, but i made following updates to the wrf-chem reader py file and it is working now (for rh (%), wspd: uvmet_wspd or uvmet10_wspd (m/s), wdir: uvmet_wdir or uvmet10_wdir (degrees)), can you review this (@rschwant for reference):
|
@zmoon can you also add 'rh' as well (i added it for my case). I think, we should have these MET variables: T, P, RH, WSPD, WDIR for sure from getvar utility |
@quaz115 I'm pretty sure 'tk' (already in the aircraft list) is the same is 'temp' with default units. Would you say aircraft always needs RH? If not, would it work to just add it to the var list in your YAML section? |
@zmoon Sorry for the confusion, i meant in general (about these variables that should be there for MET obs vs model comparisons, for future as well, and PBLH additionally). Also Thanks for the simplified code fixes. Just re-ran with this branch and it works well. Please go ahead with the Merge |
MM standard variable for model temperature
Temperature update fixes the problem I was seeing! |
Looks good to me! |
The "uvmet" variables and a few other tweaks
@quaz115 let me know if it doesn't work for you