[gradsusr] gradsusr Digest, Vol 64, Issue 34

kombo kai kaikombo at yahoo.com
Fri Jun 26 07:14:39 EDT 2015


 calculating monthly from daily averagesHi grad usersI want to calculate the monthly averages from the daily average dataI have found a script in the grads users blog.I tried to correct the script based on my data, but when I run the script it gives me the .nc file with constant number and with only one time step, the length of my daily data is from t=1 to t=5632 days Is their any one can help to see where is the problemregardskaikombo
Here is the the script 'reinit'mday = '31 28 31 30 31 30 31 31 30 31 30 31'month = 'jan feb mar apr may jun jul aug sep oct nov dec'
 'sdfopen  C:/Users/laptop/Documents/Work/datatrim/data_trim.nc' 'set x 1 136 ' 'set y 1 144' 'set t 1 5630'* 'set z 1'   yr1 = 1998  yr2 = 2012
 yr = yr1 while(yr<=yr2)  leap = 0  if(math_mod(yr,400) = 0 | math_mod(yr,4) = 0 & math_mod(yr,100) != 0)   leap = 1* say yr' is a leap year.'  endif  imon = 1  while(imon <= 12)   md = subwrd(mday,imon)   mc = subwrd(month,imon)   if(imon = 2); md = md + leap; endif;   time1 = '01'mc''yr   time2 = md''mc''yr*   say time1' 'time2   'define aveprecip= ave(precipitation,time='time1',time='time2')'*   'set gxout sdfwrite'   'set sdfwrite  C:/Users/laptop/Documents/Work/datatrim/monthly_trim.nc'  'sdfwrite aveprecip'   imon = imon + 1   endwhile  yr = yr + 1 endwhile  


     On Thursday, June 25, 2015 8:59 PM, "gradsusr-request at gradsusr.org" <gradsusr-request at gradsusr.org> wrote:
   

 Send gradsusr mailing list submissions to
    gradsusr at gradsusr.org

To subscribe or unsubscribe via the World Wide Web, visit
    http://gradsusr.org/mailman/listinfo/gradsusr
or, via email, send a message with subject or body 'help' to
    gradsusr-request at gradsusr.org

You can reach the person managing the list at
    gradsusr-owner at gradsusr.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of gradsusr digest..."


Today's Topics:

  1. Re: Converting wrf model out to grads readerable format
      (Masters.Steve)
  2. Re: Converting wrf model out to grads readerable format
      (Endalkachew Bekele - NOAA Affiliate)


----------------------------------------------------------------------

Message: 1
Date: Thu, 25 Jun 2015 12:35:30 -0400
From: "Masters.Steve" <masters.steve at ensco.com>
Subject: Re: [gradsusr] Converting wrf model out to grads readerable
    format
To: GrADS Users Forum <gradsusr at gradsusr.org>
Message-ID:
    <FDF06AD843A5D84F89537BCAA377E69163A7A01858 at mb-ex07.ensco.win>
Content-Type: text/plain; charset="utf-8"

Charles ?

This is a WRF-EMS question, not a GrADS question.  Looking at the error, you are probably running the command from the wrong directory (ems_post is run one directory up).  You can find the full WRF-EMS documentation at http://strc.comet.ucar.edu/software/newrems/.  If you are still having problems, there is a public forum linked at that address that can better service your question.

Stephen Masters
ENSCO, Inc.
Melbourne, FL

From: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] On Behalf Of Charles Langton Vanya
Sent: Thursday, June 25, 2015 6:43 AM
To: GrADS Users Forum
Subject: Re: [gradsusr] Converting wrf model out to grads readerable format

Dear all,
I am still getting challenges in converting wrfems model output to grads  readable format. This is what I tried and the error I found.
------------------------------------------------------------------------------------------------------------------------------------------------------

