-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add calculation for Terrestrial Coupling Index (TCI) #364
Comments
I am not sure if this is "contributed" or a "diagnostic": Thoughts? |
I think I could put this under Or, I could see a |
If it truly is a diagnostic, then it should go under the diagnostics
directory. We put that directory as a placeholder for future diagnostic
code. Since you are the scientist on the issue, I'll defer to your
decision. The contributed directory was created for outside collaborators,
whose code didn't necessarily conform with our coding structure.
…On Tue, Apr 2, 2024 at 8:52 AM Dan Adriaansen ***@***.***> wrote:
I am not sure if this is "contributed" or a "diagnostic":
https://metcalcpy.readthedocs.io/en/latest/Contributors_Guide/index.html#organization-of-code-in-the-github-repository
Thoughts?
I think I could put this under contributed/land_sfc to be consistent with
the METplus use case model_applications category:
https://metplus.readthedocs.io/en/latest/generated/model_applications/index.html#land-surface
?
Or, I could see a diagnostics/land_sfc directory, but I see the
diagnostics directory is empty so maybe this is not the way to go yet.
—
Reply to this email directly, view it on GitHub
<#364 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA4UJHWB2QYRER6VHRPXE6TY3LA4DAVCNFSM6AAAAABFSJSXIKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMZSGI3DQMBYGI>
.
You are receiving this because you were assigned.Message ID:
***@***.***>
|
OK this helps me distinguish it a lot! The code I am adding is very small (30 lines?) and I have the freedom to write it in whatever standards we choose so I think ultimately this will land in |
That's great, this code will be a great addition to METcalcpy and we
finally have something that is available in the diagnostics 'library'.
…On Tue, Apr 2, 2024 at 9:03 AM Dan Adriaansen ***@***.***> wrote:
The contributed directory was created for outside collaborators, whose
code didn't necessarily conform with our coding structure.
OK this helps me distinguish it a lot! The code I am adding is very small
(30 lines?) and I have the freedom to write it in whatever standards we
choose so I think ultimately this will land in diagnostics/land_surface.
I am double checking with some other folks on the project. Thank you
@bikegeek <https://github.com/bikegeek>!
—
Reply to this email directly, view it on GitHub
<#364 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA4UJHQ35CKS4F6H77UCTIDY3LCE5AVCNFSM6AAAAABFSJSXIKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMZSGMYDAMJZGE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@bikegeek one question I have is about structure under |
I like the diagnostics/land_surface/land_surface_diagnostic_name.py
structure, it allows the addition of future diagnostics that aren't
land_surface in nature.
…On Tue, Apr 2, 2024 at 9:14 AM Dan Adriaansen ***@***.***> wrote:
@bikegeek <https://github.com/bikegeek> one question I have is about
structure under diagnostics. One option is to have a land_surface.py
file, the other is to have
diagnostics/land_surface/land_surface_diagnostic_name.py structure. Can
you advise?
—
Reply to this email directly, view it on GitHub
<#364 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA4UJHX4UY42PIT6HDRSOZTY3LDNHAVCNFSM6AAAAABFSJSXIKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMZSGMZTEOJYGA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
OK, then if I had this structure: and inside Would it be:
I don't think that's right, I think that's if it was |
If the terrestrial_coupling_index a class:
class TerrestrialCouplingIndex():
def __init__():
# stuff for initializing the TerrestrialCouplingIndex object
def calc_tci():
# stuff goes here
…-----
then the import would look like:
from metcalcpy.diagnostics.land_surface.terrestrial_couplint_index import
TerrestrialCouplingIndex as tci
and accessing the methods from the terrestrial_coupling_index.py module:
# Create an instance of the TerrestrialCouplingIndex object with
specific initialization params (like input filename, whatever)
tci_obj = tci.TerrestrialCouplingIndex(param1, param2)
# access the methods via the tci_obj object/instance
tc_index = tci_obj.calc_ti()
I'm bad at naming variables, I hope I haven't confused you with the poor
choice of var names.
On Tue, Apr 2, 2024 at 9:29 AM Dan Adriaansen ***@***.***> wrote:
OK, then if I had this structure:
diagnostics/land_surface/terrestrial_coupling_index.py
and inside terrestrial_coupling_index.py there is a function called
calc_tci(), can you help me formulate the import statement in my Python
script?
Would it be:
from metcalcpy.diagnostics import land_surface as land_sfc
tci = land_sfc.calc_tci()
I don't think that's right, I think that's if it was
diagnostics/land_surface.py. The extra directory confuses me for some
reason but I am probably just forgetting how it works!
—
Reply to this email directly, view it on GitHub
<#364 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA4UJHRR26AKC4BUKUCOSU3Y3LFGHAVCNFSM6AAAAABFSJSXIKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMZSGM3DQNBUGM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@bikegeek @DanielAdriaansen This issue should use CLASP - 7790111 for charging. |
Closed via #369 |
Describe the New Feature
I am updating the METplus Wrappers use case here: https://metplus.readthedocs.io/en/develop/generated/model_applications/land_surface/PointStat_fcstCESM_obsFLUXNET2015_TCI.html#sphx-glr-generated-model-applications-land-surface-pointstat-fcstcesm-obsfluxnet2015-tci-py. That use case does Python embedding for both the forecast and observation data. For the observation data, it was previously using pre-computed TCI data but now it will calculate TCI from raw observation data. The TCI calculation should be shared for the forecast and observation data since it is mathematically the same.
Acceptance Testing
List input data types and sources.
Describe tests required for new functionality.
Time Estimate
Estimate the amount of work required here.
Issues should represent approximately 1 to 3 days of work.
Sub-Issues
Consider breaking the new feature down into sub-issues.
Relevant Deadlines
List relevant project deadlines here or state NONE.
Funding Source
Define the source of funding and account keys here or state NONE.
Define the Metadata
Assignee
Labels
Projects and Milestone
Define Related Issue(s)
Consider the impact to the other METplus components.
New Feature Checklist
See the METplus Workflow for details.
Branch name:
feature_<Issue Number>_<Description>
Pull request:
feature <Issue Number> <Description>
Select: Reviewer(s) and Development issues
Select: Repository level development cycle Project for the next official release
Select: Milestone as the next official version
The text was updated successfully, but these errors were encountered: