534 Views 19 Replies Latest reply: Oct 3, 2019 4:49 PM by Atefeh Hosseini RSS
Currently Being Moderated

Sep 19, 2019 12:01 PM

LAI data source Name

Dear All,

I can not run the model when I change the name of the LAI and SAI data source from "none" to "MODIS real-time".

 

LAI data source:                                        "MODIS real-time"

SAI data source:                                        none

MODIS LAI data directory:                         /Folder with all .1gd1c files

 

I have checked the code under: LIS_Framework/LIS_public_release_7.2r/Core/LIS_vegDataMod.F90

case default ! is some kind of real-time

! !presume for now that files no more frequent than daily

! call LIS_registerAlarm("LIS LAI real-time read alarm", LIS_rc%ts, &

! 86400)

call laisetup(trim(LIS_rc%uselaimap(n))//char(0),n)

 

call readlai(trim(LIS_rc%uselaimap(n))//char(0),n,&

wt1,wt2,LIS_lai(n)%lai1,LIS_lai(n)%time1)

end select

          do i=1,LIS_rc%ntiles(n)

LIS_lai(n)%tlai(i)=wt1*LIS_lai(n)%lai1(i)+wt2*LIS_lai(n)%lai2(i)

enddo

       end do

 

I spend many hours but I do not understand how exactly the code deal with date type name other than “none” and “LDT”.

 

I appreciate any comment!

 

Atefeh

 

 

 

 


  • Currently Being Moderated
    Sep 19, 2019 2:23 PM (in response to Atefeh Hosseini)
    Re: LAI data source Name

    Hi Atefeh,

     

    I see that you are using the 7.2r public release.  This code is from May 2017, so we strongly encourage research users to switch to our latest development code over at Github:

        https://lis.gsfc.nasa.gov/blog/land-information-system-lis-code-development-now- hosted-github

     

    We expect to have the 7.3 public release via Github out in a few weeks.  We will outline the minimal steps for users to switch from the development code to the 7.3 public release code at that time.

     

    Specifically for your issue, it appears that you are looking at and have pasted some code that is not actually compiled/run due to compiler directives.  Anything between "#if 0" and "#endif" is not compiled.  You'll see that there are two "subroutine LIS_lai_setup" routines, one of which is labelled with "_old".  You are looking at the "old" routine.  If you go down in this same file to the other "subroutine LIS_lai_setup", you will see code about using the "MODIS" datasets.

     

    I'm not clear what you mean by "cannot run", so if you continue to have issues, please attach your lis.config file, your lislog.0000 file, your make/configure.lis file, and any standard output of your LIS execution.

     

    David

    • Currently Being Moderated
      Sep 30, 2019 5:22 PM (in response to Atefeh Hosseini)
      Re: LAI data source Name

      Hi Atefeh,

       

      Thanks for attaching those files.  Indeed, the last two lines of the lislog.000 file offer a clue:

       

      -----

      [ERR] MODIS RT LAI data directory: not defined Stopping.

      [ERR] endrun is being called

      -----

       

      Your entry in your lis.config file is:

       

      MODIS LAI data directory:

       

      Please change this to:

       

      MODIS RT LAI data directory:

       

      If you look at the LIS User's Guide, you'll see that the required config entry has the "RT" in it.  See the attached image.

       

      https://github.com/NASA-LIS/LISF/blob/master/docs/LIS_users_guide/LIS_usersguide .adoc

       

      You will note however that the Example lis.config entry does _not_ have the "RT" in it.  You must have copied this.  Our apologies for the mistake.  Entirely our fault, as we made a mistake in the lis/configs/lis.config.adoc file, shown here:

       

      ==== MODIS real-time LAI

      anchor:sssec_modisrtlai[MODIS real-time LAI]

       

       

      `MODIS RT LAI data directory:` specifies the location of the

      MODIS real-time LAI files.

       

       

      .Example _lis.config_ entry

      ....

      MODIS LAI data directory:

      ....

       

      I will correct this on github for future users.

       

      Again, sorry for the trouble.  Please always review the entire lislog file for any ERR (or WARN) messages.

       

      Thanks,

       

      David

      Attachments:
        • Currently Being Moderated
          Oct 1, 2019 8:36 AM (in response to Atefeh Hosseini)
          Re: LAI data source Name

          Hi,

           

          LIS will do the linear interpolation for you between the 8-day data.

           

          Again, please attach your lislog file so we can see the specific error message.

           

          David

            • Currently Being Moderated
              Oct 1, 2019 4:49 PM (in response to Atefeh Hosseini)
              Re: LAI data source Name

              Hi,

               

              LIS will automatically add the year to the data directory, depending on where it is in the simulation.

               

              Please just change your config entry to:

               

              MODIS LAI data directory:                               /home/a456h734/drought/a456h734/MRT_Run

               

              David

                • Currently Being Moderated
                  Oct 2, 2019 11:58 AM (in response to Atefeh Hosseini)
                  Re: LAI data source Name

                  Hi Atefeh,

                   

                  I'm sorry for my typo above (I copied from your original incorrect lis.config file).

                   

                  Please try this:

                   

                  MODIS RT LAI data directory:                               /home/a456h734/drought/a456h734/MRT_Run

                   

                  Then, if it doesn't work, please attach the lislog file from that simulation.

                   

                  The one you attached just now clearly is asking for the "RT" to be in the config entry as before.

                   

                  David

                    • Currently Being Moderated
                      Oct 2, 2019 2:48 PM (in response to Atefeh Hosseini)
                      Re: LAI data source Name

                      Hi,

                       

                      Does your LIS run crash, or did you stop it yourself during the run?

                       

                      There is no indication of an error in your lislog file, and the messages about those dates being not found are actually to be expected.

                       

                      If you look in this code - lis/params/lai/MODIS_RT/read_MODIS_RT_lai.F90 - you can see that LIS will search up to 8 days from the current time to look for an LAI file.  Since you are starting from 2 Jan 2015, log messages are there about not finding data on 03 Jan to 08 Jan.  However, there is _not_ a message about 09 Jan, indicating that the file was found.  There should be a follow-on message after this file is read, but I don't see it in your log file.  That's what makes me wonder if you manually stopped the run.

                       

                      If you didn't stop it, please also attach your run's standard output (or what the screen shows, if submitted at the command line).  And attach your make/configure.lis file.

                       

                      David

                        • Currently Being Moderated
                          Oct 3, 2019 8:52 AM (in response to Atefeh Hosseini)
                          Re: LAI data source Name

                          Hi,

                           

                          Sorry you are continuing to have problems running.  I looked at your screen shot and it's failing at line 131 in the read LAI RT routine listed.  I'm not exactly sure why it's failing there, so attaching this file would really help:

                           

                          lis/make/configure.lis

                           

                          This will tell us how you configured/compiled the system.

                           

                          In the meantime, I will try some things on my end.

                           

                          David

                            • Currently Being Moderated
                              Oct 3, 2019 3:06 PM (in response to Atefeh Hosseini)
                              Re: LAI data source Name

                              Hi Atefeh,

                               

                              I have reviewed your configure.lis file and don't see any issues.  Since you have been able to successfully compile LIS, and to run it without using "MODIS real-time", I have determined the issue is not in your configuration.

                               

                              I have been trying to run "MODIS real-time" with your lis.config file, and I'm getting the same error.  So, it's a problem with the code at this point.  I have been trying to debug it today, but don't have a solution just yet.  I will discuss with others on the LIS team.

                               

                              While we work on a solution, please turn off "MODIS real-time" and work with testing other parts of LIS.

                               

                              Our apologies for the inconvenience.

                               

                              David

More Like This

  • Retrieving data ...

Bookmarked By (0)