Re: [python-users] My first approach: I'm looking for reference's documents & links about migrate from Gempak to Python MetPy // files and reading format

  • To: Ryan May <rmay@xxxxxxxx>
  • Subject: Re: [python-users] My first approach: I'm looking for reference's documents & links about migrate from Gempak to Python MetPy // files and reading format
  • From: banco <banco@xxxxxxxxxxxxxx>
  • Date: Thu, 24 Jun 2021 09:48:42 -0300
Hi Ryan!!

Thank you very much! Yes, it does help me a lot..

Best regards

 Gustav


On 2021-06-16 14:25, Ryan May wrote:
Greetings!

To accomplish something similar to GEMPAK's sfmap, what you're looking
is probably MetPy's simplified/declarative plotting interface. This
example creates a station model plot using it:


https://unidata.github.io/MetPy/latest/examples/plots/surface_declarative.html

As far as what data you can use with MetPy, any format that you can
read into numpy/pandas/xarray can be used with MetPy. We have been
working on solutions to use many of the formats traditionally used for
meteorological applications. For instance, the example above uses
Pandas to read a CSV file of observations. MetPy also has a METAR
parser that can generate a Pandas DataFrame, which could instead be
used with that code:


https://unidata.github.io/MetPy/latest/tutorials/declarative_tutorial.html#plot-surface-obs

This METAR parser should work fine with data downloaded from
https://thredds-test.unidata.ucar.edu/thredds/catalog/noaaport/text/metar/catalog.html
(considering that it was tested extensively using it).

Hope this helps!

Ryan

On Tue, Jun 8, 2021 at 8:43 AM banco <banco@xxxxxxxxxxxxxx> wrote:

Good morning!!

I am a Gempak user. And I would like to use Python MetPy
environment too. At  the  beginning, if possible, the aim
is to have both softwares working.

I would appreciate if someone knows how, in Python environment,:

1) if a file is read (Synop data for instance) in Gempak's
scripts, using sfmap, in this way:

sfmap << EOF
SFPARM   = skyc:.4;tmpc;wsym:.7;ALTM;;dwpc;brbk:.8::212
SFFILE   = /data/ldm/gempak/surface/20210607_sao.gem
.....

How would the equivalent in a Python MetPy environment be?

At this url, GEMPAK Comparison Guide,
https://unidata.github.io/MetPy/latest/userguide/gempak.html
this sfmap's GEMPAK Function (Python/MetPy Equilvalent) has its
row empty.

2) On the other hand, in a context of acquiring files data from LDM,

what kind of
which file format should be used to read them in a Pyhon Metpy
environment?

** The name and extension of the file is different? Does this mean
one has to change LDM configuration?

** Is this different than reading from THREDDS Data Server? Isn't
it?

https://thredds-test.unidata.ucar.edu/thredds/catalog/noaaport/text/metar/catalog.html

I have been looking for files or videos on YouTube on the
subject but by the time being I cannot find these subjects.

Is it somewhere on this website(about userguide)?
https://unidata.github.io/MetPy/latest/userguide/index.html

Any help is welcome: any link, website's page, Unidata's video, etc.

Thank you very much in advance.

Best regards

Gustav Pittaluga

Department of Atmospheric Sciences
Buenos Aires University
Argentina

_______________________________________________
NOTE: All exchanges posted to Unidata maintained email lists are
recorded in the Unidata inquiry tracking system and made publicly
available through the web.  Users who post to any of the lists we
maintain are reminded to remove any personal information that they
do not want to be made public.

python-users mailing list
python-users@xxxxxxxxxxxxxxxx
For list information, to unsubscribe, or change your membership
options, visit: https://www.unidata.ucar.edu/mailing_lists/

--

Ryan May, Ph.D.

Software Engineer
UCAR/Unidata
Boulder, CO


  • 2021 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the python-users archives: