-
Notifications
You must be signed in to change notification settings - Fork 34
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
Subsetting causes small errors in geographic extent #427
Comments
Oh each pixel is 0.25 I get it.
Ok the problem may be the |
Maybe try to set it as a StepRange with e.g A = set(A, Y => 60.0:0.25:180) Or whatever the numbers should be. StepRange has a TwicePrecision hack that fixes these fp errors, but also makes it kinda slow. But it should be used everywhere so this doesnt happen. (And sorry the phone app is making a mess of my messages) |
It turns out this is a hard problem... because using a We could possibly catch length errors and switch to a |
I'm having an issue where when I try to subset a global dataset, the output is slightly different than expected.
Right now I'm using an ENVI file of process MODIS data with 12 bands, 1 for each month.
The output of A is:
As you can see, it is a series of 12 1440 x 720px images.
If I try to subset it like so:
I believe mathmatically, as each pixel is 0.25 degrees, the result should be a series of 480 x 360. However, the resulting sizes are 479 x 360:
The
Extent
is also listed at 60.2499999999999 by 180.0, where it should just be 60 by 180.Here is the file and associated header (required to be in the same directory when loaded) I used.
google drive link
The text was updated successfully, but these errors were encountered: