Skip to content
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

46 juergen documentation cable pop #61

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

juergenknauer
Copy link
Collaborator

@juergenknauer juergenknauer commented Nov 8, 2022

CABLE

Thank you for submitting a pull request to the CABLE Project.

Description

Please include a brief summary of the change and list the issues that are fixed.
Please also include relevant motivation and context.

You can link issues by using a supported keyword in the pull request's description or in a commit message:

Fixes #(issue)

Type of change

Please delete options that are not relevant.

  • Bug fix
  • New or updated documentation

Checklist

  • The new content is accessible and located in the appropriate section.
  • I have checked that links are valid and point to the intended content.
  • I have checked my code/text and corrected any misspellings

Please add a reviewer when ready for review.

@juergenknauer juergenknauer linked an issue Nov 8, 2022 that may be closed by this pull request
@github-actions
Copy link

github-actions bot commented Nov 8, 2022

PR Preview Action v1.2.0
🚀 Deployed preview to https://CABLE-LSM.github.io/CABLE/pr-preview/pr-61/
on branch gh-pages at 2022-11-17 05:23 UTC

@juergenknauer
Copy link
Collaborator Author

High-level documentation of the POP module. Some subroutines could not be documented due to insufficient understanding of the code and lack of knowledge wrt the purpose of the subroutines. Code contains many (apparently redundant, but to be checked) similar subroutines that do the same calculations on a different spatial organisational level (single patch vs. all patches). Presence of optional input parameters with unknown function.

@juergenknauer juergenknauer requested a review from har917 November 8, 2022 22:10
Copy link
Collaborator

@har917 har917 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Jurgen,

A couple of suggestions in line (one notable, the other typographic) - plus

  1. There are some existing comments that start with !************** These are being picked up by FORD as inline comments (at the MODULE level) and I think they don't need to be
  2. Have a think about whether (or not) it would be better to add in units (for the main inputs/outputs) for each SUBROUTINE.

As an aside we will have to break this MODULE up at some point.

@juergenknauer juergenknauer requested a review from har917 November 17, 2022 04:22

!! Patch Disturbance
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

did you really want these !! lines here? They appears as a rogue comment at the top pf the POP MODULE page - not in the Patch_disturb box

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These comments were indeed redundant and at the wrong place. I have removed them.

! POP receives StemNPP from CASA and returns woody turnover rate and vegetation height to the
! main model. External inputs is disturbance regime (total or total and partial) and disturbance interval.
! Main variables and their units are:
! Inputs:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd include a blank line here to get this onto a new line

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have added a few more blank lines. Looks like there is a tradeoff between readability of the code and readability of the rendered documentation.

Copy link
Collaborator

@har917 har917 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Jurgen,

I'm generally happy with this - one comment about a rogue comment (before patch_disturb) and one suggestion.

More generally though the math typesetting needs looking at - it needs to be ( ... ) not $...$.

Perhaps also apply to the top level description as well (rather than as e.g. kg C m-2 yr-1)

@har917
Copy link
Collaborator

har917 commented Jan 16, 2025

@ccarouge I was going to approve (even merge in) this doc PR in but it looks like the process has changed and we're not deploying draft docs anymore. I wanted to check those before doing so - any advice?

@ccarouge
Copy link
Member

@har917 This is a very old PR. I know Juergen started this way and then went to do it differently (directly in the CABLE-POP_TRENDY branch I think). So I have on my todo list for a long time to review if this is still needed and same with the src_pop directory and remove everything that's outdated. But I haven't yet gone through it.

@juergenknauer
Copy link
Collaborator Author

I think this one refers to the documentation of CABLE-POP only and not to code changes. I remember correctly, all that happened on a separate repository that's there specifically for documentation.

It would be good if that one could be merged as it is almost complete and was just pending minor editorial suggestions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Juergen Documentation on CABLE-POP
3 participants