You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would you consider making parameters public, please?
(All the other modules in templates/product/mod.rs are public. And all the modules in templates/product/parameters/mod.rs are public, too)
Why?!
I should explain my use-case, just in case I'm barking up the wrong tree!
hypergrib is all about lazily loading GRIB files from cloud object storage for huge multi-GRIB datasets.
Given a key (consisting of the NWP variable name, reference time, forecast step, vertical level, and ensemble member) hypergrib needs to lookup the location of the relevant GRIB message (i.e. the path of the GRIB file, the byte offset, and message length).
The plan is for hypergrib to maintain a HashMap<Key, MessageLocation>.
The Keycould be a String generated by Message:key (which, if I've understood correctly, outputs strings like "TEMP20170101095050:phyfcst") (I'd need to append the ensemble member).
use gribberish::templates::product::parameters::meteorological;enumProduct{TemperatureProduct(meteorological::TemperatureProduct),MoistureProduct(meteorological::MoistureProduct),MomentumProduct(meteorological::MomentumProduct),CloudProduct(meteorological::CloudProduct),// etc.}
But this won't compile because parameters is private!
(Please let me know if you think this is a bad way to structure things!)
The text was updated successfully, but these errors were encountered:
mod parameters
is currently declared private intemplates/product/mod.rs
.Would you consider making
parameters
public, please?(All the other modules in
templates/product/mod.rs
are public. And all the modules intemplates/product/parameters/mod.rs
are public, too)Why?!
I should explain my use-case, just in case I'm barking up the wrong tree!
hypergrib
is all about lazily loading GRIB files from cloud object storage for huge multi-GRIB datasets.Given a key (consisting of the NWP variable name, reference time, forecast step, vertical level, and ensemble member)
hypergrib
needs to lookup the location of the relevant GRIB message (i.e. the path of the GRIB file, the byte offset, and message length).The plan is for
hypergrib
to maintain aHashMap<Key, MessageLocation>
.The
Key
could be aString
generated byMessage:key
(which, if I've understood correctly, outputs strings like"TEMP20170101095050:phyfcst"
) (I'd need to append the ensemble member).But I'd prefer
Key
to be astruct
like this:where
Product
would be anenum
like this:But this won't compile because
parameters
is private!(Please let me know if you think this is a bad way to structure things!)
The text was updated successfully, but these errors were encountered: