-
Notifications
You must be signed in to change notification settings - Fork 45
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
Can we get rid of metadata JSON? #5
Comments
Fundamentally the information is already in the image, as the r and g values represent the u and v values just scaled to uint8, which actually raises interesting question from my point of view of how the vector direction is dealt with? |
Well that's why we need the metadata file with the range, because that way we can recover the absolute value (see https://github.com/astrosat/windgl/blob/master/data/prepare.js#L23-L24). However, I wonder if we can just use an absolute range and potentially use two uint8 to increase the resolution. For example wikipedia says that the highest recorded wind speed was 408km/h. So if our absolute range went from -500 to 500, it should be pretty safe. 16 bits should give us 0.015km/h increments which seems precise enough for me. Of course we can adjust these values or even do something crazy like use a nonlinear scale. That's assuming the units are in km/h, which they probably are not... |
Comment from Slack by myself:
Briefly discussed with @marksmall this morning, due to the limitation in time and the unknowns in how to do an alternative, we will stick with the JSON approach for now. |
Currently, this needs a little json file that looks like this:
I wonder if we use not just the
r
andg
channels in the image, but use some of the other channels if we can get the velocity encoded into the image without these values, in which case we could dispense with the need for this file.@cleanasmud any ideas?
The text was updated successfully, but these errors were encountered: