32 if (argc != 3 && argc != 7)
34 (
"Give parameters: [ <rad> <nu> | "
35 " <rad0> <rad1> <drad> <nu0> <nu1> <dnu> ]");
41 double rad = atof(argv[1]);
42 double nu = atof(argv[2]);
45 printf(
"%.10g\n",
BRIGHT(rad, nu));
53 double rad0 = atof(argv[1]);
54 double rad1 = atof(argv[2]);
55 double drad = atof(argv[3]);
56 double nu0 = atof(argv[4]);
57 double nu1 = atof(argv[5]);
58 double dnu = atof(argv[6]);
61 printf(
"# $1 = radiance [W/(m^2 sr cm^-1)]\n"
62 "# $2 = wavenumber [cm^-1]\n"
63 "# $3 = brightness temperature [K]\n");
66 for (
double rad = rad0; rad <= rad1; rad += drad) {
68 for (
double nu = nu0; nu <= nu1; nu += dnu)
69 printf(
"%.10g %.4f %.10g\n", rad, nu,
BRIGHT(rad, nu));
int main(int argc, char *argv[])
JURASSIC library declarations.
#define BRIGHT(rad, nu)
Compute brightness temperature.
#define ERRMSG(...)
Print error message and quit program.