Giter Club home page Giter Club logo

Comments (2)

FHanbali avatar FHanbali commented on July 18, 2024

Hi Daniel, yes, we encountered this on Cumulus. Your impressions are the same as ours. GageCorr transition to latest MRMS products, with Pass2 incorporating more corrections than Pass1, but Pass2 lags Pass1 by a few hours in near realtime availability

from data-retrieval-scripts.

danhamill avatar danhamill commented on July 18, 2024

@FHanbali Thanks for your input.

As of now, I have split the MRMS QPE download scripts into two scripts:

  • pre MRMS v12.0

start = datetime(2018, 12, 1, 0, 0)
end = datetime(2019,1, 1, 0, 0)
hour = timedelta(hours=1)
destination = r"C:\workspace\ririe\HMS\data\precip"
assert start < datetime(2020,10,15), "GageCorr MRMS data before 2020-10-15 does not exist, consider looking for MultiSensor qpe grids"
assert end < datetime(2020,10,15), "GageCorr MRMS data before 2020-10-15 does not exist, consider looking for MultiSensor qpe grids"
#loop through and see if you already have the file locally
date = start
urls = []
opath = []
while date < end:
url = "http://mtarchive.geol.iastate.edu/{:04d}/{:02d}/{:02d}/mrms/ncep/GaugeCorr_QPE_01H/GaugeCorr_QPE_01H_00.00_{:04d}{:02d}{:02d}-{:02d}0000.grib2.gz".format(
date.year, date.month, date.day, date.year, date.month, date.day, date.hour)
filename = url.split("/")[-1]
if not os.path.isfile(destination + os.sep + filename):
urls.append(url)
opath.append(destination + os.sep + filename)
date += hour

  • post MRMS v12.0

start = datetime(2021, 10, 1, 0, 0)
end = datetime(2021, 10, 2, 0, 0)
destination = r"C:\workspace\ririe\HMS\data\precip"
assert start >= datetime(2020,10,15), "MultiSensor MRMS data before 2020-10-15 does not exist, consider looking for GageCorr qpe grids"
assert end >= datetime(2020,10,15), "MultiSensor MRMS data before 2020-10-15 does not exist, consider looking for GageCorr qpe grids"
"""
https://inside.nssl.noaa.gov/mrms/past-code-updates/
In the MRMS v12.0 update to NCO section, the third bullet from the bottom:
- Multi-sensor QPE scheme using gauges and model QPFs to fill radar coverage gaps
I think that suggests the MultiSensor_QPE is gage corrected. So the data might have just changed names in the MRMS migration to 12.0.
"""
hour = timedelta(hours=1)
os.makedirs(destination, exist_ok=True)
#loop through and see if you already have the file locally
date = start
urls = []
opath = []
while date < end:
url = 'https://mtarchive.geol.iastate.edu/{:04d}/{:02d}/{:02d}/mrms/ncep/MultiSensor_QPE_01H_Pass2/MultiSensor_QPE_01H_Pass2_00.00_{:04d}{:02d}{:02d}-{:02d}0000.grib2.gz'.format(
date.year, date.month, date.day, date.year, date.month, date.day, date.hour)
filename = url.split("/")[-1]
if not os.path.isfile(destination + os.sep + filename):
urls.append(url)
opath.append(destination + os.sep + filename)
date += hour

These could easily be combined with some additional conditional logic when building the download urls.

from data-retrieval-scripts.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.