-
Notifications
You must be signed in to change notification settings - Fork 0
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
METRIC Processing Status #5
Comments
2016.07.21 Current Processing Status [DRAFT] (1) Information on Model 1 Outputs The METRIC model is run up through the end of Model 1 in Earth Engine. Quinn downloads those outputs to Kaweah in images/FromEarthEngine as zip files. The zip files need to be moved into their respective date folders inside the "products" folder. Quinn has named them all appropriately so that they are automatically read by Model 2 in Erdas. The only exception to this is the landcover raster. The landcover raster needs to be renamed and moved to the "images" folder. The renaming adds an underscore between the mmdd and yyyy and deletes the L8 name. You can see the example of the correct naming currently in the images folders. (2) Running METRIC Besides the inputs covered in (1) above, METRIC needs the spreadsheet, a DEM, and an AOI. The DEM and AOI have already been created and are in the images folder, where they are supposed to be. I have redesigned the spreadsheet so that it is very easy to add new data to it. All the data that needs to be added should be added to the first two purple sheets. They are automatically linked to the rest of the spreadsheet. Once those parts of the spreadsheet are filled in, you will go to the "VB Populate" tab, check "cf02" and "cf03", and press the populate button. Once you have done that, you will open Erdas Model Maker, as you have been doing to look at model equations, and first open and run cf02 and then cf03. The spreadsheet writes the new models to their respective image dates in the "model" folder, so that is the version you need to open. There is one quirk in Erdas. You shouldn't have to do this, but you do. Before you run the model, go to Model -> Set Window. Change Set Window to "Specify". Check the box next to "Use file for map extent". Under File Name choose the NDVI raster in the "products" folder and click Okay. The model is supposed to only run over the AOI, but for some reason sometimes Erdas runs over a much larger area than the AOI and it messes everything up. So we have to use this backup method as a secondary constraint on the processing area. That's it for running METRIC. The lightening bolt is the run button. The only other things that need to be done are in the spreadsheet in (3) below. |
2016.07.21 Spreadsheet Status [DRAFT] (3) Finalizing the Spreadsheet All the changes in the spreadsheet are made to the first two tabs, the "Climate" and "Data Entry" tabs. You only paste data or make changes into the orange cells. When you paste data, please paste as "values only" or "keep original/destination formatting" to preserve the formatting of the spreadsheet. The current status of the spreadsheet is as follows: (a) The spreadsheet is not complete. Therefore, the most up-to-date version is only in the P44_R33_34_2014_base folder. After we get most of the data in, you will need to copy the spreadsheet to the individual image date folders into the correct subfolder. (b) The data on the "Climate" tab has not been updated, what is shown there is for a previous project. The data on this tab is a combination of data from CIMIS, data Quinn downloads from Spatial CIMIS, and data that I calculate in R. The details on the Climate tab are covered in more detail in (4) below. (c) On the "Data Entry" tab, there are certain cells you will change for each image date to update the correct date and the hot and cold pixel information. The details on the hot and cold pixels are covered in detail in (5) below. The cells that you will change are E1, E4, and B10. You will also fill in B28:H29 with the hot and cold pixel information. All the other information, except for the section titled "Soil Water Balance Info" is up to date and correct and you do not need to make changes to it for different dates. (d) "Soil Water Balance Info" is covered in (4) below. (4) Climate Tab (and Soil Water Balance Info) Although we are running METRIC for the water year, which is October - September, the METRIC spreadsheet is designed for a calendar year. It is not easy to break links inside the spreadsheet because of all their links and macros. Therefore, I have decided that it is easier to run the calendar year of 2014 and the calendar year of 2015 separately for weather data and ET. You will paste the data for the correct year into the correct spreadsheet. (a) Climate Tab - Daily Data (b) Climate Tab - Hourly Data (c) Data Entry Tab - Precipitation (column K) (d) Hourly and Daily ETr. You will run the code and it will give you an output file for hourly and daily ETr. That is the data you will paste into Climate Tab column F (hourly) and Data Entry Tab column M (daily). The code actually outputs a file with all the things you need for METRIC, so you can paste the things for (a) - (c) above from here too. It's the same numbers. The reason why we paste into column M and not column L is because if there is an ETr = 0 it messes up the whole METRIC spreadsheet. So I modified the data to make ETr = 0 into ETr = 0.01. (5) Hot and Cold pixel selection. Earth Engine will give you all the values you need to enter into the B28:H29 cells. Ignore the greyed out hot/cold pixel info below that, that's just more rows if you want to record multiple candidates before you decide. You will need to convert the lat/long from EE into X and Y using this website: Once you have filled in everything above, you are ready to populate the model as discussed in (2) above. I will keep adding new comments as these steps get filled in over the next week, to let you know what is ready and what still needs to be done. |
Thanks. Let's try to discuss this further tomorrow. A From: NadyaAlexander [email protected] 2016.07.21 Spreadsheet Status [DRAFT] (3) Finalizing the Spreadsheet The current status of the spreadsheet is as follows: (a) The spreadsheet is not complete. Therefore, the most up-to-date version is only in the P44_R33_34_2014_base folder. After we get most of the data in, you will need to copy the spreadsheet to the individual image date folders into the correct subfolder. (b) The data on the climate tab has not been updated, what is shown there is for a previous project. The data on this tab is a combination of data from CIMIS, data Quinn downloads from Spatial CIMIS, and data that I calculate in R. The details on the climate tab is covered in more detail in (4) below. (c) You are receiving this because you were assigned. |
@qjhart @jamorande I have run most of the 2015 WY. I haven't looked at all the rasters yet. We need to pull out some statistics for crops like alfalfa to see if the numbers seem reasonable. I'm not sure about open water and riparian. We can work more to refine this in phase II. There seems to be some big changes in ET around these areas, Quinn will have to decide how we should include it. In terms of the instructions above: The dates that are not finished are:
Everything else has been run. If Andrés needs to do some tweaking, maybe put in new ET numbers or something, make sure to only tweak those first two purple sheets in the spreadsheet. All the other sheets are linked together and super sensitive. If you want to run the R code again, re-download it, I made a couple small changes. Quinn - I didn't finish pulling apart the PM ET equation you sent me. It looks right, but it's doing more things in one step and I haven't followed all the pieces all the way through yet to make sure they're exactly the same. My R code follows the 2005 ASCE paper exactly, some of the equations are noted with equation numbers but I didn't put them all in there yet. So maybe Andrés or someone else can look at that. |
Hi @qjhart and @jamorande,
I am expecting to work until August 13th, but there is a possibility that I could go in for a C-section any day between now and then.
In order to facilitate our workflow with the current METRIC project, I am going to create a status diary here that I will update whenever new work is done. The purpose of the diary will be to give an update of where I am with all image processing, where the inputs and results are, what data is final, and what data is incomplete. These information might not be obvious looking through the folders in Kaweah, so I want to create a record here.
If I do have to take leave unexpectedly before we finish processing the water year for the SSJ-BD project Andres you will be responsible for running METRIC. I will write you a procedure today and tomorrow and it will be very straightforward - between Quinn's work with Model 1 and my modifications to the spreadsheet, the directions will be very easy to follow. Quinn will be able to assist you with the hot and cold pixel selector and other pieces of code that he has built.
The text was updated successfully, but these errors were encountered: