-
Notifications
You must be signed in to change notification settings - Fork 7
Feature 170 stratosphere diag #191
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
Conversation
… original code from NOAA
… pre_processing directional_means.py module
renamed stratosphere_diagnostics.py
I'm getting some kind of error, although I'm not using the conda environment, so maybe that's the issue. Does anyone know what this means? ImportError: Plotting of arrays of cftime.datetime objects or arrays indexed by cftime.datetime objects requires the optional |
I thought I updated the conda environment to contain that. Let me make
sure it's installed.
…---------------
Minna Win
Pronouns: she/her
National Center for Atmospheric Research
Developmental Testbed Center
Phone: 303-497-8423
Fax: 303-497-8401
---------------
On Fri, Jan 28, 2022 at 1:39 PM Christina Kalb ***@***.***> wrote:
I'm getting some kind of error, although I'm not using the conda
environment, so maybe that's the issue. Does anyone know what this means?
ImportError: Plotting of arrays of cftime.datetime objects or arrays
indexed by cftime.datetime objects requires the optional nc-time-axis
(v1.2.0 or later) package.
—
Reply to this email directly, view it on GitHub
<#191 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA4UJHT4LPTOYV4IBRY5STLUYL5G3ANCNFSM5M44R77A>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
sorry, I should have read your message more carefully. You need to install
the nc-time-axis in order to get the plots to work. It is an extension of
the cftime module. I just verified that this is indeed installed in the
feature_170_stratosphere_diag conda environment on both 'kiowa' and
'seneca'.
---------------
Minna Win
Pronouns: she/her
National Center for Atmospheric Research
Developmental Testbed Center
Phone: 303-497-8423
Fax: 303-497-8401
---------------
On Fri, Jan 28, 2022 at 4:32 PM Minna Win-Gildenmeister ***@***.***>
wrote:
… I thought I updated the conda environment to contain that. Let me make
sure it's installed.
---------------
Minna Win
Pronouns: she/her
National Center for Atmospheric Research
Developmental Testbed Center
Phone: 303-497-8423
Fax: 303-497-8401
---------------
On Fri, Jan 28, 2022 at 1:39 PM Christina Kalb ***@***.***>
wrote:
> I'm getting some kind of error, although I'm not using the conda
> environment, so maybe that's the issue. Does anyone know what this means?
>
> ImportError: Plotting of arrays of cftime.datetime objects or arrays
> indexed by cftime.datetime objects requires the optional nc-time-axis
> (v1.2.0 or later) package.
>
> —
> Reply to this email directly, view it on GitHub
> <#191 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AA4UJHT4LPTOYV4IBRY5STLUYL5G3ANCNFSM5M44R77A>
> .
> Triage notifications on the go with GitHub Mobile for iOS
> <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
> or Android
> <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
>
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>
|
Okay, thanks. How do I activate the conda environment to try and test with
that version?
Tina
…On Fri, Jan 28, 2022 at 4:44 PM bikegeek ***@***.***> wrote:
sorry, I should have read your message more carefully. You need to install
the nc-time-axis in order to get the plots to work. It is an extension of
the cftime module. I just verified that this is indeed installed in the
feature_170_stratosphere_diag conda environment on both 'kiowa' and
'seneca'.
---------------
Minna Win
Pronouns: she/her
National Center for Atmospheric Research
Developmental Testbed Center
Phone: 303-497-8423
Fax: 303-497-8401
---------------
On Fri, Jan 28, 2022 at 4:32 PM Minna Win-Gildenmeister ***@***.***>
wrote:
> I thought I updated the conda environment to contain that. Let me make
> sure it's installed.
>
> ---------------
> Minna Win
> Pronouns: she/her
> National Center for Atmospheric Research
> Developmental Testbed Center
> Phone: 303-497-8423
> Fax: 303-497-8401
> ---------------
>
>
>
> On Fri, Jan 28, 2022 at 1:39 PM Christina Kalb ***@***.***>
> wrote:
>
>> I'm getting some kind of error, although I'm not using the conda
>> environment, so maybe that's the issue. Does anyone know what this
means?
>>
>> ImportError: Plotting of arrays of cftime.datetime objects or arrays
>> indexed by cftime.datetime objects requires the optional nc-time-axis
>> (v1.2.0 or later) package.
>>
>> —
>> Reply to this email directly, view it on GitHub
>> <#191 (comment)
>,
>> or unsubscribe
>> <
https://github.com/notifications/unsubscribe-auth/AA4UJHT4LPTOYV4IBRY5STLUYL5G3ANCNFSM5M44R77A
>
>> .
>> Triage notifications on the go with GitHub Mobile for iOS
>> <
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
>
>> or Android
>> <
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub
>.
>>
>> You are receiving this because you authored the thread.Message ID:
>> ***@***.***>
>>
>
—
Reply to this email directly, view it on GitHub
<#191 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFJHD4RKIBNTZNXFYKL4V7LUYMS5TANCNFSM5M44R77A>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because your review was requested.Message ID:
***@***.***>
--
*************************************************
Christina Kalb
Associate Scientist
National Center for Atmospheric Research
3450 Mitchell Lane
Boulder, CO 80301
***@***.***
303-497-2819
*************************************************
My working day may not be your working day. Please do not feel obliged to
reply to this email outside of your normal working hours.
|
conda activate /home/met_test/.conda/envs/feature_170_stratosphere_diag
on kiowa
On Mon, Jan 31, 2022 at 11:17 AM Christina Kalb ***@***.***>
wrote:
… Okay, thanks. How do I activate the conda environment to try and test with
that version?
Tina
On Fri, Jan 28, 2022 at 4:44 PM bikegeek ***@***.***> wrote:
> sorry, I should have read your message more carefully. You need to
install
> the nc-time-axis in order to get the plots to work. It is an extension of
> the cftime module. I just verified that this is indeed installed in the
> feature_170_stratosphere_diag conda environment on both 'kiowa' and
> 'seneca'.
> ---------------
> Minna Win
> Pronouns: she/her
> National Center for Atmospheric Research
> Developmental Testbed Center
> Phone: 303-497-8423
> Fax: 303-497-8401
> ---------------
>
>
>
> On Fri, Jan 28, 2022 at 4:32 PM Minna Win-Gildenmeister ***@***.***>
> wrote:
>
> > I thought I updated the conda environment to contain that. Let me make
> > sure it's installed.
> >
> > ---------------
> > Minna Win
> > Pronouns: she/her
> > National Center for Atmospheric Research
> > Developmental Testbed Center
> > Phone: 303-497-8423
> > Fax: 303-497-8401
> > ---------------
> >
> >
> >
> > On Fri, Jan 28, 2022 at 1:39 PM Christina Kalb ***@***.***>
> > wrote:
> >
> >> I'm getting some kind of error, although I'm not using the conda
> >> environment, so maybe that's the issue. Does anyone know what this
> means?
> >>
> >> ImportError: Plotting of arrays of cftime.datetime objects or arrays
> >> indexed by cftime.datetime objects requires the optional nc-time-axis
> >> (v1.2.0 or later) package.
> >>
> >> —
> >> Reply to this email directly, view it on GitHub
> >> <
#191 (comment)
> >,
> >> or unsubscribe
> >> <
>
https://github.com/notifications/unsubscribe-auth/AA4UJHT4LPTOYV4IBRY5STLUYL5G3ANCNFSM5M44R77A
> >
> >> .
> >> Triage notifications on the go with GitHub Mobile for iOS
> >> <
>
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
> >
> >> or Android
> >> <
>
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub
> >.
> >>
> >> You are receiving this because you authored the thread.Message ID:
> >> ***@***.***>
> >>
> >
>
> —
> Reply to this email directly, view it on GitHub
> <#191 (comment)
>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/AFJHD4RKIBNTZNXFYKL4V7LUYMS5TANCNFSM5M44R77A
>
> .
> Triage notifications on the go with GitHub Mobile for iOS
> <
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
>
> or Android
> <
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub
>.
>
> You are receiving this because your review was requested.Message ID:
> ***@***.***>
>
--
*************************************************
Christina Kalb
Associate Scientist
National Center for Atmospheric Research
3450 Mitchell Lane
Boulder, CO 80301
***@***.***
303-497-2819
*************************************************
My working day may not be your working day. Please do not feel obliged to
reply to this email outside of your normal working hours.
—
Reply to this email directly, view it on GitHub
<#191 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHAUIKAPTQQV33JZ2MAGBITUY3G4TANCNFSM5M44R77A>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because your review was requested.Message ID:
***@***.***>
--
--------------------------------------------------------------
Hank Fisher Research Applications Laboratory
303-497-2817 National Center for Atmospheric Research
***@***.*** P.O. Box 3000, Boulder CO 80307-3000
--------------------------------------------------------------
|
and if for some reason activating the conda environment in the met_test
directory doesn't work, here is the requirements.yaml file you can use to
create your own.
1) work in your bash shell
2) run this: `conda env create -f requirements.yaml`
you might get a warning about not having a pip dependency, but conda will
go ahead and add one for you. I think it's because I used pip to install a
lot of these (due to using a pip list output from my Mac to get things to
work on the Linux hosts).
Regards,
Minna
---------------
Minna Win
Pronouns: she/her
National Center for Atmospheric Research
Developmental Testbed Center
Phone: 303-497-8423
Fax: 303-497-8401
---------------
On Mon, Jan 31, 2022 at 11:17 AM Christina Kalb ***@***.***>
wrote:
… Okay, thanks. How do I activate the conda environment to try and test with
that version?
Tina
On Fri, Jan 28, 2022 at 4:44 PM bikegeek ***@***.***> wrote:
> sorry, I should have read your message more carefully. You need to
install
> the nc-time-axis in order to get the plots to work. It is an extension of
> the cftime module. I just verified that this is indeed installed in the
> feature_170_stratosphere_diag conda environment on both 'kiowa' and
> 'seneca'.
> ---------------
> Minna Win
> Pronouns: she/her
> National Center for Atmospheric Research
> Developmental Testbed Center
> Phone: 303-497-8423
> Fax: 303-497-8401
> ---------------
>
>
>
> On Fri, Jan 28, 2022 at 4:32 PM Minna Win-Gildenmeister ***@***.***>
> wrote:
>
> > I thought I updated the conda environment to contain that. Let me make
> > sure it's installed.
> >
> > ---------------
> > Minna Win
> > Pronouns: she/her
> > National Center for Atmospheric Research
> > Developmental Testbed Center
> > Phone: 303-497-8423
> > Fax: 303-497-8401
> > ---------------
> >
> >
> >
> > On Fri, Jan 28, 2022 at 1:39 PM Christina Kalb ***@***.***>
> > wrote:
> >
> >> I'm getting some kind of error, although I'm not using the conda
> >> environment, so maybe that's the issue. Does anyone know what this
> means?
> >>
> >> ImportError: Plotting of arrays of cftime.datetime objects or arrays
> >> indexed by cftime.datetime objects requires the optional nc-time-axis
> >> (v1.2.0 or later) package.
> >>
> >> —
> >> Reply to this email directly, view it on GitHub
> >> <
#191 (comment)
> >,
> >> or unsubscribe
> >> <
>
https://github.com/notifications/unsubscribe-auth/AA4UJHT4LPTOYV4IBRY5STLUYL5G3ANCNFSM5M44R77A
> >
> >> .
> >> Triage notifications on the go with GitHub Mobile for iOS
> >> <
>
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
> >
> >> or Android
> >> <
>
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub
> >.
> >>
> >> You are receiving this because you authored the thread.Message ID:
> >> ***@***.***>
> >>
> >
>
> —
> Reply to this email directly, view it on GitHub
> <#191 (comment)
>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/AFJHD4RKIBNTZNXFYKL4V7LUYMS5TANCNFSM5M44R77A
>
> .
> Triage notifications on the go with GitHub Mobile for iOS
> <
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
>
> or Android
> <
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub
>.
>
> You are receiving this because your review was requested.Message ID:
> ***@***.***>
>
--
*************************************************
Christina Kalb
Associate Scientist
National Center for Atmospheric Research
3450 Mitchell Lane
Boulder, CO 80301
***@***.***
303-497-2819
*************************************************
My working day may not be your working day. Please do not feel obliged to
reply to this email outside of your normal working hours.
—
Reply to this email directly, view it on GitHub
<#191 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA4UJHWI35PW4L33PA7NLKLUY3G4TANCNFSM5M44R77A>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Now it's not finding metcalcpy: File "stratosphere_diagnostics.py", line 17, in I did a setenv PYTHONPATH $METCALCPY_SOURCE/METcalcpy:$METCALCPY_SOURCE/METcalcpy/metcalcpy:$METPLOTPY_SOURCE/METplotpy:$METPLOTPY_SOURCE/METplotpy/metplotpy so, I'm not sure why it can't find metcalcpy. It says I'm in a tcsh shell |
That matches what my PYTHONPATH was set to as well. I had to run in bash
shell in order to activate the conda environment. I just checked and even
though I'm switched to bash, when I do an 'echo $SHELL' at the command
line, it shows I'm in tcsh! Can you try using the export= syntax and see
if that works?
…---------------
Minna Win
Pronouns: she/her
National Center for Atmospheric Research
Developmental Testbed Center
Phone: 303-497-8423
Fax: 303-497-8401
---------------
On Tue, Feb 1, 2022 at 12:28 PM Christina Kalb ***@***.***> wrote:
Now it's not finding metcalcpy:
File "stratosphere_diagnostics.py", line 17, in
from metcalcpy.pre_processing.directional_means import meridional_mean
ModuleNotFoundError: No module named 'metcalcpy'
I did a setenv PYTHONPATH
$METCALCPY_SOURCE/METcalcpy:$METCALCPY_SOURCE/METcalcpy/metcalcpy:$METPLOTPY_SOURCE/METplotpy:$METPLOTPY_SOURCE/METplotpy/metplotpy
so, I'm not sure why it can't find metcalcpy. It says I'm in a tcsh shell
—
Reply to this email directly, view it on GitHub
<#191 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA4UJHV5POIGYHFOHZFPDPDUZAX7RANCNFSM5M44R77A>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
When I try to do the export, I get the following error: METCALCPY_SOURCE: Undefined variable. What should METCALCPY_SOURCE be set to? |
What do you have your METCALCPY_SOURCE set to? I don't usually set a
METCALCPY_SOURCE, I just explicitly point to the METcalcpy directory that I
cloned:
/home/minnawin/METcalcpy:/home/minnawin/METcalcpy/metcalcpy:/home/minnawin/METplotpy:/home/minnawin/METplotpy/metplotpy
…---------------
Minna Win
Pronouns: she/her
National Center for Atmospheric Research
Developmental Testbed Center
Phone: 303-497-8423
Fax: 303-497-8401
---------------
On Tue, Feb 1, 2022 at 2:39 PM Christina Kalb ***@***.***> wrote:
When I try to do the export, I get the following error:
METCALCPY_SOURCE: Undefined variable.
What should METCALCPY_SOURCE be set to?
—
Reply to this email directly, view it on GitHub
<#191 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA4UJHVENTFMMR32DW3NXHTUZBHJZANCNFSM5M44R77A>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
It's not set. I'll point it directly. I actually didn't know exactly what that was specifying |
I'm still getting an import error. I'm not sure why. Does it matter which order I switch to the bash shell and activate the conda environment? ImportError: Plotting of arrays of cftime.datetime objects or arrays indexed by cftime.datetime objects requires the optional |
I always switch to bash shell (necessary for using conda), then set the
path, then activate conda. I hope that works.
---------------
Minna Win
Pronouns: she/her
National Center for Atmospheric Research
Developmental Testbed Center
Phone: 303-497-8423
Fax: 303-497-8401
---------------
…On Wed, Feb 2, 2022 at 12:09 PM Christina Kalb ***@***.***> wrote:
I'm still getting an import error. I'm not sure why. Does it matter which
order I switch to the bash shell and activate the conda environment?
ImportError: Plotting of arrays of cftime.datetime objects or arrays
indexed by cftime.datetime objects requires the optional nc-time-axis
(v1.2.0 or later) package
—
Reply to this email directly, view it on GitHub
<#191 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA4UJHR4NLVWXCTJYWIYRQLUZF6NZANCNFSM5M44R77A>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Finally got it working! |
…feature_170_stratosphere_diag
Pull Request Testing
Describe testing already performed for these changes:
generated all four plots on 'kiowa' and 'seneca'
Recommend testing for the reviewer(s) to perform, including the location of input datasets, and any additional instructions:
on 'seneca' and 'kiowa' there is a conda environment: /home/met_test/.conda/envs/feature_170_stratosphere_diag
clone the METcalcpy (develop) and METplotpy (feature_170_stratosphere_diag) repositories
set the PYTHONPATH
$METCALCPY_SOURCE/METcalcpy:$METCALCPY_SOURCE/METcalcpy/metcalcpy:$METPLOTPY_SOURCE/METplotpy:$METPLOTPY_SOURCE/METplotpy/metplotpy
in the $METPLOTPY_SOURCE/METplotpy/metplotpy/contributed/stratosphere_diagnostics/stratosphere_diagnostics.yaml file, replace setting for input_data_path to one of the following:
and replace the setting for output_data_path to the directory where you want to save the output plots.
Run the plotting code from the $METPLOTPY_SOURCE/METplotpy/metplotpy/contributed/stratosphere_diagnostics directory:
python stratosphere_diagnostics.py stratosphere_diagnostics.yaml
users would have to run it.
You should have four plots created:
zonal_mean_wind_contour.png

zonal_mean_temperature_contour.png

zonal_mean_wind.png

polar_cap_meridional_mean_temp.png

Do these changes include sufficient documentation updates, ensuring that no errors or warnings exist in the build of the documentation? [Yes ] also updated spreadsheet of Python packages
Do these changes include sufficient testing updates? Manual testing only. Uses a large netCDF file as sample data
Will this PR result in changes to the test suite? [No]
If yes, describe the new output and/or changes to the existing output:
Please complete this pull request review by [Tuesday Feb1].
Pull Request Checklist
See the METplus Workflow for details.
Select: Reviewer(s)
Select: Organization level software support Project or Repository level development cycle Project
Select: Milestone as the version that will include these changes