[ncl-talk] Animate_1.ncl doubt

Sebastian Otarola-Bustos Sebastian.F.Otarola-Bustos.1 at nd.edu
Thu Mar 5 01:37:03 MST 2015


Thank you very much Mary, I solved my doubts. It works really well now.

Best regards,
Sebastián.

On Wed, Mar 4, 2015 at 6:58 PM, Mary Haley <haley at ucar.edu> wrote:

> Sebastián,
>
> Regarding your questions:
>
>    - I also tried the animate_2.ncl script, but I have some doubts, what
>    exactly are the coordinates that are ploted?
>
> It looks like this example was never finished!  It just generates a
> contour plot, and not a contour plot over a map. The coordinates you're
> seeing are just index values into the the data. The 2D field is 369 x 369,
> so you are seeing index values from 0 to 368 on both axes.
>
> I've updated this script and the images/movie to draw these contours over
> a map, so please check it out again.
>
>
>    - If i want to plot a vectormap, the documentation says that u,v
>    velocities must be 2D, but my variables have the following dimensions (
>    Time, Lat,Lon), there is any command to set this or I need to do this
>    manually?
>
>
> You should be able to use "gsn_csm_vector_map" close to the same way that
> "gsn_csm_contour_map" is being used, except instead of one 2D arrays, you
> have two 2D arrays.  You will need to subscript on time, just as the
> "animate_2.ncl" does (which subscripts across levels).  Go to the "vectors"
> examples page for some help on this:
>
> http://www.ncl.ucar.edu/Applications/vector.shtml
>
>
>    - Finally, the animate_2.ncl plot temperatures at one time(I guess)
>    for each pressure level, how can I get variables related to the pressure
>    levels.
>
> I'm not sure what you mean by this question, "related to the pressure
> levels".
>
> --Mary
>
>
> On Tue, Mar 3, 2015 at 11:09 PM, Sebastian Otarola-Bustos <
> Sebastian.F.Otarola-Bustos.1 at nd.edu> wrote:
>
>> Hi Mary,
>>
>> Thank you very much for your help and sorry for the delay in my answer, I
>> was out of the city and I just return. I used a "ps" file and it works
>> fine. I also tried the animate_2.ncl script, but I have some doubts, what
>> exactly are the coordinates that are ploted?, because I was used to plot
>> the results showing Lat/Lon coordinates with the map projection. How can I
>> use Lat/Lon insted of those?  I also see that animate_2.ncl uses gsn_cme
>> resources, If i want to plot a vectormap, the documentation says that u,v
>> velocities must be 2D, but my variables have the following dimensions (
>> Time, Lat,Lon), there is any command to set this or I need to do this
>> manually?. Finally, the animate_2.ncl plot temperatures at one time(I
>> guess) for each pressure level, how can I get variables related to the
>> pressure levels.
>>
>> Thank you very much in advance,
>> Any help would be great.
>> Best regards,
>> Sebastián.
>>
>>
>> On Fri, Feb 13, 2015 at 2:21 PM, Mary Haley <haley at ucar.edu> wrote:
>>
>>> Sebastián,
>>>
>>> First, make sure you are typing "idt" and not "Idt". The "idt" command
>>> is included with the NCL software, so you should have access to it.  If you
>>> type:
>>>
>>> which ncl
>>> which idt
>>>
>>> it should report finding both of these commands in the same directory.
>>>
>>> My suggestion is to perhaps *not* use NCGM as your output format, but
>>> instead use "eps" or "ps" and then use one of many tools available for
>>> converting a PS file to an animated GIF or MPEG, depending on what you
>>> want. Here's how you would use the "convert" tool, which is part of the
>>> free ImageMagick package to convert a series of EPS files to an animated
>>> GIF:
>>>
>>>    convert -delay 50 *.eps anim.gif
>>>
>>>
>>> The second example "animate_2.ncl" shows how to do this. You should also
>>> read our FAQ on this topic:
>>>
>>> http://www.ncl.ucar.edu/FAQ/#o_formats_008
>>>
>>> Hopefully some NCL Talkers out there will have other ( maybe better)
>>> suggestions for creating animations.  There are lots of ways to do this,
>>> and it just depends on what format and quality you need.
>>>
>>> --Mary
>>>
>>>
>>> On Wed, Feb 11, 2015 at 4:44 PM, Sebastian Otarola-Bustos <
>>> sotarola at nd.edu> wrote:
>>>
>>>> Hello, I am new at WRF and I'm trying to postprocess some results. I've
>>>> been trying to run the example script animate_1.ncl which I found in the
>>>> NCL_page. But It threw me some errors. Particularly, when I use Idt, it
>>>> doesn't recognize the command. You know what can I do to solve this.
>>>> Another thing I am wondering to know, can you tell me if the files are well
>>>> loaded, because It doesn't threw me any error, I' ve loaded directly a
>>>> wrfout.nc file.I attached you the script so it would be great if you
>>>> can help me with this. Finally, I would like to share the video, how can I
>>>> export ncgm to multimedia stantar format.
>>>>
>>>> Best regards,
>>>> Sebastián.
>>>>
>>>> _______________________________________________
>>>> ncl-talk mailing list
>>>> List instructions, subscriber options, unsubscribe:
>>>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>>>
>>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150305/67b88df7/attachment.html 


More information about the ncl-talk mailing list