Closed goergen95 closed 2 years ago
Hi @goergen95 can you copy quickly the link to the Ressource so i can edit it directly
Sorry, what resource do you mean?
this is in main correct? So id have to push changes to the introduction
to main?
Yes, no vignettes in other branches yet. If you want you can create a branch for the documentation review and open a PR.
Here is one suggestion that we noted just yesterday when going through the documentation: We were unable to find an overview of all resources and indicators. That should be prominently linked. Maybe it could be even a single page in the vignette or something.
please find an updated version of the userguide (now referred to as "quickstart") online. I would suggest that we include an overview of all supported resources and indicators in the README. That yet has to be properly desgined anyway.. From there we could directly link to the quickstart vignette. What do you think?
Thank you for your work. Great package, great documentation. It is very detailed and a great help for new users. I have committed couple of changes to the branch "edits_manual". They are mostly typo correction and style changes to shorten sentences.
Here are some comments in addition to my commits.
I added some changes in another branch. I will make a pull request at the end of my revision
I removed the sentence. Also I redesigned the readme, giving a very quick overview of what the package actually does. Would be great to receive your feedback on that.
reformulated to: "the results of the indicator calculation will be added to the portfolio object as nested list columns. This approach makes it feasible to support a variety of indicators with differently shaped outputs (e.g. time variant vs. invariant indicators)."
followed your recommendation and removed the text. Also I inserted a new bullet point that says "identify the required resources needed for the indicators you want to calculate". Also the term "standardized interface is no longer used.
add_resources
arguments controls..." is unclear to me. Could you rewrite? After reading this, I do not understand what it does and what the implications are._reformulated to: "In case your share a common outdir
across different portfolios, with the add_resources
arguments controls the behavior of the portfolio initialization. If set to TRUE
, the function will automatically search for all available resources and add these as attributes to the portfolio, without further checking if these resources actually match its spatio-temporal extent. Only use this if you are sure that for your current portfolio, all resources have been previously downloaded. If set to FALSE
, no pre-existing resources will be added to the portfolio. Once you request a specific portfolio for your resources, only those files will be downloaded that are missing in outdir
. This behavior is beneficial if you share the outdir
between different projects to ensure that only matching resources are returned."_
reformulated to: "Finally, the verbose
logical controls whether or not the package
will print informative messages during the calculations."
added an example with two resources and an additional argument:
sample_portfolio <- get_resources(x = sample_portfolio,
resources = c("chirps", "treecover2000"),
vers_treecover = "GFC-2020-v1.8")
The default value for SPI was set to NULL
, meaning if users request the chirpsprec
indicator without specyfing anything not SPI calculation would be done. Printing this default NULL value lead to the empty string output you mentioned above. I changed the default value to 3, per your suggestion, and also now explicitly specify all user-required arguments.
sample_portfolio <- calc_indicators(sample_portfolio,
indicators = "chirpsprec",
scales_spi = 3,
spi_prev_years = 8,
engine = "extract"
)
actually, in the example as it was, SPI was not calculated (see comment above) but we only calculated absolute precipiation and precipitation anomaly. Following your suggestion, now the SPI is also explicitly calculated. I hope that makes the example less ambiguous.
see comment above. The second graph was actually the anomaly, not SPI, which does not have a time-scale in that sense (actually it does because anomaly is calculated with reference to the 1981-2010 climate normal period). With the new example a third plot is added for SPI and its time scale is made explicit.
reformulated to: "However, users should note that
the portfolio-wide arguments that were set during the portfolio initialization
are not reconstructed (e.g. the temporal extent, outdir
and tmpdir
, etc.)."
_That indicator was unlcear to me too. I added the following to the description of the nasagrace
resource: "The resource is published by NASA GRACE Tellus. This data set reflects on potential drought conditions in the shallow groundwater section relative to a reference period spanning from 1948 to 2012. It is available as a global raster with a weekly temporal resolution starting with the year 2003. The value indicates the wetness percentile of a given pixel with regard to the reference period."
and to the drough_indicator
documentation: "#This function allows to efficiently calculate the relative wetness in the shallow groundwater section with regard to the the 1948-2012 reference period. The values represent the wetness percentile a given area achieves at a given point in time in regard to the reference period."_
I just found some missing units but not for accessibility, Its units were specified in the format section
@melvinhlwong please see my edits in your comment above.
Hi @Jo-Schie and @Ohm-Np, I updated the package to include some user-facing documentation. It would be great if you could read through it and we can collect any potential feedback here in this issue. You can follow this link to get to the online version and click through the pages in the articles section of the navbar.