regine / meltmodel

A Distributed Surface Mass Balance Model
regine.github.com/meltmodel
GNU General Public License v3.0
21 stars 16 forks source link

jdend == 1 raises error #3

Open lyguy opened 12 years ago

lyguy commented 12 years ago

Via this input.dat, degree.o exits with:

ERROR : Mass balance profile file not found !!! lemon_example/output/massbalprofile1962.txt

Full gist of display is here.

Appears to happen for many values of jdend.

lyguy commented 12 years ago

This appears to happen when the startday is in a year before end day==1. If we set formatclimdata to 1 or 2, I get the following:

  yr= 2000  jd = 0.00   time = 24
  yr= 2000  jd = 1.00   time = 24
  yr= 2000  jd = 2.00   time = 24
 ERROR : Mass balance profile file not found !!!
 ../test/one_point/output/massbalprofile2000.txt

Where as formatclimdata ==3 gets:

  yr= 1999  jd = 365.00   time = 24
  yr= 2000  jd = 1.00   time = 24
  yr= 2000  jd = 2.00   time = 24
 ERROR : Mass balance profile file not found !!!
 ../test/one_point/output/massbalprofile2000.txt 

So not only are we getting a bogus error, but also the dates are getting messed up.