-
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
Reversibility of Spatial Resample and Temporal Disaggregate Steps #79
Comments
First Method, this one does the prism raster disaggregated to hourly and then resampled to our daymet resolutionThis takes around 30 seconds all together, the ability to use our daily daymet data as well, means that we don't have the full amount stored, it's just the single daily raster.We've done this step before, it just multiplies our prism daily raster by nldas2 to get rain for every hourcreate temp table tmp_prism_fraction_raster as ###This resamples our prism raster using our daymet daily raster as its reference, this seems to be quite a bit slower than when we have this step first, which makes sense as we have to do 24 times as much work. |
This method seems to be much faster, around 10-15 seconds for all the work compared to 30 This resamples our prism raster using our daily daymet raster as its reference, this runs extremely fast, finishing in just a few seconds. It creates one raster at the end, which we then disaggregate into hourly in the next step.create temp table tmp_prism_resample as create temp table tmp_prism_fraction_raster as |
@mwdunlap2004 that sounds good, let me understand, am I correct that:
|
@rburghol I think most of your statements are accurate, and I did have a typo in my second comment, in both examples we are using daymet as our reference raster. I will say, even though both are examples of prism, I do think this would apply to daymet, namely, it seems like it would be faster (if if was beneficial) to resample daymet and then do our multiplication to hourly as opposed to the other way around.
|
@rburghol These are the statistics for the four tables made in this process, the what I'm learning from this is that we cannot seem to sum the values and get what the original amount is (in this case I'm using our prism_daily_feb12, and the resampled prism daily as the base) When I sum the columns for the other tables we don't get the same value. My thought is the question we had before about what to do if an nldas2 column is 0 and we multiply it by PRISM with data. I think this is what is happening, some parts of nldas2 don't have rain maybe for an hour, or the whole day but PRISM does, which means we are losing data. After we've resampled daily prism to daymet's resolutionThese numbers are the same as our original prism_feb12_daily raster, which is a good sign. |
This is an attempt at running these steps on a single watershed, for the purposes of showing our progress and creating a couple of rasters, The set up steps are located in #71 We've done this step before, it just multiplies our prism daily raster by nldas2 to get rain for every hour
###This resamples our prism raster using our daymet daily raster as its reference, this seems to be quite a bit slower than when we have this step first, which makes sense as we have to do 24 times as much work.
|
It appears that an efficient way of storing this data, will be to pre-compute the hourly fraction raster and store it in the database.
Dissag PRISM to hourly -> Resample Disagg PRISM to 1km x 1km" to "Resample PRISM to 1km x 1km -> Dissag Resampled PRISM to Hourly
The text was updated successfully, but these errors were encountered: