Comments (8)
Hi @pavelber, I'm not quite sure what you mean by "when record is constant". Could you please clarify? Also, it would probably speed things up if you could send the GRIB file and explain what you're trying to do. Cheers!
from jgribx.
Small code in Kotlin, using attached file
import mt.edu.um.cf2.jgribx.GribFile
import mt.edu.um.cf2.jgribx.grib1.Grib1Record
object Test1 {
@JvmStatic
fun main(args: Array<String>) {
val file = GribFile("C:\\temp\\C3_2019112600_CLCL.grb")
val record = file.records.filter { r-> (r as Grib1Record).bds.isConstant }.first()
println(record.forecastTime.toInstant())
println(record.getValue(31.93, 34.7))
}
}
from jgribx.
Hi @pavelber,
Just to let you know that I've managed to reproduce the issue. Will keep you posted. Thanks for finding these issues!
from jgribx.
Thank you!
from jgribx.
Found an issue in how the BDS is handled. Made a fix in e2f86fd
The exception should be gone now, but I see that all values for your sample code is zero, since all records have a constant-valued BDS. Is this what you were expecting?
from jgribx.
Yes, exactly, believe or not but now we have hot weather w/o clouds :)
Will try the fix now.
from jgribx.
Just checked the coords ... Gan Raveh Regional Council, Israel? Looks like a great place to be... :)
from jgribx.
Looks good, thank you!
Fixed!
It is good place now, but terrible place in summer :)
from jgribx.
Related Issues (15)
- Does not read all records HOT 7
- Support NOMADS, NOAA, NWS Grid Template Lambert Conformal (Can be Secant, Tangent, Conical, or Bipolar) HOT 5
- Support other data representation templates HOT 2
- Update the JAR HOT 3
- Build's tests failed and code does not work, both due to NoValidGribException on valid GRIB2 files HOT 16
- How to use this library in my Android App HOT 7
- Cant Read this type grib1 files HOT 5
- NoValidGribException: No valid GRIB records found. HOT 9
- NoValidGribException: No valid GRIB records found for RAP and NAM wind data HOT 4
- getRecord does not work with level without level value HOT 4
- Move directory structure to the gradle standard HOT 4
- Use getForecastTime() instead of getReferenceTime() in getRecord() HOT 1
- Submit the jar to mavenrepository or jcenter HOT 3
- Getting NullPointer while loading GFS grib2 file HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jgribx.