Skip to content

Commit

Permalink
Remove datatype from readnl parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushpatnaikgit committed Jul 2, 2024
1 parent de319d2 commit c84512a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/readnl.jl
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ end_date = Date(2020, 12)
rad_dc, cf_dc = readnl(geom, start_date, end_date)
```
"""
function readnl(geom::Shapefile.Polygon, start_date = Date(2012, 04), end_date = Date(2023, 01); rad_path = "/mnt/giant-disk/nighttimelights/monthly/rad/", cf_path = "/mnt/giant-disk/nighttimelights/monthly/cf/")
function readnl(geom, start_date = Date(2012, 04), end_date = Date(2023, 01); rad_path = "/mnt/giant-disk/nighttimelights/monthly/rad/", cf_path = "/mnt/giant-disk/nighttimelights/monthly/cf/")
rad_files, sorted_dates = sort_files_by_date(rad_path, start_date, end_date)
cf_files, sorted_dates = sort_files_by_date(cf_path, start_date, end_date)
rad_raster_list = [crop(Raster(i, lazy = true), to = geom) for i in rad_path .* rad_files]
Expand Down

0 comments on commit c84512a

Please sign in to comment.