Skip to content

Commit

Permalink
docs - fixing the file link render errors for RTD api
Browse files Browse the repository at this point in the history
  • Loading branch information
tnigon committed Apr 16, 2021
1 parent be26b22 commit 18ab0a8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion hs_process/spec_mod.py
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ def spectral_mimic(self, sensor='sentinel-2a', df_band_response=None,
>>> data_dir = r'F:\\nigo0024\Documents\hs_process_demo'
>>> fname_hdr = os.path.join(data_dir, 'Wells_rep2_20180628_16h56m_pika_gige_7-Radiance Conversion-Georectify Airborne Datacube-Convert Radiance Cube to Reflectance from Measured Reference Spectrum.bip.hdr')
>>> data_dir2 = r'G:\BBE\AGROBOT\Shared Work\hs_process_results\data\ref_closest_panel\crop_plot'
>>> data_dir2 = r'G:\\BBE\AGROBOT\Shared Work\hs_process_results\data\ref_closest_panel\crop_plot'
>>> fname_hdr = os.path.join(data_dir2, 'study_aerffield_date_20190708_plot_5110-crop-plot.bip.hdr')
>>> array = io.spyfile.open_memmap()
Expand Down
10 changes: 5 additions & 5 deletions hs_process/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -1289,7 +1289,7 @@ def write_spec(self, fname_hdr_spec, df_mean, df_std=None, metadata=None,
Save the new spectra to file via ``hsio.write_spec``
>>> io.write_spec(fname_hdr_spec, spec_mean, spec_std)
Saving F:\nigo0024\Documents\hs_process_demo\hsio\Wells_rep2_20180628_16h56m_pika_gige_7-mean.spec
Saving F:\\nigo0024\Documents\hs_process_demo\hsio\Wells_rep2_20180628_16h56m_pika_gige_7-mean.spec
Open *Wells_rep2_20180628_16h56m_pika_gige_7-mean.spec* in *Spectronon* for visualization
Expand Down Expand Up @@ -1911,7 +1911,7 @@ def get_wavelength_range(self, range_bands, index=True, spyfile=None):
Load and initialize ``hsio``
>>> from hs_process import hsio
>>> fname_hdr = r'F:\nigo0024\Documents\GitHub\hs_process\hs_process\data\Wells_rep2_20180628_16h56m_test_pika_gige_7-Convert Radiance Cube to Reflectance from Measured Reference Spectrum.bip.hdr'
>>> fname_hdr = r'F:\\nigo0024\Documents\GitHub\hs_process\hs_process\data\Wells_rep2_20180628_16h56m_test_pika_gige_7-Convert Radiance Cube to Reflectance from Measured Reference Spectrum.bip.hdr'
>>> io = hsio(fname_hdr)
Find the wavelengths from the *16th* to *21st bands*
Expand Down Expand Up @@ -2185,7 +2185,7 @@ def get_band_range(self, range_wl, index=True, spyfile=None):
demonstrate the utility of the ``index`` parameter, let's take a
look at Sentinel 2A mimicked imagery.
>>> data_dir = r'F:\nigo0024\Documents\hs_process_demo\spec_mod'
>>> data_dir = r'F:\\nigo0024\Documents\hs_process_demo\spec_mod'
>>> fname_in = os.path.join(data_dir, 'Wells_rep2_20180628_16h56m_pika_gige_7-mimic-s2a.bip.hdr')
>>> io = hsio(fname_in)
Expand Down Expand Up @@ -2661,9 +2661,9 @@ def mean_datacube(self, spyfile, mask=None, nodata=0):
>>> fname_hdr_spec = r'F:\\nigo0024\Documents\hs_process_demo\hstools\Wells_rep2_20180628_16h56m_pika_gige_7-mean_800nm_75th.spec.hdr'
>>> fname_hdr_cube = r'F:\\nigo0024\Documents\hs_process_demo\hstools\Wells_rep2_20180628_16h56m_pika_gige_7-mean_800nm_75th.bip.hdr'
>>> io.write_spec(fname_hdr_spec, spec_mean, spec_std, metadata=metadata, force=True)
Saving F:\nigo0024\Documents\hs_process_demo\hstools\Wells_rep2_20180628_16h56m_pika_gige_7-mean_800nm_75th.spec
Saving F:\\nigo0024\Documents\hs_process_demo\hstools\Wells_rep2_20180628_16h56m_pika_gige_7-mean_800nm_75th.spec
>>> io.write_cube(fname_hdr_cube, datacube_masked, metadata=metadata, force=True)
Saving F:\nigo0024\Documents\hs_process_demo\hstools\Wells_rep2_20180628_16h56m_pika_gige_7-mean_800nm_75th.bip
Saving F:\\nigo0024\Documents\hs_process_demo\hstools\Wells_rep2_20180628_16h56m_pika_gige_7-mean_800nm_75th.bip
.. image:: img/utilities/mean_datacube.png
'''
Expand Down

0 comments on commit 18ab0a8

Please sign in to comment.