gsoelim                              ps2ps2                      zsoelim
[WRF-MODEL:>>]cd ../usr/bin
bash: cd: ../usr/bin: No such file or directory
[WRF-MODEL:>>]cd /usr/wrfems/
[WRF-MODEL:>>]ls
bin  conf  data  docs  domwiz  etc  logs  releases  runs  strc  util
[WRF-MODEL:>>]cd runs
[WRF-MODEL:>>]ls
malawi  malawi-zoom
[WRF-MODEL:>>]cd malawi
[WRF-MODEL:>>]ls
conf  ems_autorun  ems_post  emsprd  ems_prep  ems_run  grib  log  static  wpsprd  wrfbdy_d01  wrfinput_d01  wrfprd
[WRF-MODEL:>>]cd wrfprd
[WRF-MODEL:>>]ls
wrfout_d01_2015-06-03_00:00:00  wrfout_d01_2015-06-03_09:00:00  wrfout_d01_2015-06-03_18:00:00
wrfout_d01_2015-06-03_01:00:00  wrfout_d01_2015-06-03_10:00:00  wrfout_d01_2015-06-03_19:00:00
wrfout_d01_2015-06-03_02:00:00  wrfout_d01_2015-06-03_11:00:00  wrfout_d01_2015-06-03_20:00:00
wrfout_d01_2015-06-03_03:00:00  wrfout_d01_2015-06-03_12:00:00  wrfout_d01_2015-06-03_21:00:00
wrfout_d01_2015-06-03_04:00:00  wrfout_d01_2015-06-03_13:00:00  wrfout_d01_2015-06-03_22:00:00
wrfout_d01_2015-06-03_05:00:00  wrfout_d01_2015-06-03_14:00:00  wrfout_d01_2015-06-03_23:00:00
wrfout_d01_2015-06-03_06:00:00  wrfout_d01_2015-06-03_15:00:00  wrfout_d01_2015-06-04_00:00:00
wrfout_d01_2015-06-03_07:00:00  wrfout_d01_2015-06-03_16:00:00
wrfout_d01_2015-06-03_08:00:00  wrfout_d01_2015-06-03_17:00:00
[WRF-MODEL:>>]ems_post --malawi 2 --grads
Parameter to use lib must be directory, not file at /usr/bin/ems_post line 33.
Can't locate EMS_set.pm in @INC (you may need to install the EMS_set module) (@INC contains: /usr/bin/ems_util /usr/bin/ems_post /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/bin/ems_post line 34.
BEGIN failed--compilation aborted at /usr/bin/ems_post line 34.
[WRF-MODEL:>>]cd ../wrfprd
[WRF-MODEL:>>]ems_post --malawi 2 --grads
Parameter to use lib must be directory, not file at /usr/bin/ems_post line 33.
Can't locate EMS_set.pm in @INC (you may need to install the EMS_set module) (@INC contains: /usr/bin/ems_util /usr/bin/ems_post /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/bin/ems_post line 34.
BEGIN failed--compilation aborted at /usr/bin/ems_post line 34.
[WRF-MODEL:>>]

-------------------------------------
What do I need to do?
Thank you in advance for your help
Regards,

On 24 June 2015 at 12:19, itesh dash <itesh at rimes.int<mailto:itesh at rimes.int>> wrote:
If it is grib2 data, try using g2ctl.pl<http://g2ctl.pl> utility? to create the ctl file and gribmap to generate the index file. Then you can use Grads to display it.

Hope this helps.

_______________________________________________
gradsusr mailing list
gradsusr at gradsusr.org<mailto:gradsusr at gradsusr.org>
http://gradsusr.org/mailman/listinfo/gradsusr



--
Meteorological Services
P.O.Box 1808,
Blantyre,
Malawi
Cell:+265-888-980 545
 + 254 714 586 517


________________________________
The information contained in this email message is intended only for the use of the individual(s) to whom it is addressed and may contain information that is privileged and sensitive. If you are not the intended recipient, or otherwise have received this communication in error, please notify the sender immediately by email at the above referenced address and note that any further dissemination, distribution or copying of this communication is strictly prohibited.

The U.S. Export Control Laws regulate the export and re-export of technology originating in the United States. This includes the electronic transmission of information and software to foreign countries and to certain foreign nationals. Recipient agrees to abide by these laws and their regulations -- including the U.S. Department of Commerce Export Administration Regulations and the U.S. Department of State International Traffic in Arms Regulations -- and not to transfer, by electronic transmission or otherwise, any content derived from this email to either a foreign national or a foreign destination in violation of such laws.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20150625/a3717d4a/attachment-0001.html 

------------------------------

Message: 2
Date: Thu, 25 Jun 2015 13:55:36 -0400
From: Endalkachew Bekele - NOAA Affiliate
    <endalkachew.bekele at noaa.gov>
Subject: Re: [gradsusr] Converting wrf model out to grads readerable
    format
To: GrADS Users Forum <gradsusr at gradsusr.org>
Message-ID:
    <CAN1MjmdsfSMBBtyECdfeZv2yhKXiLL0_Vs7B2=u8C0nRMrsiPw at mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Hi Charles,

Please follow the following steps:-




*cd $EMS/runs/malawi*

*ems_post --grads*

*cd emsprd/grads*

If everything goes well, you should get the required files in this folder.

Thanks,

Endalk


On Thu, Jun 25, 2015 at 6:42 AM, Charles Langton Vanya <dolesibeni at gmail.com
> wrote:

> Dear all,
> I am still getting challenges in converting wrfems model output to grads
> readable format. This is what I tried and the error I found.
>
> ------------------------------------------------------------------------------------------------------------------------------------------------------
>
> gsoelim                              ps2ps2                      zsoelim
> [WRF-MODEL:>>]cd ../usr/bin
> bash: cd: ../usr/bin: No such file or directory
> [WRF-MODEL:>>]cd /usr/wrfems/
> [WRF-MODEL:>>]ls
> bin  conf  data  docs  domwiz  etc  logs  releases  runs  strc  util
> [WRF-MODEL:>>]cd runs
> [WRF-MODEL:>>]ls
> malawi  malawi-zoom
> [WRF-MODEL:>>]cd malawi
> [WRF-MODEL:>>]ls
> conf  ems_autorun  ems_post  emsprd  ems_prep  ems_run  grib  log  static
> wpsprd  wrfbdy_d01  wrfinput_d01  wrfprd
> [WRF-MODEL:>>]cd wrfprd
> [WRF-MODEL:>>]ls
> wrfout_d01_2015-06-03_00:00:00  wrfout_d01_2015-06-03_09:00:00
> wrfout_d01_2015-06-03_18:00:00
> wrfout_d01_2015-06-03_01:00:00  wrfout_d01_2015-06-03_10:00:00
> wrfout_d01_2015-06-03_19:00:00
> wrfout_d01_2015-06-03_02:00:00  wrfout_d01_2015-06-03_11:00:00
> wrfout_d01_2015-06-03_20:00:00
> wrfout_d01_2015-06-03_03:00:00  wrfout_d01_2015-06-03_12:00:00
> wrfout_d01_2015-06-03_21:00:00
> wrfout_d01_2015-06-03_04:00:00  wrfout_d01_2015-06-03_13:00:00
> wrfout_d01_2015-06-03_22:00:00
> wrfout_d01_2015-06-03_05:00:00  wrfout_d01_2015-06-03_14:00:00
> wrfout_d01_2015-06-03_23:00:00
> wrfout_d01_2015-06-03_06:00:00  wrfout_d01_2015-06-03_15:00:00
> wrfout_d01_2015-06-04_00:00:00
> wrfout_d01_2015-06-03_07:00:00  wrfout_d01_2015-06-03_16:00:00
> wrfout_d01_2015-06-03_08:00:00  wrfout_d01_2015-06-03_17:00:00
> [WRF-MODEL:>>]ems_post --malawi 2 --grads
> Parameter to use lib must be directory, not file at /usr/bin/ems_post line
> 33.
> Can't locate EMS_set.pm in @INC (you may need to install the EMS_set
> module) (@INC contains: /usr/bin/ems_util /usr/bin/ems_post
> /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl
> /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at
> /usr/bin/ems_post line 34.
> BEGIN failed--compilation aborted at /usr/bin/ems_post line 34.
> [WRF-MODEL:>>]cd ../wrfprd
> [WRF-MODEL:>>]ems_post --malawi 2 --grads
> Parameter to use lib must be directory, not file at /usr/bin/ems_post line
> 33.
> Can't locate EMS_set.pm in @INC (you may need to install the EMS_set
> module) (@INC contains: /usr/bin/ems_util /usr/bin/ems_post
> /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl
> /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at
> /usr/bin/ems_post line 34.
> BEGIN failed--compilation aborted at /usr/bin/ems_post line 34.
> [WRF-MODEL:>>]
>
> -------------------------------------
>
> What do I need to do?
> Thank you in advance for your help
> Regards,
>
> On 24 June 2015 at 12:19, itesh dash <itesh at rimes.int> wrote:
>
>> If it is grib2 data, try using g2ctl.pl utility? to create the ctl file
>> and gribmap to generate the index file. Then you can use Grads to display
>> it.
>>
>> Hope this helps.
>>
>> _______________________________________________
>> gradsusr mailing list
>> gradsusr at gradsusr.org
>> http://gradsusr.org/mailman/listinfo/gradsusr
>>
>>
>
>
> --
> Meteorological Services
> P.O.Box 1808,
> Blantyre,
> Malawi
> Cell:+265-888-980 545
>  + 254 714 586 517
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>


-- 
-----------------------------------------------------------------------------------
 *Endalkachew Bekele*
CPC International Desks
NOAA Center for Weather and Climate Prediction
5830 University Research Court, Rm 3149
College Park, Maryland 20740
Tel: (301) 683-3459
e-mail: endalkachew.bekele at noaa.gov

UCAR/Joint Office for Science Support (JOSS)
 e-mail: ebekele at ucar.edu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20150625/3a8a7c1c/attachment.html 

------------------------------

_______________________________________________
gradsusr mailing list
gradsusr at gradsusr.org
http://gradsusr.org/mailman/listinfo/gradsusr


End of gradsusr Digest, Vol 64, Issue 34
****************************************


  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20150626/d8187318/attachment-0001.html 


More information about the gradsusr mailing list