Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
error weather file
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  12 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Eline  
View profile  
 More options Oct 15, 12:44 am
From: Eline <boele.el...@gmail.com>
Date: Wed, 14 Oct 2009 07:44:41 -0700 (PDT)
Local: Thurs, Oct 15 2009 12:44 am
Subject: error weather file
Following the steps as described in the How to guide of the training
manual I am trying to make my own weather file. When I want to run the
model an error occurs. It says that it can not find the year and the
date.
While I have described it in my file as follows:
year    day
  ()        ()
2009      1
2009      2
etc.
What can be the problem? I have tried several things, but I have not
found a solution.

Eline


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dean Holzworth  
View profile  
 More options Oct 16, 9:41 am
From: Dean Holzworth <Dean.Holzwo...@csiro.au>
Date: Thu, 15 Oct 2009 16:41:55 -0700 (PDT)
Local: Fri, Oct 16 2009 9:41 am
Subject: Re: error weather file
Do you have these lines at the top of the met file:

[weather.met.weather]
latitude = -33.78 (DECIMAL DEGREES)
tav = 16.47 (oC) ! annual average ambient temperature
amp = 13.71 (oC) ! annual amplitude in mean monthly temperature

??

Dean

On Oct 15, 12:44 am, Eline <boele.el...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eline  
View profile  
 More options Oct 16, 11:36 pm
From: Eline <boele.el...@gmail.com>
Date: Fri, 16 Oct 2009 06:36:50 -0700 (PDT)
Local: Fri, Oct 16 2009 11:36 pm
Subject: Re: error weather file
Yes: This is what my file looks like:

!Title = ElSabino 2009

[weather.met.weather]
Latitude= 20 (DECIMAL DEGREES)

 tav =  17.59 (oC)     ! annual average ambient temperature
 amp =   4.29 (oC)     ! annual amplitude in mean monthly
temperature

site    year    day     radn    maxt    mint    rain    evap
()      ()      ()      (MJ/m^2)        (oC)    (oC)    (mm)    (mm)
ElSa    2009    1       15      19      8       0       5.53
ElSa    2009    2       15      19      8       0       5.53

On Oct 15, 6:41 pm, Dean Holzworth <Dean.Holzwo...@csiro.au> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dean Holzworth  
View profile  
 More options Oct 19, 9:36 am
From: Dean Holzworth <Dean.Holzwo...@csiro.au>
Date: Sun, 18 Oct 2009 16:36:24 -0700 (PDT)
Local: Mon, Oct 19 2009 9:36 am
Subject: Re: error weather file
The met file you've shown below works for me in APSIM 7. I'm guessing
you're from a country with a different date/time format (e.g. mm/dd/
yyyy). Perhaps that is causing APSIM a problem. Try replacing the year
and day columns with a Date column formatted according to your normal
date time format e.g.

site      date            radn    maxt
()           ()                 ()          ()
ElSa  01/01/2009   15          19
...

Dean

On Oct 16, 11:36 pm, Eline <boele.el...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eline  
View profile  
 More options Oct 20, 1:43 am
From: Eline <boele.el...@gmail.com>
Date: Mon, 19 Oct 2009 08:43:45 -0700 (PDT)
Local: Tues, Oct 20 2009 1:43 am
Subject: Re: error weather file
Thanks for the reply. I have tried several options:
yyyy/mm/dd
dd/mm/yyyy
mm/dd/yyyy
yyyy/dd/mm
To be sure what would work. None of them worked. When I import the
file to APSIM immediatly an error says: I do not recognize DateTime.
When I was making the file with a year and a day column no error
occured when I imported, but it started when I ran the file.

What I did. I am from the Netherlands, so I have a Dutch laptop. I
changed my regional setting to English (Australia). My research takes
place in Mexico.
Is the latitude connected to the DateTime?

I hope you can help me!

Eline

On Oct 18, 6:36 pm, Dean Holzworth <Dean.Holzwo...@csiro.au> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dean Holzworth  
View profile  
 More options Oct 20, 9:30 am
From: Dean Holzworth <Dean.Holzwo...@csiro.au>
Date: Mon, 19 Oct 2009 16:30:30 -0700 (PDT)
Local: Tues, Oct 20 2009 9:30 am
Subject: Re: error weather file
Hi Eline

Latitude isn't connected to the DateTime routines. Some questions:

1. Are you using Windows XP or Vista?

2. In your Windows Control Panel "Regional and Language Options", what
does your Short date: field look like? Mine is like this:

  Short date: 20/10/2009

3. In Windows Exlorer, can you right click on your .apsim file and
select "Apsim 7 | Convert to Sim". Can you then put the file into a
text editor (e.g. notepad) and copy and paste the top 20 lines or so
into this forum. e.g.:

<simulation name="Continuous Wheat" executable="c:\program files
\apsim70\Model\ProtocolManager.dll">
  <executable>c:\program files\apsim70\Model\ProtocolManager.dll</
executable>
  <title>Continuous Wheat</title>
  <component name="clock" executable="c:\program files\apsim70\Model
\Clock.dll">
    <executable>c:\program files\apsim70\Model\Clock.dll</executable>
    <initdata>
      <include>%apsim%\Model\Clock.xml</include>
      <start_date type="date" description="Enter the start date of the
simulation">1/01/1940</start_date>
      <end_date type="date" description="Enter the end date of the
simulation">31/12/1940</end_date>
    </initdata>
  </component>
  <component name="met" executable="c:\program files\apsim70\Model
\Input.dll">
    <executable>c:\program files\apsim70\Model\Input.dll</executable>
    <initdata>
      <filename name="filename">%apsim%\Examples\MetFiles\goond.met</
filename>
    </initdata>
  </component>

It's always hard to diagnose these sorts of problems remotely!

Regards
Dean

On Oct 20, 1:43 am, Eline <boele.el...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eline  
View profile  
 More options Oct 20, 11:56 pm
From: Eline <boele.el...@gmail.com>
Date: Tue, 20 Oct 2009 06:56:30 -0700 (PDT)
Local: Tues, Oct 20 2009 11:56 pm
Subject: Re: error weather file
The answers:
1. I am using Vista
2. The short date looks the sam: 20/10/2009
3.

<folder version="17" name="simulations">
  <simulation name="Continuous Maize">
    <clock>
      <start_date type="date" description="Enter the start date of the
simulation">1/01/2009</start_date>
      <end_date type="date" description="Enter the end date of the
simulation">31/12/2009</end_date>
    </clock>
    <summaryfile>
      <filename name="filename">Continuous Maize Simulation.sum</
filename>
    </summaryfile>
    <metfile name="met">
      <filename name="filename">C:\Users\Eline\Documents\AV Mexico
\Weather files\ElSabino_APSIM.prn</filename>
    </metfile>
    <area name="paddock">
      <registrations name="global" />
      <soil name="Soil">
        <profile>
          <layer>
            <thickness>160</thickness>
            <ll15>0.15</ll15>
            <airdry>0.05</airdry>
            <dul>0.29</dul>
            <sat>0.3</sat>
            <swcon>0.5</swcon>
            <bd>1.35</bd>
            <ph>6.3</ph>
            <oc>1.2</oc>
            <fbiom>0.02</fbiom>
            <finert>0.6</finert>
            <ll name="maize">0.11</ll>
            <kl name="maize">0.08</kl>
            <xf name="maize">1</xf>

Thanks,
Eline

On Oct 19, 6:30 pm, Dean Holzworth <Dean.Holzwo...@csiro.au> wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Peter deVoil  
View profile  
 More options Oct 21, 9:51 am
From: Peter deVoil <peter.dev...@gmail.com>
Date: Tue, 20 Oct 2009 16:51:24 -0700 (PDT)
Local: Wed, Oct 21 2009 9:51 am
Subject: Re: error weather file
Hi Eline,

I'm wondering whether the message is coming from the clock module
trying to find met data for a day; or as dean suspects, the met module
trying to find any data at all. There's a different remedy if for
both.

Can you post (copy&paste) the error message as it appears in your
summary file? The last line of this error is the name of the
complaining module, we can proceed from there.

Yours,
pdev.

PS This gets better in 7.1 - only a few weeks away now..

On Oct 15, 12:44 am, Eline <boele.el...@gmail.com> wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eline  
View profile  
 More options Oct 22, 12:24 am
From: Eline <boele.el...@gmail.com>
Date: Wed, 21 Oct 2009 07:24:56 -0700 (PDT)
Local: Thurs, Oct 22 2009 12:24 am
Subject: Re: error weather file
Dear Peter,

This is the error message that appears when I ran the model. (the same
for all the different day/year/date options I have tried)
One other thing I have to mention that I had some problem with the
clock component before, as you might remember. After changing again my
regional settings(to the Australian ones) the clock component seemed
to work correctly.

------- clock Initialisation
--------------------------------------------------
     Sequencer phases:
        prepare
        init_step
        do_pasture_water
        process
        do_pasture_growth
        do_stock
        post
        end_step
     Simulation start date =  1/01/2009
     Simulation end date   = 31/12/2009
     Time step =           = 1440 (mins)
     !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
                      APSIM  Fatal  Error
                      -------------------
     Cannot find date columns in file:
     The file must have one of the following combinations:
        a date column
        a year and day column
        a year, month and dom column. This error occurred while trying
to read from input file C:\Users\Eline\Documents\AV Mexico\Weather
files\ElSabino_APSIM.prn
     Component name: met
     !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Regards,
Eline

On Oct 20, 6:51 pm, Peter deVoil <peter.dev...@gmail.com> wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Peter deVoil  
View profile  
 More options Oct 23, 4:15 pm
From: Peter deVoil <peter.dev...@gmail.com>
Date: Thu, 22 Oct 2009 23:15:56 -0700 (PDT)
Local: Fri, Oct 23 2009 4:15 pm
Subject: Re: error weather file
Hi,

Apsim's a bit dyslexic here. If you use a "date", sometimes it expects
dd/mm/yyyy, others yyyy/mm/dd.

The clock component of the UI uses your system regional settings (dd/
mm/yyyy) and works OK.

The MetUI component will get in a twist for most locales - it expects
a date like yyyy/mm/dd in your metfile.

The met component of apsim.exe expects yyyy/mm/dd dates too.

We'll try to get them all talking the same (ie your local setting) but
not in time for the upcoming release.

Yours,
pdev

On Oct 22, 12:24 am, Eline <boele.el...@gmail.com> wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
john.hargrea...@csiro.au  
View profile  
 More options Oct 28, 5:47 pm
From: <John.Hargrea...@csiro.au>
Date: Wed, 28 Oct 2009 17:47:34 +1100
Local: Wed, Oct 28 2009 5:47 pm
Subject: RE: error weather file

A frequent cause of this error from the APSIM met component during clock component initialisation is embedded tabs in the met file. These usually get embedded through the increasing practice of preparing weather data in Excel spreadsheets and saving the data to a text file.

In this case embedded tabs can be avoided by saving as a "Formatted Text (Space delimited)(*.prn)" file type.
Otherwise, tabs can be replaced with spaces in a text editor with that capability such as UltraEdit.


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
john.hargrea...@csiro.au  
View profile  
 More options Oct 28, 6:07 pm
From: <John.Hargrea...@csiro.au>
Date: Wed, 28 Oct 2009 18:07:04 +1100
Local: Wed, Oct 28 2009 6:07 pm
Subject: RE: error weather file
An additional issue when saving as space delimited (*.prn) file is insufficient column widths in the spreadsheet or right and left justified data in adjacent columns which leads to no delimiting space between the columns of data when saved. Space delimited doesn't always mean space delimited in this case!

APSIM can get rather upset when this happens.


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google