richard-thomas / MetOffice_NIMROD

Python module to extract data from UK Met Office Rain Radar NIMROD image files
Artistic License 2.0
10 stars 4 forks source link

What are the units of the outputs? #2

Closed Ahmed-Mohamed2021 closed 1 year ago

Ahmed-Mohamed2021 commented 1 year ago

Hi Richard,

The CEDA website mentioned that the data are in mm/h32. After applying your module, I wonder if the data will be in mm/h or mm/h32.

Thanks

richard-thomas commented 1 year ago

The data read from the file is in (short) integer format, which as you surmised needs to be divided by 32 to give mm/hour. You can look at the example code in my MSc assignment (which used an earlier version of nimrod.py):

Hydrological modelling with real rainfall and flow data

The specific code fragment from within that:


 # Get mean rainfall that falls within catchment for this timeslot
 # Also correct for fact that NIMROD data is mm/hr * 32
 rpResult = arcpy.GetRasterProperties_management(catchResampRainRas,
 "MEAN","#")
 meanRainfallRate = float(rpResult.getOutput(0)) / 32.0```
richard-thomas commented 1 year ago

Closing issue as no follow-up on answer given to question and no issue with the code