Skip to content

Commit 054d8cb

Browse files
authored
fix: format for mean files (#40)
docs: clenshaw summation citations
1 parent 4adb93c commit 054d8cb

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

doc/source/user_guide/clenshaw_summation.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ clenshaw_summation.py
33
=====================
44

55
- Returns the spatial field for a series of spherical harmonics at a sequence of ungridded points
6+
- Uses a Clenshaw summation to calculate the spherical harmonic summation [Holmes2002]_ [Tscherning1982]_
67

78
Calling Sequence
89
################
@@ -59,6 +60,6 @@ References
5960
6061
.. [Holmes2002] S. A. Holmes and W. E. Featherstone, "A unified approach to the Clenshaw summation and the recursive computation of very high degree and order normalised associated Legendre functions", *Journal of Geodesy*, 76, 279--299, (2002). `doi: 10.1007/s00190-002-0216-2 <https://doi.org/10.1007/s00190-002-0216-2>`_
6162
62-
.. [Tscherning1982] C. C. Tscherning and K. Poder, "Some Geodetic Applications of Clenshaw Summation", Bollettino di Geodesia e Scienze, 4, 349--375, (1982).
63+
.. [Tscherning1982] C. C. Tscherning and K. Poder, "Some Geodetic Applications of Clenshaw Summation", *Bollettino di Geodesia e Scienze*, 4, 349--375, (1982).
6364
6465
.. [Wahr2000] J. Wahr, D. Wingham, and C. Bentley, "A method of combining ICESat and GRACE satellite data to constrain Antarctic mass balance", *Journal of Geophysical Research: Solid Earth*, 105(B7), 16279--16294, (2000). `doi: 10.1029/2000JB900113 <https://doi.org/10.1029/2000JB900113>`_

scripts/calc_mascon.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ def calc_mascon(base_dir, PROC, DREL, DSET, LMAX, RAD,
394394
#-- use a mean file for the static field to remove
395395
if MEAN_FILE:
396396
#-- read data form for input mean file (ascii, netCDF4, HDF5, gfc)
397-
mean_Ylms = harmonics().from_file(MEAN_FILE,format=DATAFORM,date=False)
397+
mean_Ylms = harmonics().from_file(MEAN_FILE,format=MEANFORM,date=False)
398398
#-- remove the input mean
399399
GRACE_Ylms.subtract(mean_Ylms)
400400
else:

scripts/grace_spatial_error.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ def grace_spatial_error(base_dir, PROC, DREL, DSET, LMAX, RAD,
312312
#-- use a mean file for the static field to remove
313313
if MEAN_FILE:
314314
#-- read data form for input mean file (ascii, netCDF4, HDF5, gfc)
315-
mean_Ylms = harmonics().from_file(MEAN_FILE,format=DATAFORM,date=False)
315+
mean_Ylms = harmonics().from_file(MEAN_FILE,format=MEANFORM,date=False)
316316
#-- remove the input mean
317317
GRACE_Ylms.subtract(mean_Ylms)
318318
else:

scripts/grace_spatial_maps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ def grace_spatial_maps(base_dir, PROC, DREL, DSET, LMAX, RAD,
326326
#-- use a mean file for the static field to remove
327327
if MEAN_FILE:
328328
#-- read data form for input mean file (ascii, netCDF4, HDF5, gfc)
329-
mean_Ylms = harmonics().from_file(MEAN_FILE,format=DATAFORM,date=False)
329+
mean_Ylms = harmonics().from_file(MEAN_FILE,format=MEANFORM,date=False)
330330
#-- remove the input mean
331331
GRACE_Ylms.subtract(mean_Ylms)
332332
else:

scripts/scale_grace_maps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ def scale_grace_maps(base_dir, PROC, DREL, DSET, LMAX, RAD,
371371
#-- use a mean file for the static field to remove
372372
if MEAN_FILE:
373373
#-- read data form for input mean file (ascii, netCDF4, HDF5, gfc)
374-
mean_Ylms = harmonics().from_file(MEAN_FILE,format=DATAFORM,date=False)
374+
mean_Ylms = harmonics().from_file(MEAN_FILE,format=MEANFORM,date=False)
375375
#-- remove the input mean
376376
GRACE_Ylms.subtract(mean_Ylms)
377377
else:

0 commit comments

Comments
 (0)