@@ -431,8 +431,8 @@ def list_available_dates(dpid, site):
431
431
--------
432
432
Returns:
433
433
prints the Release Tag (or PROVISIONAL) and the corresponding available dates (YYYY-MM) for each tag
434
- --------
435
- Usage :
434
+
435
+ Examples :
436
436
--------
437
437
>>> list_available_dates('DP3.30015.001','JORN')
438
438
RELEASE-2025 Available Dates: 2017-08, 2018-08, 2019-08, 2021-08, 2022-09
@@ -443,6 +443,11 @@ def list_available_dates(dpid, site):
443
443
444
444
>>> list_available_dates('DP1.10098.001','HOPB')
445
445
ValueError: There are no data available for the data product DP1.10098.001 at the site HOPB.
446
+
447
+ Created on Feb 17 2025
448
+
449
+ @author: Bridget Hass
450
+
446
451
"""
447
452
product_url = "http://data.neonscience.org/api/v0/products/" + dpid
448
453
response = get_api (api_url = product_url ) # add input for token?
@@ -581,6 +586,10 @@ def get_aop_tile_extents(dpid,
581
586
# This returns a list of the UTM x,y extent for all CHM tiles at the site MCRA collected in 2021.
582
587
# It also displays the minimum and maximum UTM Easting and Northing (x and y) values for this product - site -year.
583
588
589
+ Created on Feb 17 2025
590
+
591
+ @author: Bridget Hass
592
+
584
593
"""
585
594
586
595
# raise value error and print message if dpid isn't formatted as expected
@@ -720,6 +729,18 @@ def by_file_aop(dpid,
720
729
--------
721
730
The function creates a folder in the 'savepath' directory, containing all AOP files meeting the query criteria.
722
731
If 'savepath' is not provided, data are downloaded to the working directory.
732
+
733
+ Windows Path Length Limitations:
734
+ When using this function to download files from the NEON data portal, you may encounter path length limitations
735
+ on Windows systems. Windows has a default maximum path length of 260 characters, which can cause download
736
+ functions to fail if this limit is exceeded. If the file path exceeds 260 characters on a Windows system,
737
+ the package will issue a warning.If you see this warning and no files are downloaded, either change your
738
+ working or savepath directory to be closer to the root directory, or enable long paths on Windows. You can
739
+ choose to ignore or filter these warnings using Python's warnings module if you prefer not to see them.
740
+
741
+ Created on Feb 28 2024
742
+
743
+ @author: Bridget Hass
723
744
"""
724
745
725
746
# raise value error and print message if dpid isn't formatted as expected
@@ -945,6 +966,23 @@ def by_tile_aop(dpid,
945
966
# This will download any tiles overlapping the specified UTM coordinates for
946
967
# 2021 canopy height model data from McRae Creek to the './test_download' directory.
947
968
969
+ Notes
970
+ --------
971
+ The function creates a folder in the 'savepath' directory, containing all AOP files meeting the query criteria.
972
+ If 'savepath' is not provided, data are downloaded to the working directory.
973
+
974
+ Windows Path Length Limitations:
975
+ When using this function to download files from the NEON data portal, you may encounter path length limitations
976
+ on Windows systems. Windows has a default maximum path length of 260 characters, which can cause download
977
+ functions to fail if this limit is exceeded. If the file path exceeds 260 characters on a Windows system,
978
+ the package will issue a warning.If you see this warning and no files are downloaded, either change your
979
+ working or savepath directory to be closer to the root directory, or enable long paths on Windows. You can
980
+ choose to ignore or filter these warnings using Python's warnings module if you prefer not to see them.
981
+
982
+ Created on Feb 28 2024
983
+
984
+ @author: Bridget Hass
985
+
948
986
"""
949
987
950
988
# raise value error and print message if dpid isn't formatted as expected
0 commit comments