Go to the documentation of this file.
26 l1info_struct hdf_info;
28 char *mon_list[] = {
"January",
"February",
"March",
"April",
"May",
29 "June",
"July",
"August",
"September",
"October",
30 "November",
"December"};
37 if (
open_hdf(fname, &hdf_info) != 0) {
38 printf(
"anc_daymon: open_hdf error\n");
41 if (
read_g_attr(hdf_info,
"Start Day", &n_type, &
count, (
void *) &i16) != 0) {
42 printf(
"anc_daymon: read_g_attr (day) error\n");
46 if (
read_g_attr(hdf_info,
"Start Year", &n_type, &
count, (
void *) &i16) != 0) {
47 printf(
"anc_daymon: read_g_attr (year) error\n");
51 if (*jday < 1 || *jday > 366) {
52 printf(
"anc_daymon: ancillary file julian day out of bounds: %d\n",
64 printf(
"anc_daymon: trouble with day2mday\n");
68 strcpy(monstr, mon_list[month - 1]);
int32 open_hdf(char *fname, l1info_struct *l1info)
int32_t jday(int16_t i, int16_t j, int16_t k)
int anc_daymon(char *fname, int *jday, char *monstr)
int32 read_g_attr(l1info_struct l1info, char *name, int32 *n_type, int32 *count, void *data)
HDF4 data type of the output SDS Default is DFNT_FLOAT32 Common types used DFNT_INT16
int day2mday(int year, int day_of_year, int *month, int *day_of_month)
void l1io_close(l1info_struct)
How many dimensions is the output array Default is Not sure if anything above will work correctly strcpy(l2prod->title, "no title yet")