ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/Development/ray/src/gen/gensdaymtx.c
(Generate patch)

Comparing ray/src/gen/gensdaymtx.c (file contents):
Revision 1.7 by greg, Fri Jun 6 19:11:21 2025 UTC vs.
Revision 1.9 by greg, Wed Jul 2 01:56:35 2025 UTC

# Line 15 | Line 15 | static const char RCSid[] = "$Id$";
15   #include "atmos.h"
16   #include "copyright.h"
17   #include "data.h"
18 #include "paths.h"
18   #include "platform.h"
19   #include "rtio.h"
20   #include "rtmath.h"
# Line 648 | Line 647 | int main(int argc, char *argv[])
647                  const int          mo = erec.date.month+1;
648                  const int          da = erec.date.day;
649                  const double    hr = erec.date.hour;
650 <                double aod = erec.optdepth;
650 >                double aod = erec.optdepth * 1e3;
651 >                if (aod >= 999.0) {
652 >                        fprintf(stderr, "aod not set, using default value %.3f\n", AOD0_CA);
653 >                        aod = AOD0_CA;
654 >                }
655                  double cc = erec.skycover;
656 +                if (cc >= 99.0) {
657 +                        fprintf(stderr, "skycover not set, using default value 0.0\n");
658 +                        cc = 0.0;
659 +                }
660                  double            sda, sta, st;
661                  int                      sun_in_sky;
662  
656                if (aod == 0.0) {
657                        aod = AOD0_CA;
658                        fprintf(stderr, "aod is zero, using default value %.3f\n", AOD0_CA);
659                }
663                  /* compute solar position */
664                  if ((mo == 2) & (da == 29)) {
665                          julian_date = 60;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines