Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

noise.lag0 and noise.vel in fitacf-format files #570

Open
egthomas opened this issue May 26, 2023 · 9 comments
Open

noise.lag0 and noise.vel in fitacf-format files #570

egthomas opened this issue May 26, 2023 · 9 comments
Milestone

Comments

@egthomas
Copy link
Member

I have been trying to better educate myself on the different noise parameters in the rawacf and fitacf format files, and was wondering about the noise.lag0 and noise.vel fields in fitacf files. As far as I can tell, these fields were populated by older versions of FITACF via the noise_acf function, which was removed from FITACF following discussions at the 2006 SD workshop, eg:

# $Log: version.info,v $
# Revision 2.0  2007/02/02 21:42:06  code
# Changes agreed to at the 2006 SuperDARN meeting.

and

 $Log: do_fit.c,v $
 Revision 1.16  2007/02/02 21:38:42  code
  Removing everything belonging to NOISE_ACF calculation and extraction
 (lines 153-160 and 198-251 in Revision 1.15)

(and likely influenced by the work of Ponomarenko and Waters [2006])

The "modern" fitting algorithms in the RST (eg, fitacf2, fitacf3, lmfit2) all seem to set noise.lag0 and noise.vel to zero (the noise.sky value, however, is of course still used).

So, here is a philosophical question - we have added several new fields to fitacf, map, etc files over the years, but would we ever remove a field that is no longer relevant? Is there value in reading/storing the noise.lag0 and noise.vel values from fitacf-format files (or more likely fit-format files) processed with pre-2007 versions of the software?

Note there are several fields from the old parameter block which were dropped with the conversion from dat/fit to rawacf/fitacf (e.g., nbaud and the various usr_*-defined parameters).

@pasha-ponomarenko
Copy link
Contributor

@egthomas , from years ago my recollection is that there was some serious technical problem with removing the existing fields, but I never knew the exact details. I think then we were talking about removing fields related to XFC power fitting.

@ecbland
Copy link

ecbland commented May 30, 2023

@pasha-ponomarenko I removed all the unused XCF fields for fitacf3 files in #472, so there shouldn't be any technical issue here. I'm all in favour of @egthomas's suggestion to remove the unused fields.

@pasha-ponomarenko
Copy link
Contributor

Gee, I am getting senile! 🤔
Of course, please go ahead with removing these fields.

@ksterne ksterne added this to the RST 5.1 milestone Jul 6, 2023
@egthomas
Copy link
Member Author

egthomas commented May 3, 2024

On a somewhat related note, I just realized that grid (and map) files use the noise.search parameter to calculate the noise_mean and noise_sd values. Not all radars seem to record noise.search values, so maybe this should be changed to something else like sky noise?

@pasha-ponomarenko
Copy link
Contributor

Yep, this is probably a better solution. I was always uneasy with using the search noise level in conjunction with FITACF data as its magnitude is established using a very different algorithm and much shorter integration time. I believe that originally there was some magic scaling coefficient applied to make the search noise compatible with that estimated from low-power ACFs.

@egthomas
Copy link
Member Author

egthomas commented May 6, 2024

@pasha-ponomarenko thanks for the response - I've just opened a pull request to change the underlying library to use the sky noise value rather than the search noise.

(I haven't yet had the time to examine removing the noise.lag0 and noise.vel fields to see if that causes any issues elsewhere in the RST)

@pasha-ponomarenko
Copy link
Contributor

@egthomas, do you know how the noise level is utilised in gridding/mapping routines? I can only see that it is copied into the respective file formats.

@egthomas
Copy link
Member Author

egthomas commented May 7, 2024

@pasha-ponomarenko as far as I can tell, the noise values recorded in the grid files are only for informative purposes and not used in any subsequent processing algorithms (eg Map Potential, or even plotting).

@pasha-ponomarenko
Copy link
Contributor

Thanks, @egthomas , this was my impression too: just to maintain consistency between the formats.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants