-
Notifications
You must be signed in to change notification settings - Fork 4
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
fails for Landsat 8 SR Collection 2 #6
Comments
@Timbo-Stillinger Oops, I found that problem too, but I didn't push the changes to GitHub. I just pushed them so see the updated code for getOLIsr where it gets the null values from the QA flags. It could still be the issue, although I think I re-ran all the R & R0s images using the updated getOLIsr. @DozierJeff Agree about moving away from the mstructs |
@edwardbair i'll pull down the latest SPIReS code with all your changes and debug with that. Either this weekend or early next week. @DozierJeff yes - we should revamp. At a certain point, we can also stop worrying about compatibility with older versions. |
Being a relatively recent Matlab user, I have used mstructs based on old code that Karl provided me. I know you guys are all experts. Can you give me a few pointers on what to do when I upgrade to R2020b? (I'm still using 2019). In particular, @DozierJeff: you refer to the "updated raster reference object"--can you let me know what that's called (a pointer to page with specific information is fine, too, if there is such a thing for the new R2020b)? And I'm pretty sure that I've been using geotiffread so I can also upgrade to readgeoraster. Any other recommendations? Summer is a good time for me to do maintenance like this. |
Hi Mary Jo. As long as you're upgrading, you might as well go to R2021a. MATLAB upgrades twice a year, March and September.
Now to your questions: In R2020b, MATLAB introduced "CRS" --- coordinate reference system --- and they include this field in the raster reference objects. A map raster reference includes now a ProjectedCRS field, which includes a GeographicCRS field. Similarly, a geographic raster reference includes a GeographicCRS field directly. See the MATLAB documentation for the functions projcrs and geocrs to see the various options to create them. Some options come from espg.org, which you're probably familiar with, but check otherwise.
Also note that the use of raster reference objects is encouraged, instead of referencing matrices. The documentation for makerefmat now comments, "makerefmat will be removed in a future release. Create a raster reference object using the georefcells, georefpostings, georasterref, maprefcells, maprefpostings, or maprasterref function instead."
Attached are a set of my functions to create projcrs for a variety of projections we use. Attached in a separate email is my RasterReprojection toolbox, which handles projections differently depending on whether your Mapping Toolbox is version 5.0 or later. You install toolboxes in MATLAB by putting the .mltbx file somewhere (you don't need to save it afterward) and double-clicking on it. But before you do that, go to Preferences in MATLAB and click Add-Ons to tell your system where you want toolboxes installed. The RasterReprojection.mltbx is 13 MB because of the Examples.
Jeff
From: Mary Jo Brodzik ***@***.***>
Sent: Monday, June 28, 2021 07:50
To: edwardbair/SPIRES ***@***.***>
Cc: Jeff Dozier ***@***.***>; Mention ***@***.***>
Subject: Re: [edwardbair/SPIRES] fails for Landsat 8 SR Collection 2 (#6)
Being a relatively recent Matlab user, I have used mstructs based on old code that Karl provided me. I know you guys are all experts. Can you give me a few pointers on what to do when I upgrade to R2020b? (I'm still using 2019). In particular, @DozierJeff<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FDozierJeff&data=04%7C01%7C%7Cde24528aa8e0488e347308d93a440904%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637604886152236051%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=%2FtCp9350TdkVgwoqgdD3WwpLADif8PEbwZqgB74%2BKRk%3D&reserved=0>: you refer to the "updated raster reference object"--can you let me know what that's called (a pointer to page with specific information is fine, too, if there is such a thing for the new R2020b)? And I'm pretty sure that I've been using geotiffread so I can also upgrade to readgeoraster. Any other recommendations? Summer is a good time for me to do maintenance like this.
-
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fedwardbair%2FSPIRES%2Fissues%2F6%23issuecomment-869750308&data=04%7C01%7C%7Cde24528aa8e0488e347308d93a440904%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637604886152236051%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=GNe%2FO38jsLsBSQA9h3tOhbRrIdNJ%2BXNlKBiUQK6KFCs%3D&reserved=0>, or unsubscribe<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAB7OA6BFBY5HWULTSPS2N5TTVCD2FANCNFSM47KZZ5JA&data=04%7C01%7C%7Cde24528aa8e0488e347308d93a440904%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637604886152246007%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=srqZihp9AIWD7qLnG64Ih4iuplE%2BoUyjAeDNtVvE%2FeI%3D&reserved=0>.
|
SPIRES/getOLIsr.m
Line 32 in aa07fa9
See my email on our CC offset stuff for snowpex. I think this is causing the issue....
The text was updated successfully, but these errors were encountered: