Skip to content

Commit

Permalink
fix: Switch URL for SDSS randoms catalog
Browse files Browse the repository at this point in the history
The original URL is now defunct. Data has been made available on zenodo.org, and we now download from there.
  • Loading branch information
abensonca committed Dec 4, 2023
1 parent 28f132b commit 38237c5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/geometry.surveys.Li-White-2009-SDSS.F90
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
A survey geometry class that describes the survey geometry of \cite{li_distribution_2009}.

For the angular mask, we make use of the catalog of random points within the survey footprint provided by the
NYU-VAGC\footnote{Specifically,
\href{http://sdss.physics.nyu.edu/lss/dr72/random/lss_random-0.dr72.dat}{http://sdss.physics.nyu.edu/lss/dr72/random/lss\_random-0.dr72.dat}.}
NYU-VAGC\footnote{Specifically, \href{https://zenodo.org/records/10257229/files/lss_random-0.dr72.dat}{https://zenodo.org/records/10257229/files/lss\_random-0.dr72.dat}
(which is a copy of the dataset originally found at the, now defunct, URL {\normalfont \ttfamily http://sdss.physics.nyu.edu/lss/dr72/random/lss\_random-0.dr72.dat}).}
(\citealt{blanton_new_2005}; see also
\citealt{adelman-mccarthy_sixth_2008,padmanabhan_improved_2008}). \cite{li_distribution_2009} consider only the main,
contiguous region and so we keep only those points which satisfy RA$>100^\circ$, RA$<300^\circ$, and RA$<247^\circ$ or
Expand Down Expand Up @@ -283,7 +283,7 @@ Compute the window function for the survey.
! Randoms file obtained from: http://sdss.physics.nyu.edu/lss/dr72/random/
if (.not.File_Exists(inputPath(pathTypeDataDynamic)//"surveyGeometry/lss_random-0.dr72.dat")) then
call Directory_Make(inputPath(pathTypeDataDynamic)//"surveyGeometry")
call download("http://sdss.physics.nyu.edu/lss/dr72/random/lss_random-0.dr72.dat",char(inputPath(pathTypeDataDynamic))//"surveyGeometry/lss_random-0.dr72.dat",status=status)
call download("https://zenodo.org/records/10257229/files/lss_random-0.dr72.dat",char(inputPath(pathTypeDataDynamic))//"surveyGeometry/lss_random-0.dr72.dat",status=status)
if (status /= 0 .or. .not.File_Exists(inputPath(pathTypeDataDynamic)//"surveyGeometry/lss_random-0.dr72.dat")) call Error_Report('unable to download SDSS survey geometry randoms file'//{introspection:location})
end if
randomsCount=Count_Lines_In_File(inputPath(pathTypeDataDynamic)//"surveyGeometry/lss_random-0.dr72.dat")
Expand Down

0 comments on commit 38237c5

Please sign in to comment.